{"text_format":"1","workbook":"xlsx","n_sheets":11,"sheets":["Info","Trial","Instructions","Setup","Emp","Payroll","Override","PaySlip","Summary","MonthEmp","MonthDept"],"not_rendered":{"charts":0,"images":3,"macros":1,"external_links":0,"defined_names":78,"comments":0,"pivot_tables":0},"unopened":[],"bounds":{"document_bytes":16777216,"sheet_cells":100000,"rows_first":2000,"rows_last":500,"rows_between":2000,"halvings":0,"cell_chars":16384,"cell_head_chars":4096},"cells_cut":0,"cells_raw":0,"read":"whole","date_system":"1900"}

{"sheet":"Info","index":0,"n_rows":0,"n_cols":0,"rows_kept":0,"cut":false,"hidden":false,"merged":[]}

{"sheet":"Trial","index":1,"n_rows":0,"n_cols":0,"rows_kept":0,"cut":false,"hidden":true,"merged":[]}

{"sheet":"Instructions","index":2,"n_rows":489,"n_cols":1,"rows_kept":489,"cut":false,"hidden":true,"merged":[]}
["Excel Skills | Basic Monthly Salary Template"]
["Instructions"]
["www.excel-skills.com"]
[]
["This template is a simpler version of our very comprehensive monthly payroll template for customers who have less than 50 employees and only require basic earnings & deductions. Where the monthly payroll template requires users to enter monthly earnings for all 12 months in the tax year, this template automates the inclusion of earnings based on fixed monthly basic salaries, one annual bonus and one annual salary increase. The template is therefore very easy to use while still providing sufficient flexibility to accommodate most international payroll systems."]
[]
["Before we get into the guidance on the template functionality, please note the following important points regarding the suitability of the template to user requirements:"]
["■ This template has been designed as a monthly payroll template and is only suitable if your employees are paid on a monthly basis. We can also not customize the template to incorporate employees paid based on any other payment interval (like weekly or bi-weekly)."]
["■ The template has been designed for a 12-month period from the beginning to the end of the appropriate tax year. After the completion of the first tax year, a new version of the template needs to be saved for the next tax year and all rates & values which are subject to regulatory changes on an annual basis needs to be updated."]
["■ We have designed the template with as much flexibility as practically possible in order to be suitable for most of our customers in more than 100 countries. We do not however provide tax consulting services and cannot provide support for enquiries relating to the appropriate rates that need to be used for specific tax deductions or company contributions. Please do not contact us to request such assistance."]
["■ The flexible design of the template ensures that you should be able to use the template for multiple tax years. If the taxation or other regulatory requirements in your country changes in a way which is not provided for in the template design, you may need to purchase a new version of the template once the template design has been adapted & the new version released."]
["■ The purchase price of the template is once-off and does not include any annual updates. Our aim with the design of the template is to include sufficient flexibility so that customers are able to use the template for multiple years without having to purchase a new version annually. If regulations change in a way that the template design cannot accommodate, you would need to purchase a new version of the template if one has been released which can accommodate the regulatory changes. We will not provide a free update under these circumstances."]
["■ Please review these instructions carefully and only change or customize the template in accordance with the guidance provided in this document. Do not change any of the formulas, delete rows or columns in a way which is not provided for in the template design and only enter values in the yellow input cells or columns with yellow column headings otherwise the template calculations may become inaccurate. If you make changes outside of the scope of what is provided for in the template design, you will need to revert back to the downloaded version of the template!"]
["■ Disclaimer: It is the responsibility of the user to check the accuracy of all monthly payroll calculations and to ensure that all payroll related payments are accurate. We recommend that all payroll payments are reviewed & recalculated before payments are processed. This template has been designed in such a way that the rates & values which are defined by the user has a significant influence on the accuracy of payments. We therefore do not accept any responsibility for payroll calculation errors. "]
[]
["Which payroll template should I use?"]
["■ This template is a simpler version of our monthly payroll template but it is also easier to use if your payroll requirements are relatively basic. The main difference in functionality is that the monthly payroll template requires users to enter (or copy & edit) earnings for all 12 months in the tax year while this template automates the inclusion of earnings for all 12 months."]
["■ The automation of earnings is however only possible if employee earnings are constant throughout the tax year. If you have earnings types which vary every month (like commission or overtime), this template is not recommended and you should use the monthly payroll template instead. The only variances in pay which is accommodated in this template is an annual bonus where the amount can be set and a single bonus month selected as well as one annual salary increase where the new salary amount can be set and an increase month can be selected."]
["■ If the salaries of all or some of your employees differ every month, you should use our more comprehensive monthly payroll template. If your employees' basic salaries are consistent throughout the tax year aside from an annual bonus and one annual salary increase, you can use this template."]
["■ This template also does not accommodate fringe benefits and bonuses paid on any other basis than annual (for example if you need to accommodate quarterly or bi-annual bonuses). If any of these are required, you also need to use the monthly payroll template instead of this one."]
[]
["Quick Start Guide"]
["Even though it is imperative that you review all of these instructions before you use this template to pay any employees, we can summarize the steps that need to be completed as follows:"]
["■ Review all of the settings, rates & values on the Setup sheet."]
["■ Add your employees to the Emp sheet and enter all the required information. Monthly basic salary amounts should also be set on this sheet."]
["■ Review all the calculations for the first payroll period on the Payroll sheet and make sure that the Sheet Status at the top of the sheet is green (you may need to add rows if the status is red)."]
["■ Pay slips can be viewed and printed individually by selecting the appropriate pay slip number from the list box in cell G3 on the PaySlip sheet."]
[]
["The template consists of the following sheets:"]
["Setup - all the business & payroll settings need to be included on this sheet. This includes the business details, tax year dates, income tax rates, medical tax credit rates, list of earnings, list of salary deductions, list of company contributions and the list of departments. A column & row matrix which highlights incorrect column or row counts is also included at the bottom of the sheet."]
["Emp - add a unique employee code for each employee and enter data into all the employee information columns (columns B to K). Each employee needs to be linked to an income tax table and income tax rebate code which is used in the automated income tax calculations. The number of medical aid members is used in the automated medical tax credit calculations. The basic monthly salaries, annual bonus and salary increase amounts are used to automate the earnings calculations on the Payroll sheet. The deduction rate columns on this sheet can be used to override the rates on the Setup sheet for a particular employee. There is no limit on the number of employees that can be added to the template but the template has been designed for businesses with 50 or less monthly paid employees and due to the complexity of the calculations, the calculation speed of the template could slow down considerably if more than 50 employees are added."]
["Payroll - all the calculations on this sheet are automated based on the data which is entered on the Setup, Emp and Override sheets. All you need to do is to ensure that the Excel table on this sheet contains sufficient rows to accommodate all the employees that you have added to the Emp sheet. The Sheet Status at the top of the sheet will be highlighted in red if you need to add additional rows to the table."]
["Override - override any of the automatically calculated earnings, income tax, medical tax credits, salary deductions or company contributions values for any employee by adding the appropriate values to this sheet. You can override values for a single month or you can set the override end date in order to override values for multiple months or until the end of the tax year."]
["PaySlip - this sheet contains an automated monthly pay slip. All the calculations on this sheet are automated and you only need to select the appropriate pay slip number in cell G3 in order to view the appropriate pay slip."]
["Summary - this sheet contains a summary of all the monthly payroll data on the Payroll sheet. The sheet requires no user input and the data can even be filtered by department or individual employee by selecting the appropriate entries from the yellow cells at the top of the sheet."]
["MonthEmp - this sheet contains a monthly summary of payroll data by employee. All the calculations are based on the Payroll sheet and the sheet requires no user input. The appropriate measurement on which the calculations should be based can be selected from the yellow cell at the top of the sheet. Available measurements include gross pay, income tax, total deductions, net pay, total company contributions, total deductions & company contributions and total cost to company."]
["MonthDept - this sheet contains a monthly summary of payroll data by department. All the calculations are based on the Payroll sheet and the sheet requires no user input. The appropriate measurement on which the calculations should be based can be selected from the yellow cell at the top of the sheet. Available measurements include gross pay, income tax, total deductions, net pay, total company contributions, total deductions & company contributions and total cost to company."]
[]
["Setup"]
[]
["The Setup sheet contains all the information & values which need to be set up on a business or company level. All input cells contain yellow cell backgrounds while the cells with light blue cell background contain formulas which should not be changed."]
[]
["The input section at the top of the Setup sheet contains input cells for some general business information like the business name, address, registration number, contact telephone number and contact e-mail. Most of this information is only included on the PaySlip sheet but the business name is also used as a heading on all the other sheets."]
[]
["The tax period end and the tax year needs to be selected from cells C10 and C12 respectively. The data in these two cells are combined in order to determine the current & prior tax year end dates and the current template start date."]
[]
["Note: This template has been designed to incorporate a 12-month tax period. After the end of the period, you need to save a new version of the template, change the date settings on this sheet & update the income tax and other rates that may have changed for the appropriate new tax year."]
[]
["You also need to set the salary payment day, annual bonus month and salary increase month. The salary payment day is used as the payroll run date on the Payroll sheet and can be any day of the month. If pay runs are not always scheduled on the same day, you can set the day of the month which is used most frequently. If you select 31, the payment run date will be set to the last day of each calendar month."]
[]
["The annual bonus month setting determines in which month the annual bonus amounts (which are specified on the Emp sheet) are included on the Payroll sheet. You can select any month from 1 to 12. If no annual bonuses are paid, you can select any month in this input cell and just include no values in the bonus column on the Emp sheet."]
[]
["The salary increase month setting determines in which month the salary increase amounts which are specified on the Emp sheet are included on the Payroll sheet. If you clear the selection from this input cell and you do not select any month, no annual salary increases will be included in the template."]
[]
["Note: Salary increases are not just applied to the selected month but to all remaining months in the tax year. We only provide for one general salary increase month with this setting - if any employee has had other salary increases during the tax year, those would need to be accommodated by using the Override sheet."]
[]
["Income Tax Rates & Rebates"]
[]
["The template uses sliding scale tax tables for income tax calculation purposes and there are two separate income tax tables (A & B) which can be used if necessary. Each tax table contains 7 income tax brackets. At the beginning of each tax year, the user needs to update the bracket values in column C and the income tax rates in column D for both income tax tables."]
[]
["If you require more income tax brackets, you can insert the required number of additional rows anywhere in the middle of the table and then copy one of the existing rows before editing the tax bracket value & percentage for the new row. The bracket values in column A, equivalent values in column E and the effective rates in column F for all the tax brackets will be updated automatically."]
[]
["If you require less tax brackets, simple delete one of the existing rows from the middle of the table and adjust the bracket values & income tax rates in columns C and D accordingly. "]
[]
["Each employee who is added to the Emp sheet needs to be linked to either income tax table A or B and it is this link which determines which income tax rates (which table) will be applied to the particular employee. You can also enter a percentage on the Emp sheet if you want the income tax for a specific employee to be calculated based on a fixed income tax percentage."]
[]
["Note: If all your income tax calculations need to be based on a single income tax scale, you do not need to delete table B. Simply ensure that the income tax rates in column D are all set to nil values. You can also use any tax bracket value structure because no employees will be linked to table B and no income tax will be calculated if the income tax rates are set to nil."]
[]
["The template also makes provision for the inclusion of a list of income tax rebates. The default rebates list contains 4 entries but you can add additional entries by selecting the \"End of list\" cell and inserting a new row. You then need to enter a new code in column A, a description in column B and a rebate value in column C."]
[]
["Column D contains a formula which calculates the total rebate value for the appropriate rebate code. In our default template design, the first 3 rebate codes are cumulative in nature and we have therefore added them together in the total column. The 4th rebate code is however a zero-rebate code and we have therefore used a different formula for this rebate code."]
[]
["Note: If you make changes to the income tax rebate codes, it is important that you include the correct rebate formula in column D because this is the value which will be included in the income tax calculations. The appropriate income tax rebate value is deducted from the income tax which is calculated based on the appropriate income tax table above. The rebate therefore represents an after-tax adjustment to the income tax calculation."]
[]
["Note: Each employee that is added to the Emp sheet also needs to be linked to an income tax rebate code as per the Income Tax Rebate table on the Setup sheet. This link will determine which rebate value is deducted in the income tax calculation."]
[]
["Medical Tax Credits"]
[]
["The template makes provision for the deduction of medical tax credits in the calculation of monthly income tax. The calculated amounts are not deducted from taxable income as a salary deduction but from the income tax that is calculated and is based on a rate which is determined based on the number of medical aid members and a variable medical tax credit amount per member."]
[]
["The appropriate tax credit value per member needs to be entered in column B of the table and the cumulative monthly tax credit value is automatically calculated in column C. In the unlikely event that you need to include more than 10 medical aid members, you can insert the appropriate number of required rows above the \"End of list\" row, copy the formulas from the last row and enter the appropriate tax credit values in column B."]
[]
["Note: If medical tax credits are not applicable in your country, we suggest entering zero values for all the medical tax credit values in column B. This will effectively result in no medical tax credits being taken into account in the income tax calculations. Do not delete the table - if you do so, some of the formulas on the other sheets in this template could result in errors!"]
[]
["The rates per dependent for calculation purposes is determined by the medical tax credit values that are entered on the Setup sheet but the number of dependents that are linked to each employee needs to be entered in column N on the Emp sheet (referred to as the number of medical aid members)."]
[]
["If the number of medical aid members changes during the year, you can use the Override features to include the updated number in the calculation - refer to the Override section for guidance on how to update the number of medical aid members."]
[]
["Note: The tables and lists on the Setup sheet need to be customized based on your requirements (if necessary) before you start using the data on the Payroll sheet. Once the first pay period has been paid, you can still add new items to the lists but you should not change any of the rates that are included on the Setup sheet. If you do change any of the rates, it will also affect past pay periods which would then create differences between the payroll calculations and the amounts that have been paid for the elapsed months. If any of the rates on the Setup sheet need to be amended during the tax year, you need to use the Override feature to affect the required changes."]
[]
["Earnings"]
[]
["An earnings code needs to be created for each type of earning which is paid to employees. These earnings codes need to be maintained in the Earnings list on the Setup sheet. The earnings list includes 5 user input fields - the following information is required in each of these fields for each type of earning:"]
["Code - you need to enter a code for each type of earning. We highly recommend sticking to the default template convention of using a single letter to represent each type of earning. Once you have linked an earning to a specific letter and you have completed your first payroll period, you should not change the letter."]
["Description - enter a description for each earning. The earning description will be included on all employee pay slips."]
["Short Name - enter a short name for the earning. The short name should not be more than 15 characters in length and is used as a column heading above the earnings columns that are included on the other sheets in the template. Use a short name that will make it easy to identify the type of earning that it refers to."]
["Taxable % - if the earning type is not fully taxable, enter the percentage of the earning which is taxable. The default taxable % is 100% - if the earning is fully taxable, you do not need to enter anything."]
["Basis - select whether the earning is payable on a monthly or annual basis. This selection is important especially for income tax calculation purposes. If no value is selected, the earning basis will be deemed to be monthly."]
[]
["Note: If none of your earnings are taxable, you can simply specify 0% as the taxable percentage. A 0% taxable percentage will also be applicable to earnings items such as loans or advances or reimbursements which are usually not taxable."]
[]
["The earnings list does not include any earnings values or calculation basis selections. This is because monthly basic salaries, annual bonuses and annual salary increases need to be entered on the Emp sheet for each employee. Monthly earnings values on the Payroll sheet are calculated automatically based on the earnings settings on the Setup sheet and the earnings values for each employee which are set on the Emp sheet."]
[]
["The default earnings list includes 5 earnings codes. You can customize this list by adding new earnings codes but you should not make any changes to the first 3 earnings codes because these contain unique formulas on the Payroll sheet. If you add additional earnings codes on the Setup sheet, you also need to insert new columns on the Payroll sheet by copying the formulas from the last default earnings code."]
[]
["Adding or removing list items"]
[]
["The default earnings list includes 5 earnings codes and we do not recommend making any changes to the first 3 earnings codes (codes 4 and 5 can be deleted if not needed). If you require more than 5 earnings codes, additional earnings codes can be added to the list by inserting the required number of new rows above the \"End of list\" entry and entering the required information into each user input field."]
[]
["Note: If you add more entries to the list than the default number of entries, you also need to manually insert additional columns or rows on some of the other sheets in this template. Refer to the Column / Row Matrix section of these instructions for guidance on the steps that need to be completed - this is very important because if you add more than the default number of entries to the list and you do not complete these steps, the template calculations will not be accurate!"]
[]
["Salary Deductions"]
[]
["A salary deduction code needs to be created for each type of salary deduction which will be deducted from employee salaries. These salary deduction codes need to be added to the Salary Deductions list on the Setup sheet. The salary deductions list includes 9 user input fields - the following information is required in each of these fields for each type of salary deduction:"]
["Code - enter a code for each salary deduction and use a unique code which will make it easy to identify the appropriate salary deduction and to distinguish between the different types of salary deductions. The salary deduction codes are included above the column headings of all the sections on other sheets in this template where salary deductions are included."]
["Description - enter a description for each salary deduction. The descriptions that are entered in this part of the salary deductions list are included on the monthly salary pay slips on the PaySlip sheet."]
["Rate - enter the rate that needs to be used in the salary deduction calculation. The rate can be a value or percentage depending on the basis on which the deduction is calculated."]
["Basis - enter the basis on which the salary deduction needs to be calculated. There are three options - gross, fixed or linking the salary deduction to the earnings code of the appropriate single earning type on which the deduction needs to be based. If nothing is entered in this field, the salary deduction will be calculated based on gross income."]
["Earnings Inclusion - select the basis for including earnings in the salary deduction calculation. There are 2 options - full value if the full value of all earnings needs to be included and taxable if only the taxable value of earnings need to be included in the salary deduction calculation. The default option is full value which results in the full value of all the appropriate earning types being included in the salary deduction calculations."]
["Earn Exclusion - enter the earnings codes of all earnings types which need to be excluded from the salary deduction calculation. The letters of the earnings codes need to be included in this section without any spaces or special characters in between."]
["Earnings Max - if there is an annual ceiling (maximum) value which needs to be applied in the salary deduction calculation, this annual maximum earnings value needs to be entered in this field. All the values that are entered in this field therefore needs to be annual equivalents. The gross income which is used in the salary deduction calculation will then be limited to this amount."]
["Tax % - enter the % of the salary deduction amount which is deductible for income tax purposes. If no percentage is specified, the salary deduction is assumed not to be deductible for income tax purposes."]
["Annual Tax Limit - if the tax deductibility of the salary deduction is limited to a maximum annual limit (ceiling value), this maximum value needs to be entered in this field. If no value if entered, no limit is set for the tax deduction value. For example, pension fund contributions may be limited to say 350,000 per annum and this value therefore needs to be included for the pension fund salary deduction."]
[]
["The default salary deductions list includes 4 codes. You can customize this list by replacing the default data with your own. The sequence in which salary deductions are included in the list is important because the same sequence is used on the other sheets in this template. If user input values are entered in the Salary Deduction columns on one of the other sheets (as required on the Emp sheet) and you change the sequence of salary deductions, the user input values will not align to the correct salary deduction and the salary deduction calculations will in all probability become inaccurate. We therefore do not recommend that you change the sequence of salary deductions after you have entered data on the Emp sheet. New salary deduction codes can however still be added to the end of the list."]
[]
["Salary Deduction Rate, Basis & Earning Exclusions"]
[]
["The salary deduction rates that are specified on the Setup sheet relate to the business as a whole and are not employee specific. These rates can however be overridden by the deduction rates that are specified on the Emp sheet (in the section from column R onwards). We therefore suggest that the rates that you include for each deduction in the Rate input field of the Salary Deductions List are rates that are applicable to most of your employees. Where some employees are subject to a different rate of deduction, these rates can then be added for the specific employees on the Emp sheet and will replace the business rates that are specified on the Setup sheet."]
[]
["Example: If your business has 20 employees and only 2 of them contribute 10% of their salaries to a pension fund, you should enter a rate of 0% in the Rate input field of the pension fund deduction in the Salary Deductions List (on the Setup sheet) and then add the 10% value only for the 2 employees in the appropriate pension fund salary deduction column on the Emp sheet."]
[]
["The type of rate that you specify on either the Setup or Emp sheet is also largely dependent on the basis that you specify in the next user input field. If the basis is \"Gross\", the rate would typically be a percentage which needs to be entered as a decimal value in the Rate user input field (for example 0.02 for 2%). If the basis is \"Fixed\", the rate would typically be an amount - for example a rate of 50.00 would result in an amount of 50.00 being deducted in the appropriate salary deduction calculation."]
[]
["If an earnings code has been entered as the basis for a salary deduction, the rate that needs to be specified is usually a percentage of the appropriate earning."]
[]
["Example: If say 1% of only the basic salary earning needs to be deducted from all employees' salaries, the salary deduction can be set up by entering a rate of 0.01 and then entering the earnings code for basic salaries (\"A\" in our standard template) in the Basis user input field. The salary deduction calculation will then be based on 1% of only earnings code A."]
[]
["The template has been designed with such flexibility that it is even possible to base a salary deduction on only say two or three earnings codes - simply select the \"Gross\" basis in order to base the salary deduction calculation on gross income (total of all earnings codes) and then exclude all but the required earnings codes in the Earn Exclusion input field (column I)."]
[]
["Example: If we want to base a salary deduction calculation only on the basic salary (earnings code A) and leave pay (earnings code B) of employees, we can exclude all other earnings codes in column H. The entry in the Earn Exclusion input field would therefore be \"CDE\" and would result in the salary deduction only being calculated on earnings codes A and B."]
[]
["Taxable Values"]
[]
["Some salary deductions may not require the full values of earnings to be included in the calculation of the appropriate salary deduction. We have therefore added functionality to the template in order to include the taxable values of earnings instead of the full values for tax calculation purposes."]
[]
["You can use taxable values of earnings instead of full values by selecting the \"Taxable\" option for the affected salary deductions in the Earn Inclusion input field (column G). Note that this setting will be applied to all earnings if the \"Gross\" basis is selected and to the individual earning if an earning code has been specified as the basis."]
[]
["Even though the taxable value setting is applied to all earnings, it may not affect all earning codes. Where no taxable % or a taxable % of 100% has been specified for a particular earning, the full value and taxable value for the earning will be the same. Setting the Earn Inclusion field to \"Taxable\" therefore only affects earnings which are not fully taxable. If an earning is not taxable (taxable % of 0%), setting the Earn Inclusion to \"Taxable\" effectively excludes the particular earning for the salary deduction calculation."]
[]
["Example: If the unemployment insurance fund (UIF) salary deduction calculation only needs to include a taxable % of 20% of the Travel Allowance earning type, you will need to set the UIF salary deduction to the taxable earnings setting (Earn Inclusion set to \"Taxable\"). Only 20% of travel allowances will then be included in the UIF calculation but the activation of the setting will also result in all earning types that are 0% taxable being excluded. This means that reimbursive travel allowances and loans / advances which are not taxable (taxable % of 0%) will also not be included in the UIF calculation."]
[]
["The tax % and annual tax limit settings in column J and K does not affect the salary deduction calculations and only affect how the salary deductions are included in the calculation of the monthly income tax salary deduction. If a salary deduction should not be deducted in the income tax calculations, a tax % of 0% needs to be specified. The default tax percentage is also 0% which means that salary deductions are not deductible for income tax purposes if a tax % is not entered in column J. For salary deductions that are fully deductible for income tax purposes, a setting of 100% needs to be entered in column J."]
[]
["Adding or removing list items"]
[]
["The default list includes 4 items which can be customized by replacing the default template data with your own. If you require less than 4 salary deduction codes, you can delete the rows that are not required. If you require more than 4 salary deduction codes, additional codes can be added to the list by inserting the required number of new rows above the \"End of list\" entry and entering the required information into each user input field."]
[]
["Note: If you add more entries to the list than the default number of entries, you also need to manually insert additional columns or rows on some of the other sheets in this template. Refer to the Column / Row Matrix section of these instructions for guidance on the steps that need to be completed - this is very important because if you add more than the default number of entries to the list and you do not complete these steps, the template calculations will not be accurate!"]
[]
["Company Contributions"]
[]
["A company contribution code needs to be created for each type of company contribution which the employer contributes on behalf of employees. These company contribution codes need to be added to the Company Contributions List on the Setup sheet. The company contribution List includes 7 user input fields - the following information is required in each of these fields for each type of company contribution:"]
["Code - enter a code for each company contribution and use a unique code which will make it easy to identify the company contribution and to distinguish between the different types of company contributions. The company contribution codes are included above the column headings of all the sections on other sheets in this template where company contributions are included."]
["Description - enter a description for each company contribution."]
["Rate - enter the rate that needs to be used in the company contribution calculation. The rate can be a value or percentage depending on the basis on which the contribution is calculated."]
["Basis - enter the basis on which the company contribution needs to be calculated. There are three options - gross, fixed or linking the company contribution to the salary deduction code of the single salary deduction on which the company contribution calculation needs to be based. If nothing is entered in this field, the company contribution will be calculated based on gross income."]
["Earnings Inclusion - select the basis for including earnings in the company contribution calculation. There are 2 options - full value if the full value of all earnings needs to be included and taxable if only the taxable value of earnings need to be included in the company contribution calculation. The default option is full value which results in the full value of all the appropriate earning types being included in the company contribution calculations."]
["Earn Exclusion - enter the earnings codes of all earnings types which need to be excluded from the company contribution calculations. The appropriate letters of the earnings codes need to be included in this section without any spaces or special characters in between."]
["Earnings Max - if there is an annual ceiling (maximum) value which needs to be applied in the company contribution calculation, this annual maximum earnings value needs to be entered in this field. All the values that are entered in this field therefore needs to be annual equivalents. The gross income which is used in the company contribution calculation will then be limited to this amount."]
[]
["The default company contribution list includes 4 company contribution codes. You can customize this list by replacing the default data in the template with your own data."]
[]
["Company Contribution Rate, Basis & Earning Exclusions"]
[]
["The company contribution rates that are specified on the Setup sheet relate to the business as a whole and are not employee specific. Where the contribution rates only need to be applied to specific employees, you will need to link the company contribution basis to the appropriate salary deduction code in order to use the salary deduction rates which have been specified on an employee level on the Emp sheet. The company contribution rate which is entered for the particular contribution can be used to adjust the salary deduction rates on the Emp sheet."]
[]
["If the contribution rates and salary deduction rates are not a consistent percentage, the Override feature needs to be used in order to apply the correct company contribution values for the affected employees. Refer to the Override section of the instructions for more guidance on this feature."]
[]
["The type of rate that you specify on the Setup sheet is largely dependent on the basis that you specify in the next user input field. If the basis is \"Gross\", the rate would typically be a percentage which needs to be entered as a decimal value in the Rate user input field (for example 0.02 for 2%). If the basis is \"Fixed\", the rate would typically be an amount - for example a rate of 50.00 would result in an amount of 50.00 being contributed in the appropriate company contribution calculation."]
[]
["If a salary deduction code has been entered as the basis for a company contribution, the rate that needs to be specified is usually a percentage of the appropriate salary deduction."]
[]
["Example: If a company contribution is related to a salary deduction and the contribution and deduction values are based on the same percentage of gross income with the same calculation parameters (which means that the salary deduction and company contribution will always be equal), the company contribution can be set up by entering a rate of 1 (or 100%) and then entering the salary deduction code of the salary deduction in the Basis user input field. The company contribution calculation will then be based on 100% of only the linked salary deduction."]
[]
["The template has been designed with such flexibility that it is even possible to base a company contribution on only say one, two or three earnings codes - simply select the \"Gross\" basis in order to base the company contribution calculation on gross income (total of all earnings codes) and then exclude all but the required earnings codes in the Earn Exclusion input field (column H)."]
[]
["Example: If we want to base a company contribution calculation only on the basic salary (earnings code A) of employees, we can exclude all other earnings codes in column H. The entry in the Earn Exclusion input field would therefore be \"BCDE\" and would result in the company contribution only being calculated on earnings code A which in our default template data is for basic salary only."]
[]
["Example: The unemployment insurance fund (UIF) company contribution calculation needs to exclude commissions. If the earnings code for commissions is say \"F\", this letter needs to be included as the Earn Exclusion and the basis set to \"Gross\". The commission amounts included in gross income are then deducted when calculating the value of the company contribution. Alternatively, you can link the UIF company contribution to the UIF salary deduction and enter a rate of 100% if the salary deduction and company contribution values need to be equal."]
[]
["Taxable Values"]
[]
["Some company contributions may not require the full values of earnings to be included in the calculation of the appropriate company contribution. We have therefore added functionality to the template in order to include the taxable values of earnings instead of the full values for tax calculation purposes."]
[]
["You can use taxable values of earnings instead of full values by selecting the \"Taxable\" option for the affected company contributions in the Earn Inclusion input field (column G). Note that this setting will be applied to all earnings if the \"Gross\" basis is selected (excluded earnings will however be deducted)."]
[]
["Even though the taxable value setting is applied to all earnings, it may not affect all earnings codes. Where no taxable % or a taxable % of 100% has been specified for a particular earning, the full value and taxable value for the earning will be the same. Setting the Earn Inclusion field to \"Taxable\" only affects earnings which are not fully taxable. If an earning is not taxable (taxable % of 0%), setting the Earn Inclusion to \"Taxable\" effectively excludes the particular earning from the company contribution calculation."]
[]
["Example: If the unemployment insurance fund (UIF) company contribution calculation only needs to include a taxable % of 20% of the Travel Allowance earning type, you will need to set the UIF company contribution to the taxable earnings setting (Earn Inclusion set to \"Taxable\"). Only 20% of travel allowances will then be included in the UIF calculation but the activation of the setting will also result in all earning types that are 0% taxable being excluded. This means that reimbursive travel allowances and loans / advances which are not taxable (taxable % of 0%) will also not be included in the UIF calculation."]
[]
["Example: If a company contribution has been linked to a salary deduction, it is not necessary to specify values for any of the other settings. If we link our company contribution for UIF to the salary deduction for UIF, we do not need to enter anything in the earn inclusion, earn exclusion and earnings max input fields."]
[]
["Adding or removing list items"]
[]
["The default list includes 4 items which can be customized by replacing the default template data with your own. If you require less than 4 company contribution codes, you can delete the rows that are not required. If you require more than 4 company contribution codes, additional codes can be added to the list by inserting the required number of new rows above the \"End of list\" entry and entering the required information into each user input field."]
[]
["Note: If you add more entries to the list than the default number of entries, you also need to manually insert additional columns or rows on some of the other sheets in this template. Refer to the Column / Row Matrix section of these instructions for guidance on the steps that need to be completed - this is very important because if you add more than the default number of entries to the list and you do not complete these steps, the template calculations will not be accurate!"]
[]
["Departments"]
[]
["Employees can be linked to departments in order to calculate departmental payroll costs which can be used to allocate payroll entries for accounting purposes. The department code is linked to individual employees in column C on the Emp sheet and only the department codes which have been included in the Departments list on the Setup sheet will be available for selection. The following information is required in the department list:"]
["Code - enter a unique code for each department which will make it easy to identify the appropriate department and to distinguish between different departments."]
["Description - enter a description for each department."]
["Cost Centre - enter the general ledger code which should be used for allocation of costs to departments."]
[]
["Note: The template only includes 3 departments but you can add additional departments by inserting the required number of rows above the \"End of list\" row and adding a department code, description and cost centre for each of the new departments."]
[]
["Note: A summary of payroll costs by department is included on the MonthDept sheet. All the calculations that are included on this sheet are automated and the only user input which is required on this sheet is selecting the appropriate payroll cost measurement at the top of the sheet."]
[]
["Column & Row Matrix"]
[]
["The Column & Row Matrix at the bottom of the Setup sheet indicates whether the rows or columns on the other sheets in this template are consistent with the number of items which have been added to the lists on the Setup sheet. If rows or columns need to be added on any of the other sheets, the Status column in the matrix will be highlighted in red. If all the cells in the Status column are highlighted in green, it means that there are no inconsistencies and no additional rows or columns need to be added to the other sheets in the template."]
[]
["Note: If you do not add additional items to the lists on the Setup sheet, all the cells in the Status column will automatically contain green highlighting and you do not need to pay any further attention to the matrix. The matrix therefore only needs to be used if you add additional list items."]
[]
["Adding list items"]
[]
["None of the lists on the Setup sheet are limited to the default number of entries which means that you can add as many additional items as required. When you add items to a list, you need to insert the required number of rows (one per additional list item) above the \"End of list\" entry and complete the user input in all the columns that form part of the list for all the new items."]
[]
["If the total number of list items are more than the number of default items that are provided for, the matrix at the bottom of the Setup sheet will indicate where on the other sheets in this template new rows or columns need to be inserted. The inconsistency between list items and columns is indicated by red highlighting in the Status column of the Column & Row Matrix."]
[]
["The Sheet & Section text in column A of the matrix indicates which sheet and which section of the sheet requires additional rows or columns to be inserted. The starting row or column indicates in which row or column the section starts and the difference between the sheet count and the list count indicates how many new rows or columns need to be inserted."]
[]
["You then need to go to the appropriate sheet and section and insert the required number of rows or columns in order to resolve the inconsistency. Note that if there are row or column inconsistencies, the template calculations may be inaccurate and it is therefore imperative that all of these errors are resolved!"]
[]
["Inserting new rows or columns"]
[]
["If any of the status cells in the matrix is highlighted in red, the start row or column text will indicate whether rows or columns need to be inserted in order to resolve the error. If the text contains letters, columns need to be inserted and if the text contains numbers, rows need to be inserted. The column or row number also indicates where on the appropriate sheet the section starts."]
[]
["If you need to insert columns, you need to go to the starting column of the appropriate section and select the first dark blue cell in the column heading at the end of the section. The section starts at the indicated column which will have a dark blue cell as the column heading followed by a number of light blue column headings which are then followed by a dark blue column heading. You therefore need to select the first column heading cell with a dark blue column heading at the end of the appropriate section and then insert the required number of columns."]
[]
["After you have inserted the required number of columns, you may need to change the column heading numbering so that the column heading names are consistent with the other columns in the section. This is not critical but may make it easier to determine which columns are part of the same section."]
[]
["You then need to copy & paste all the cells above the column headings of the new columns from one of the existing columns. Always copy from the left - the section ends where you inserted the new columns and you therefore need to copy the formulas from the left in order to ensure that the same formulas are applied to the new columns that you just inserted."]
[]
["Once you have done so, the last step is to copy the formulas from the section below the column headings in order to add calculations to the new columns. You should again copy from the left and you only need to copy & paste the formulas into the first cell below the column headings. The formulas will automatically be extended for all the other rows that form part of the new columns."]
[]
["Note: If you need to add columns to a sheet and the column headings are yellow instead of light blue, you do not need to copy the formulas below the column headings because the section of the sheet requires user input and there are therefore no formulas in these columns. The Deduction section on the Emp sheet is the only user input column section which may be affected. All the other column sections contain formulas that need to be copied."]
[]
["If you need to insert rows instead of columns, you only need to insert the new rows at the end of the appropriate section and copy the formulas from the last row that forms part of that section (which will be above the new rows). You may then also need to change some of the border formatting but there are no dark blue row headings that need to be taken into account."]
[]
["After making your row or column adjustments, you need to check whether the red highlighting in the Status column of the matrix on the Setup sheet has been replaced by green highlighting. If so, you have applied the changes correctly. If the Status cell is still highlighted in red, the error has not been resolved and you need to revisit the steps that you needed to take. If you fail to resolve the error, contact us for assistance."]
[]
["Deleting rows or columns"]
[]
["If you do not use some of the list items that are included in each of the lists on the Setup sheet, you can delete the appropriate rows from the list in order to reduce the number of earnings, salary deductions or company contributions."]
[]
["The number of columns which have been included on the Emp, Payroll and Summary sheets have been determined based on the default number of list items that we have included on the Setup sheet. If you therefore remove some of the list items, some of these columns can also be deleted."]
[]
["Note: We recommend rather retaining unused columns instead of deleting them. If you delete the wrong columns it could result in errors. Only therefore delete columns if you are absolutely sure that the columns are not being used in any calculations."]
[]
["Employees"]
[]
["All employees need to be added to the Emp sheet by adding a unique employee number in column A and entering employee data into all the user input columns on this sheet. The following columns require user input data:"]
["Employee Number - enter a unique employee number for each individual employee. We recommend using employee numbers which consist of a combination of letters and numbers."]
["Employee Name - enter the name of the employee. You can use full names or surname & initials. The name as entered in this field will be included on the other sheets in the template including on the pay slip."]
["Dept - select the appropriate department. Only departments which have been added to the department list on the Setup sheet will be available for selection."]
["Date Employed - enter the date on which the employee commenced employment."]
["1st Payment Date - enter the date of the first payroll run which the employee should be included in. If the employee is added to a payroll run in any month which falls before the first day of the month in which this date falls, all payroll amounts will be set to nil values. The number of pay periods is also determined based on this date and an incorrect date can therefore lead to calculation inaccuracies. It is therefore imperative that the first payment dates of all employees are recorded accurately."]
["Date Terminated - if the employee has left the employment of the company, enter the date of termination in this column. The employee will only be able to receive payment on a payroll run date up to the end of the month in which this date falls."]
["Pay Period Override - select the \"Yes\" option if the employee pay periods need to be replaced by the business pay periods. This setting only has an effect if an employee has joined the company during the current tax year. See below for an example."]
["Job Title - enter the employee job title (included on pay slip)."]
["ID Number - enter the employee identification or ID number (included on pay slip)."]
["Income Tax Number - enter the employee income tax number (included on pay slip)."]
["Residential Address - enter the residential address of the employee (included on pay slip)."]
["IT Rebate Code - enter the appropriate income tax rebate code for the employee. Refer to the income tax rebate list on the Setup sheet for the available rebate codes. It is important that the correct rebate codes are entered for each employee otherwise their income tax calculations may not be accurate."]
["Income Tax Rate - select the appropriate income tax table code for the employee. There are two income tax tables on the Setup sheet - select A for the first table and B for the second table. You can also enter a percentage in this field if the income tax calculations for the employee need to be based on a fixed income tax percentage."]
["Medical Aid Members - enter the number of medical aid members. The medical tax credits are based on the number of medical aid members and the rates that are specified in the Medical Tax Credits table on the Setup sheet."]
["Basic Monthly Salary - enter the monthly basic salary of each employee in this column. The values in this column are included in the basic salary column (earnings code A) on the Payroll sheet for all months in which the employee is active. If the employee's basic salary changes (aside from the one salary increase month which is provided for), you should not change the value in this column but add an override entry to the Override sheet for the remaining pay periods. If you change the amount in this column, it will also change payroll data for past pay periods."]
["Annual Bonus Amount - enter the annual bonus amount in this column. The amounts entered in this column are included in the annual bonus column (earnings code C) on the Payroll sheet based on the annual bonus month selection which is specified on the Setup sheet."]
["One Increase Amount - enter the adjusted monthly salary amounts after the annual salary increase in this column. Note that it is not the amount of the increase which needs to be entered, it is the full adjusted salary amount. The basic monthly salaries (earnings code A) in all remaining pay periods will be adjusted to the amounts specified in this column and the annual salary increase month is set on the Setup sheet. If no annual salary increases need to be applied during the course of the tax year, you do not need to enter any values in this column."]
["Deduction Rates - this section includes 4 columns, one for each of the 4 default items that are included in the Salary Deductions List on the Setup sheet. The rate field on the Setup sheet which is set up on a business level can be overridden by entering a rate for a particular employee in the appropriate salary deduction column in this section of the Emp sheet. The salary deduction code of each column is included above the column heading."]
["Period Count - this column contains a formula which displays the number of pay periods which have been added to the Payroll sheet for the particular employee. All of the values in this column should be 12 - if the value for any employee is less than 12, it indicates that you need to add additional rows to the table on the Payroll sheet."]
[]
["Note: All the columns on the Emp sheet have been included in an Excel table. This feature is extremely useful when entering data in a table format because the table extends automatically when you enter data in the first blank row below the table. New employees should therefore be added to the sheet by entering an employee code in the first blank cell in column A."]
[]
["Note: The salary amounts and the rates in the Deduction section of the Emp sheet should not be changed once you have completed your first pay period because it will also affect past pay periods which would then result in differences between the payroll calculations and the amounts which have been paid during the elapsed months. If any of these salary amounts or deduction rates need to be amended during the course of the current tax year, you need to use the Override feature to affect the required changes."]
[]
["Pay Periods"]
[]
["When an employee joins the company during the tax year and is therefore only employed for part of the year, the employee's pay periods are determined based on the date that the employee joined in order for the income tax calculations to be accurate based on the assumption that the employee had been employed elsewhere before joining the company."]
[]
["You can override this default calculation by selecting the \"Yes\" option in the Pay Period Override column on this sheet. The company pay periods are then used instead of the employee pay periods. This setting has no effect on employees who are employed for the full tax year."]
[]
["Example: If an employee joins the company in month 7 of the tax year, the employee pay period in month 7 will be 1 because it is the employee's first month of employment. This means that if the employee has a gross pay of 10,000 per month, the salary deductions (including income tax) will be calculated based on an annual gross remuneration of 120,000 (10,000 / 1 x 12)."]
[]
["The effect of this default calculation is that for example income tax will be calculated & deducted from the employee's salary based on annual earnings of 120,000 therefore assuming that the employee was employed elsewhere at a similar remuneration level for the part of the tax year before joining the company. If this was indeed the case, the employee's annual income tax deductions should be similar to what will be included on the employee's tax return at the end of the tax year."]
[]
["If the employee was not employed during the part of the tax year that elapsed before joining the company, the above calculation method would result in an over deduction of income tax because the calculation is based on a full 12-month employment period. If you want to override this default calculation in order to calculate salary deductions like income tax based on only the part of the tax year that the employee was employed by the company, you simply need to select the \"Yes\" option for the particular employee in the Pay Period Override column."]
[]
["The income tax calculation will then be based on the company pay periods which in the above example will result in the deductions being based on an annual gross remuneration of 60,000 by the end of the tax year. Under the default rule, the employee would have had to pay a lot more income tax on a monthly basis and only have been able to claim the tax back at the end of the tax year. With the override activated, the income tax deduction would be a lot less and would be accurate by the end of the tax year with no need to claim any tax back."]
[]
["Monthly Salary Amounts"]
[]
["The monthly salary amounts which are included on the Payroll sheet (and therefore also all other sheets in this template) are based on the monthly basic salary amounts which are specified on the Emp sheet. These monthly salary amounts are basically repeated for all 12 pay periods in the tax year and only adjusted based on the annual salary increase amounts that are also specified on the Emp sheet."]
[]
["While the annual bonus amounts on the Emp sheet are included in a separate earnings code (earnings code C) and therefore represent an additional salary payment, the basic monthly salary amounts and the annual salary increase amounts are both applied in earnings code A. The annual salary increase amounts therefore in fact replace the basic monthly salary amounts from the salary increase month (which is selected on the Setup sheet) until the end of the tax year. You can therefore select any month as a salary increase month for all employees and the increased salary amounts will be used from that point forward."]
[]
["The salary increase functionality has enabled us to provide for one company wide salary increase per year. But what if some employees receive more than one salary increase per year? Well, this is also accommodated for but you would need to record an override entry to be able to adjust the basic salary of the affected employee outside of the one annual salary increase for all employees. Refer to the Override section of the instructions for more info."]
[]
["Deductions Section"]
[]
["The rates that are specified in the 4 columns which are included in the Deduction section effectively override the rates that are specified in the Salary Deductions List on the Setup sheet. The salary deduction rate which is used on the Payroll sheet for the specific employee is therefore included from the Emp sheet and if no rate has been included for the particular salary deduction for the particular employee, the rate on the Setup sheet will be included instead. You therefore only need to include a rate on the Emp sheet if you want to override the company rate on the Setup sheet for some of the employees."]
[]
["The Deduction section includes 4 columns which is the default number of list items in the Salary Deductions List on the Setup sheet. If you add items to the list on the Setup sheet, you also need to add columns at the end of this section on the Emp sheet."]
[]
["The columns should be added by selecting the dark blue column heading (after the end of the section) and inserting the required number of columns. You then also need to copy the formula above the column heading from one of the other cells in the section in order to display the deduction code above the column headings of the new columns. You may also need to rename the column headings if the default names in the new column headings are not consistent with the other column names in the section."]
[]
["Note: As we stated earlier on in these instructions, the sequence of the items in the lists on the Setup sheet should not be changed once you have added data to the Payroll sheet. If the sequence of the items in the Salary Deduction List is changed, the rates or values that have been added to the Emp sheet also needs to be changed to ensure that the correct rates or values are included in the correct columns."]
[]
["Payroll"]
[]
["All the monthly payroll calculations in this template are performed on the Payroll sheet and all of these calculations are automated. The only user intervention that may be required is to ensure that there are sufficient rows in the Excel table on this sheet. The template is designed for businesses with up to 50 employees and we have added sufficient rows for 12 months' calculations for 50 employees but if you add more than 50 employees, you will need to add more rows to the table."]
[]
["If you've added less than 50 employees to the Emp sheet and you do not need 50 employees to be included on the Payroll sheet, you can delete some of the additional rows. The rows that are currently not used will not contain an employee code and you can therefore delete all rows that do not contain an employee code. If you subsequently add more employees, there may not be sufficient rows in the Excel table for all payroll calculations but the Sheet Status at the top of the Payroll sheet will be highlighted in red and indicate the number of rows that need to be added."]
[]
["If the Sheet Status is red, it means that your payroll calculations are not up to date and that you need to add rows to the table. You can select any cell in the table and insert the required number of rows into the table - the new rows will be populated automatically with the appropriate formulas because they now form part of the Excel table and calculated columns are automatically copied."]
[]
["Note: The area above the column headings also contain formulas which should not be edited, replaced or deleted otherwise the template calculations will not be accurate."]
[]
["The Payroll sheet contains the following columns:"]
["Pay Slip Reference Number -the payslip reference number is a combination of the employee number and the payment period and therefore represents a unique number for each payroll payment. This is also the reference number which is used to populate information on the PaySlip sheet."]
["Payment Run Date - this is the payroll run date which is based on the salary payment day which is specified on the Setup sheet."]
["Employee Number - this is the employee number as added to the Emp sheet. All employee numbers are displayed in the same sequence as they are included on the Emp sheet. Employee codes are then repeated for all 12 payment periods."]
["Employee Name - the employee name is specified on the Emp sheet."]
["Dept - the department is determined based on the department code which has been linked to the employee on the Emp sheet."]
["Status - the status of all employees who are currently employed (based on the pay month) will be \"Active\". If an employee has only been hired after the end of the current pay month, the status will be \"Inactive\". If an employee has been terminated and the pay month is after the month of termination, the status will be \"Terminated\". Payroll amounts are only calculated for employees with an \"Active\" status."]
["Earnings Section - the earnings section includes the 5 default earning types added to the Earnings List on the Setup sheet. The first three earnings codes should not be amended in any way but you can delete earnings types 4 and 5 if these earnings types are not required and you can also add additional earnings if necessary. The monthly salary amounts in the Earnings section are specified on the Emp sheet for earnings codes A and C and on the Override sheet for all other earnings codes."]
[]
["Note: If have added earnings items to the Earnings List on the Setup sheet, you also need to insert new columns for these new earnings list items on the Payroll sheet. Select the column heading of the Gross Pay column and insert the required number of columns. You may also need to edit the column heading text so that it is consistent with the other column headings. You also need to copy the formulas above the column headings from one of the existing earnings columns."]
[]
["Gross Pay - this is the total of all the monthly earnings in the earnings section."]
["Income Tax (PAYE) - this is the monthly income tax amount which is deducted from the appropriate employee's pay. Income tax is calculated based on the employee's annual taxable income and the income tax rates that have been specified on the Setup sheet. Each employee is linked to an income tax table and an income tax rebate code on the Emp sheet."]
["Deduction Section 1 - this section includes all the salary deduction values of the salary deductions which have been added to the Salary Deduction List on the Setup sheet. All of these amounts are calculated based on the rates that have been defined on the Setup sheet or overridden on an individual employee level on the Emp sheet. Refer to the Setup section of the instructions for guidance on how the salary deduction calculations are defined."]
["Total Deductions - this is the sum of all the salary deductions in Deduction Section 1."]
["Net Pay - this is the difference between the gross pay and the total salary deductions (including income tax)."]
["Co-Contribution Section 1 - this section includes the monthly company contribution values for all the list items that have been included in the Company Contributions List on the Setup sheet. All of these amounts are calculated based on the rates that have been defined on the Setup sheet - refer to the Setup section of the instructions for guidance on how the rates are defined."]
["Total Co Contributions - this is the sum of all the company contributions in Company Contribution Section 1."]
["Total Cost To Company - this is the sum of the gross pay and total company contribution amounts."]
["Deductions & Co-Contrib - this is the sum of the total salary deductions and total company contribution amounts."]
["Employee Pay Period - this is the employee pay period. The employee pay period will only differ from the business pay period if the employee commenced employment during the current tax year. The employee pay period is used in most of the payroll calculations on this sheet."]
["Business Pay Period - this is the business pay period which is based on the number of months which have elapsed since the start of the tax year. The business pay period is only used in the quarterly & bi-annual earnings calculations and if the pay period override of an employee has been activated on the Emp sheet."]
["Unique Pay Date - the unique dates in this column have been calculated by combining the payroll run date and the row number of the entries in order to ensure that no two dates can be exactly the same."]
["1st Pay Period - this is the first pay period of the employee which is defined on the Emp sheet."]
["Pay Period Override - reflects \"Yes\" if the pay period override for the employee has been selected on the Emp sheet."]
["PaySlip Status - this column will contain a value of 1 if the pay slip number in column A is currently selected on the PaySlip sheet."]
["Medical Aid Members - this is the number of medical aid members which have been linked to the employee on the Emp sheet."]
["MedTaxCredit Monthly - the monthly value of the medical tax credit which is deducted in the income tax calculation. This medical tax credit is calculated by multiplying the medical aid members by the appropriate rate which is defined on the Setup sheet."]
["MedTaxCredit Annual - the annual value of the medical tax credit which is deducted in the income tax calculation. "]
["IT Rebate Code - this is the income tax rebate code which has been linked to the employee on the Emp sheet. The default rebate code is \"A\"."]
["IT Rebate Value - this is the income tax rebate value for the employee which is calculated based on the income tax rebate code and the rates which are included on the Setup sheet."]
["IT Rate - this is the income tax rate table which has been linked to the employee on the Emp sheet. The default income tax table is table A."]
["Annual Gross Tax Income - this column contains a calculation of the annual gross taxable income before salary deductions are taken into account. This is the first column in a series of columns which are used to calculate the monthly income tax deduction values and is based on the amounts in the Earnings section."]
["Annual Tax Deduct Section - this section contains columns (default of 4) for each salary deduction. The annual taxable salary deduction amounts are calculated in these columns which is then deducted from the annual gross taxable income. If you add more than 4 entries to the Salary Deductions List on the Setup sheet, you need to insert the appropriate number of columns at the end of this section."]
["Annual Taxable Income - this column contains a calculation of the annual taxable income which is used in the calculation of the monthly income tax deductions. The annual taxable income is calculated by deducting the annual equivalents of the salary deductions from the annual gross taxable income (which is based on the amounts in the Earnings section)."]
["Tax Monthly EQV - this column represents the start of the calculation of income tax which is only applicable to earnings which are paid on a monthly basis. The amounts in this column reflect the gross annual taxable income. The reference to \"monthly\" in the column headings is because the calculations are only based on earnings which are paid on a monthly basis (no annual) but the amounts calculated in fact represent annual equivalents."]
["Monthly EQV Deduct Section - this section contains columns (default of 4) for each salary deduction. Only earnings that are paid on a monthly basis are included in the calculation of these salary deductions which is the difference between the salary deduction calculations in this section and the previous salary deduction section which included all earnings in the calculation. If you added more than 4 salary deduction items to the Salary Deductions List on the Setup sheet, you need to also add the required number of columns at the end of this section."]
["Taxable Income Monthly EQV - this column contains the calculation of annual taxable income which is based on income which is only based on earnings which are paid on a monthly basis. The calculation deducts the amounts in the salary deduction section. "]
["Taxable Income Non-Monthly - the total annual taxable income less the annual taxable income which is based only on earnings that are paid on a monthly basis is calculated in this column. This column therefore reflects the annual taxable income which is based on earnings that are not paid on a monthly basis."]
["Total Annual Taxation - this column reflects the total annual taxation based on all earnings and after taking rebates and medical tax credits into account."]
["Tax On Monthly Income - this column reflects the total annual taxation based only on earnings which are paid on a monthly basis"]
["Tax On Non-Monthly Inc - this column reflects the total annual taxation based only on earnings which are not paid on a monthly basis (annual)."]
["Earnings % Month - this column reflects the percentage of earnings which is paid on a monthly basis."]
["Earnings % Annual - this column reflects the percentage of earnings which is paid on an annual basis."]
["Earnings Total Amount - this column reflects the annual equivalent of all earnings."]
[]
["Note: All of the columns with dark blue column headings on the Payroll sheet are essential for the template calculations and should therefore not be deleted. If you do delete any of these columns, some of the template calculations may result in errors and you would need to revert back to the downloaded version of the template."]
[]
["Adding or deleting columns"]
[]
["When you add more than the default number of entries to the lists on the Setup sheet, it is essential that you also add the required number of columns to the other sheets in this template. The Payroll sheet contains multiple sections for earnings, salary deductions and company contributions."]
[]
["Note: We strongly suggest that you use the Column & Row Matrix which has been included at the bottom of the Setup sheet when you have added more than the default list items to any of the lists on the Setup sheet. The matrix will indicate into which sections of the Payroll sheet additional columns need to be inserted by highlighting the appropriate Status cells in red and also contains the starting column or row numbers of each section."]
[]
["Note: You may also need to insert new columns into multiple sections on the Payroll sheet. There is only one section relating to Earnings and Company Contributions on the Payroll sheet but Salary Deductions relate to 3 sections (which means that new columns need to be inserted into 3 different column sections when adding more than the default number of list items to the Setup sheet)."]
[]
["When you add new columns to the Payroll sheet, it is imperative that you also copy the formulas above & below the column headings from one of the existing columns in the appropriate section otherwise the template calculations may not be accurate."]
[]
["Override"]
[]
["The Override sheet can be used to override any of the monthly calculated values for an employee. You can choose to override a single value, values for a range of multiple months or all monthly calculations until the end of the tax year. The override feature is available for earnings, income tax deductions, other salary deductions, company contributions and medical tax credits (specifically the medical aid member count)."]
[]
["Note: If you override only one monthly value, most of the formulas which are used in this template (on the Payroll sheet) will automatically correct the override value in the subsequent month thereby reversing the effect of the override value. This is because most calculations on the Payroll sheet are based on annual equivalents. "]
[]
["Note: All the data on the Override sheet have been included in an Excel table. This feature is extremely useful when entering data in a table format because the table extends automatically when you enter data in the first blank row below the table. Override entries can therefore be added to the sheet by simply entering or copying data into the first blank row below the table. The formulas in the calculated columns are then also extended automatically."]
[]
["If you enter multiple override values which affect the same monthly period, the entries will be added together. You can extend the override entry for multiple periods by simply specifying an override end date. If the override value should be applied to the remaining periods in the tax year, use an override end date of the last day of the tax year."]
[]
["The following columns on the Override sheet require user input:"]
["Override Date - enter the start date of the override entry. The override entry will replace the default calculation for the specified item and employee on the Payroll sheet from the first calendar month into which this date falls. If you do not enter an override end date in column I, the override will only be applied to a single monthly period."]
["Employee Number - select the employee number of the employee for which the override needs to be applied. If you do not select a valid employee number, the override entry will have no effect. Only employee codes which have been added to the Emp sheet will be available for selection."]
["Earnings Code - select the appropriate earnings code from the list box if the override entry should be applied to an earnings code. The override value in column H will then override the earnings value for the selected earnings code on the Payroll sheet. Earnings are usually overridden when more than one salary increase needs to be applied for any employee (code A) or to record ad hoc salary payments like leave pay or loans & advances."]
["Income Tax Code - select \"TAX\" from the list box if the override entry should be applied to the income tax salary deduction. If this item is selected, the calculated salary deduction value for income tax will be replaced by the override value in column H."]
["Medical Tax Credit Code - select \"MED\" from the list box if the override entry should be applied to the medical aid members which have been recorded on the Emp sheet. The calculation of medical tax credits (which are taken into account when calculating the monthly income tax deductions) consists of the employee's medical aid members which is multiplied by the medical tax credit rates on the Setup sheet. The medical override is therefore usually recorded when the number of medical aid members changes during the tax year."]
["Deduction Code - select the appropriate salary deduction to override. All the salary deductions which have been added to the Salary Deductions List on the Setup sheet will be available for selection. The calculated salary deduction value for the selected employee on the Payroll sheet will be replaced by the override value in column H."]
["Co-Contrib Code - select the appropriate company contribution to override. All the contributions which have been added to the Company Contributions List on the Setup sheet will be available for selection. The company contribution value for the selected employee on the Payroll sheet will be replaced by the override value in column H."]
["Override Value - enter the override value. This value will replace the appropriate calculated value for the selected employee in the month which the override date relates to."]
["Override End Date - if you want the override to be applied to multiple periods, you need to specify an override end date. If this column is left blank, the override will only be effected for the month in which the override date in column A falls into. If you want to affect the override value in multiple months, enter the month end date of the last month that you want the override to be applied to in this column. If you want the override to be applied until the end of the tax year, enter the tax year end date in this column."]
[]
["Note: If you select more than one code in columns C to G, the override value will be applied to all of the codes that you have selected in these columns."]
[]
["Note: Override values replace all other payroll calculations. If you therefore record a salary increase through an entry on the Override sheet and the annual salary increase happens after that, the override value will still override the annual salary increase entry. You would therefore need to end the first override entry before the month of the annual salary increase entry to prevent it from overriding the salary increase entry."]
[]
["Pay Slips"]
[]
["The employee pay slip which is included on the PaySlip sheet is automatically populated based on the user input & calculations on the Emp and Payroll sheets. The only user input which is required on the PaySlip sheet is to select the pay slip reference number in cell G3. The pay slip numbers are assigned in column A on the Payroll sheet and all pay slip numbers which are included on this sheet will be available for selection."]
[]
["The business details at the top of the sheet are populated based on the user input on the Setup sheet and the information in the Employee Details section is populated based on the user input on the Emp sheet. The earnings & salary deductions values are populated based on the calculations on the Payroll sheet and displayed on a monthly and year-to-date basis."]
[]
["Note: Only earnings & deductions codes which have year-to-date totals for the selected employee will be included on the pay slip. If an earning or deduction is therefore not applicable to the particular employee, such an earning or deduction will not be included on the pay slip."]
[]
["The net pay is calculated as the difference between the total earnings and total salary deductions. The month-to-date (MTD) and year-to-date (YTD) company contribution totals are included based on the amounts calculated on the Payroll sheet."]
[]
["If medical tax credits are applicable to the particular employee, the total medical tax credits which have been included in the income tax deduction calculations will be displayed. If no medical tax credits have been applied, the item will not be included on the pay slip."]
[]
["Note: The PaySlip sheet includes only one individual pay slip. You therefore need to select individual pay slip numbers at the top of the sheet in order to view or print a pay slip."]
[]
["Monthly Payroll Summary"]
[]
["A monthly summary of payroll calculation totals is included on the Summary sheet. All the calculations on this sheet are automated and based on the detailed calculations on the Payroll sheet. No user input is therefore required on the Summary sheet."]
[]
["Note: The reporting periods on the Summary sheet are based on the tax period and tax year settings which are specified on the Setup sheet. When you roll the template forward for a new tax year, you therefore need to change the tax year setting on the Setup sheet in order to view the calculations for the new tax year."]
[]
["The sheet can also be filtered based on an employee number in order to reflect totals for a specific employee or by department in order to reflect totals per department. These filters can be applied by selecting the appropriate employee code or department code from cells D2 or E2. The content of the filter selection cell can then simply be cleared (select and press the Delete key on the keyboard) in order to reflect the total for all employees."]
[]
["The Summary sheet contains an earnings section, a salary deductions section and a company contributions section which each comprise multiple columns. The earnings section contains 5 columns and the salary deductions & company contributions sections 4 columns each. The number of columns are equal to the number of list items included in the lists on the Setup sheet."]
[]
["Note: If you therefore add more list items to the appropriate list than what has been provided for in the default template design, you need to manually insert the required number of additional columns after the end of the appropriate section, copy the formulas above the column headings from one of the existing columns in the section and copy the formulas in the first row below the column heading from one of the existing columns in the section."]
[]
["The purpose of the last three columns on the Summary sheet is to sum salary deductions & company contributions which need to be paid to the same supplier. In order to calculate these totals, the appropriate salary deduction and company contribution needs to be created with the same code which is then entered in the cell with the yellow cell background above the column heading. The formulas in these columns will then add the salary deduction and company contribution with the specified code together in order to calculate the consolidated monthly total."]
[]
["Monthly Employee Data"]
[]
["A monthly analysis of payroll data per employee has been included on the MonthEmp sheet. Aside from selecting the appropriate measurement on which the calculations on this sheet need to be based, the sheet requires no user input. The sheet provides for 50 employees but can be extended to an unlimited number of employees by simply copying the formulas from the last row into the required number of additional rows."]
[]
["Note: The sequence of the employee codes on the MonthEmp sheet is based on the sequence of the employee codes that have been added to the Emp sheet and the monthly periods that are included on the sheet are determined based on the tax period and tax year settings on the Setup sheet."]
[]
["The following measurements are available for selection:"]
["Gross Pay - the total of all the columns in the earnings section."]
["Income Tax - the total income tax deduction."]
["Total Deductions - the total of all salary deductions including income tax."]
["Net Pay - gross pay less total deductions."]
["Total Co-Contributions - the total of all the columns in the company contributions section."]
["Deductions & Co-Contrib - total deductions plus total company contributions."]
["Cost To Company - gross pay plus total company contributions."]
[]
["Note: If no measurement is selected, the \"Net Pay\" measurement is used."]
[]
["Monthly Payroll Data By Department"]
[]
["A monthly analysis of payroll data by department has been included on the MonthDept sheet. Aside from selecting the appropriate measurement on which the calculations on this sheet need to be based, the sheet requires no user input. The sheet provides for 15 departments but can be extended to an unlimited number of departments by simply copying the formulas from the last row into the required number of additional rows."]
[]
["Note: The sequence of the department codes on the MonthDept sheet is based on the sequence of the department codes that have been added to the Setup sheet in the Departments section and the monthly periods that are included on the sheet are determined based on the tax period and tax year settings on the Setup sheet."]
[]
["The following measurements are available for selection:"]
["Gross Pay - the total of all the columns in the earnings section."]
["Income Tax - the total income tax deduction."]
["Total Deductions - the total of all salary deductions including income tax."]
["Net Pay - gross pay less total deductions."]
["Total Co-Contributions - the total of all the columns in the company contributions section."]
["Deductions & Co-Contrib - total deductions plus total company contributions."]
["Cost To Company - gross pay plus total company contributions."]
[]
["Note: If no measurement is selected, the \"Cost to Company\" measurement is used."]
[]
["Roll Forward for Subsequent Tax Periods"]
[]
["This template has been designed to incorporate a single tax year. Once you reach the end of the tax year, you can roll the template forward for the next tax year by saving a new copy of the template, changing the tax year entry on the Setup sheet and removing the user input data relating to the previous year which has been included on the Emp and Override sheets."]
[]
["Note: You also probably need to update some if not all of the tables & lists on the Setup sheet and the salary deduction data on the Emp sheet. If any of these rates or values are not correctly updated, the template calculations may not be accurate!"]
[]
["Help & Customization"]
[]
["If you experience any difficulty while using this template and you are not able to find the appropriate guidance in these instructions, please e-mail us at support@excel-skills.com for assistance. This template has been designed with flexibility in mind to ensure that it can be used in most business environments. If however you need an Excel based template that is customized specifically for your business requirements, please e-mail our Support function and provide a brief explanation of your requirements."]
[]
["© Copyright"]
[]
["This template remains the intellectual property of www.excel-skills.com and is protected by international copyright laws. Any publication or distribution of this template outside the scope of the permitted use of the template is expressly prohibited. In terms of the permitted use of this template, only the distribution of the template to persons within the same organisation as the registered user or persons outside the organisation who can reasonably be expected to require access to the template as a direct result of the use of the template by the registered user is allowed. Subsequent distribution of the template by parties outside of the organisation is however expressly prohibited and represents an infringement of international copyright laws."]

{"sheet":"Setup","index":3,"n_rows":156,"n_cols":11,"rows_kept":156,"cut":false,"hidden":true,"merged":[[74,1,74,3],[65,1,65,3],[69,1,69,3],[82,1,82,3],[85,1,85,3],[75,1,75,3],[77,1,77,3],[81,1,81,3],[152,0,152,2],[153,0,153,2],[154,0,154,2],[155,0,155,2],[3,2,3,4],[19,0,19,1],[64,1,64,3],[4,2,4,5],[6,2,6,3],[5,2,5,3],[7,2,7,3],[30,0,30,1],[92,1,92,3],[31,0,31,1],[37,0,37,1],[73,1,73,3],[149,0,149,2],[151,0,151,2],[145,0,145,2],[89,1,89,3],[91,1,91,3],[147,0,147,2],[142,0,142,2],[143,0,143,2],[144,0,144,2],[146,0,146,2],[148,0,148,2],[150,0,150,2]]}
[{"$f":"$C$4","v":"Example (Pty) Limited"}]
["Setup"]
["© www.excel-skills.com"]
["Business Name",null,"Example (Pty) Limited"]
["Business Address",null,"Building Name, Street Address, Suburb, City, Code"]
["Business Reg Number",null,"2017 000000 00"]
["Contact Tel Number",null,"+27 21 999 9999"]
["Contact E-mail",null,"hr@example.com"]
[]
["Tax Period End",null,"2020-02-01",null,{"$f":"IF(ISBLANK($C$16),$D$12+1,IF($C$16>=MONTH($F$12),DATE(YEAR($F$12),$C$16,1),DATE(YEAR($F$12)+1,$C$16,1)))","v":45292},{"$f":"IF(ISBLANK($C$15),12,$C$15)","v":12}]
[null,null,null,"Current","Prior","Temp Start"]
["Tax Year",null,2024,{"$f":"IF(ISBLANK($C$12)=TRUE,IF(ISBLANK($C$10)=TRUE,DATE(YEAR(TODAY())+1,2+1,0),DATE(YEAR(TODAY())+1,MONTH($C$10)+1,0)),IF(ISBLANK($C$10)=TRUE,DATE($C$12,2+1,0),DATE($C$12,MONTH($C$10)+1,0)))","v":45351},{"$f":"DATE(YEAR($D$12)-1,MONTH($D$12)+1,0)","v":44985},{"$f":"E12+1","v":44986}]
[]
["Salary Payment Day",null,25]
["Annual Bonus Month",null,12]
["Salary Increase Month",null,1]
[]
["Income Tax Rates - Table A"]
[]
["Income Tax Brackets",null,"Tax Bracket Value","Tax Rate","Equivalent \nValue","Effective \nRate"]
[{"$f":"\"From 0 to \"&FIXED(C21,0,0)","v":"From 0 to 237,100"},null,237100,0.18,{"$f":"C21*D21","v":42678},{"$f":"IF(C21=0,0,E21/C21)","v":0.18}]
[{"$f":"\"From \"&FIXED(OFFSET($C$20,ROW(C22)-ROW(C$20)-1,0,1,1)+1,0,0)&\" to \"&FIXED(C22,0,0)","v":"From 237,101 to 370,500"},null,370500,0.26,{"$f":"((C22-OFFSET($C$20,ROW(C22)-ROW(C$20)-1,0,1,1))*D22)+OFFSET($E$20,ROW(C22)-ROW(C$20)-1,0,1,1)","v":77362},0.20880431848852901]
[{"$f":"\"From \"&FIXED(OFFSET($C$20,ROW(C23)-ROW(C$20)-1,0,1,1)+1,0,0)&\" to \"&FIXED(C23,0,0)","v":"From 370,501 to 512,800"},null,512800,0.31,{"$f":"((C23-OFFSET($C$20,ROW(C23)-ROW(C$20)-1,0,1,1))*D23)+OFFSET($E$20,ROW(C23)-ROW(C$20)-1,0,1,1)","v":121475},0.23688572542901717]
[{"$f":"\"From \"&FIXED(OFFSET($C$20,ROW(C24)-ROW(C$20)-1,0,1,1)+1,0,0)&\" to \"&FIXED(C24,0,0)","v":"From 512,801 to 673,000"},null,673000,0.36,{"$f":"((C24-OFFSET($C$20,ROW(C24)-ROW(C$20)-1,0,1,1))*D24)+OFFSET($E$20,ROW(C24)-ROW(C$20)-1,0,1,1)","v":179147},0.26619167904903418]
["From 673,001 to 857,900",null,857900,0.39,{"$f":"((C25-OFFSET($C$20,ROW(C25)-ROW(C$20)-1,0,1,1))*D25)+OFFSET($E$20,ROW(C25)-ROW(C$20)-1,0,1,1)","v":251258},0.29287562652989857]
["From 857,901 to 1,817,000",null,1817000,0.41,{"$f":"((C26-OFFSET($C$20,ROW(C26)-ROW(C$20)-1,0,1,1))*D26)+OFFSET($E$20,ROW(C26)-ROW(C$20)-1,0,1,1)","v":644489},0.35469950467804073]
[{"$f":"\"From \"&FIXED(OFFSET($C$20,ROW(C27)-ROW(C$20)-1,0,1,1)+1,0,0)&\" and above\"","v":"From 1,817,001 and above"},null,null,0.45]
[]
["Income Tax Rates - Table B"]
[]
["Income Tax Brackets",null,"Tax Bracket Value","Tax Rate","Equivalent \nValue","Effective \nRate"]
[{"$f":"\"From 0 to \"&FIXED(C32,0,0)","v":"From 0 to 200,000"},null,200000,0,{"$f":"C32*D32","v":0},{"$f":"IF(C32=0,0,E32/C32)","v":0}]
[{"$f":"\"From \"&FIXED(OFFSET($C$31,ROW(C33)-ROW(C$31)-1,0,1,1)+1,0,0)&\" to \"&FIXED(C33,0,0)","v":"From 200,001 to 300,000"},null,300000,0,{"$f":"((C33-OFFSET($C$20,ROW(C33)-ROW(C$20)-1,0,1,1))*D33)+OFFSET($E$20,ROW(C33)-ROW(C$20)-1,0,1,1)","v":0},0]
[{"$f":"\"From \"&FIXED(OFFSET($C$31,ROW(C34)-ROW(C$31)-1,0,1,1)+1,0,0)&\" to \"&FIXED(C34,0,0)","v":"From 300,001 to 400,000"},null,400000,0,{"$f":"((C34-OFFSET($C$20,ROW(C34)-ROW(C$20)-1,0,1,1))*D34)+OFFSET($E$20,ROW(C34)-ROW(C$20)-1,0,1,1)","v":0},0]
["From 400,001 to 550,000",null,550000,0,{"$f":"((C35-OFFSET($C$20,ROW(C35)-ROW(C$20)-1,0,1,1))*D35)+OFFSET($E$20,ROW(C35)-ROW(C$20)-1,0,1,1)","v":0},0]
["From 550,001 to 700,000",null,700000,0,{"$f":"((C36-OFFSET($C$20,ROW(C36)-ROW(C$20)-1,0,1,1))*D36)+OFFSET($E$20,ROW(C36)-ROW(C$20)-1,0,1,1)","v":0},0]
["From 700,001 to 1,000,000",null,1000000,0,{"$f":"((C37-OFFSET($C$20,ROW(C37)-ROW(C$20)-1,0,1,1))*D37)+OFFSET($E$20,ROW(C37)-ROW(C$20)-1,0,1,1)","v":0},0]
[{"$f":"\"From \"&FIXED(OFFSET($C$31,ROW(C38)-ROW(C$31)-1,0,1,1)+1,0,0)&\" and above\"","v":"From 1,000,001 and above"},null,null,0]
[]
["Income Tax Rebates"]
["Code","Description","Value","Total"]
["A","Primary Rebate",17235,{"$f":"SUM(C$42:C42)","v":17235}]
["B","Secondary",9444,{"$f":"SUM(C$42:C43)","v":26679}]
["C","Tertiary",3145,{"$f":"SUM(C$42:C44)","v":29824}]
["D","None",0,{"$f":"C45","v":0}]
["End of list"]
[]
["Medical Tax Credits"]
["No","Per Member","Monthly Value"]
[0,0,{"$f":"B50+IF(ISNUMBER(OFFSET(A50,-1,2,1,1)),OFFSET(A50,-1,2,1,1),0)","v":0}]
[1,364,{"$f":"B51+IF(ISNUMBER(OFFSET(A51,-1,2,1,1)),OFFSET(A51,-1,2,1,1),0)","v":364}]
[{"$f":"OFFSET(B52,-1,-1,1,1)+1","v":2},364,{"$f":"B52+IF(ISNUMBER(OFFSET(A52,-1,2,1,1)),OFFSET(A52,-1,2,1,1),0)","v":728}]
[{"$f":"OFFSET(B53,-1,-1,1,1)+1","v":3},246,{"$f":"B53+IF(ISNUMBER(OFFSET(A53,-1,2,1,1)),OFFSET(A53,-1,2,1,1),0)","v":974}]
[4,246,1220]
[5,246,1466]
[6,246,1712]
[7,246,{"$f":"B57+IF(ISNUMBER(OFFSET(A57,-1,2,1,1)),OFFSET(A57,-1,2,1,1),0)","v":1958}]
[8,246,2204]
[9,246,2450]
[10,246,2696]
["End of list"]
[]
["Earnings List"]
["Code","Description",null,{"$f":"COUNTA(OFFSET(A64,1,0,ROW($A$70)-ROW($A$64)-1,1))","v":5},"Short Name","Taxable %","Basis"]
["A","Basic Salary",null,null,"Basic",null,"Monthly"]
["B","Leave",null,null,"Leave",null,"Annual"]
["C","Annual Bonus",null,null,"Bonus",null,"Annual"]
["D","Loan / Advance",null,null,"Loan",0,"Monthly"]
["E","Not Used",null,null,"Not Used",0,"Monthly"]
["End of list"]
[]
["Salary Deductions List"]
["Code","Description",null,{"$f":"COUNTA(OFFSET(A73,1,0,ROW($A$78)-ROW($A$73)-1,1))","v":4},"Rate","Basis","Earn Inclusion","Earn Exclusion","Earnings Max","Tax %","Annual Tax Limit"]
["UIF","Unemployment Insurance",null,null,0.01,"Gross","Taxable","D",212544,0]
["PENS","Pension Fund",null,null,0,"Gross","Taxable","D",null,1,350000]
["LOAN","Loan / Advance",null,null,0,"Fixed","Full Value",null,null,0]
["DED4","Not Used",null,null,0,"Fixed","Full Value"]
["End of list"]
[]
["Company Contributions List"]
["Code","Description",null,{"$f":"COUNTA(OFFSET(A81,1,0,ROW($A$86)-ROW($A$81)-1,1))","v":4},"Rate","Basis","Earn Inclusion","Earn Exclusion","Earnings Max"]
["UIF","Unemployment Insurance",null,null,1,"UIF","Taxable"]
["SDL","Skills Development",null,null,0.01,"Gross","Taxable","D"]
["CO3","Not Used",null,null,0,"Gross","Taxable"]
["CO4","Not Used",null,null,0,"Gross","Taxable"]
["End of list"]
[]
["Departments"]
["Code","Description",null,{"$f":"COUNTA(OFFSET(A89,1,0,ROW($A$93)-ROW($A$89)-1,1))","v":3},"Cost Centre"]
["M","Management",null,null,"IS-330"]
["S","Sales",null,null,"IS-340"]
["A","Admin",null,null,"IS-350"]
["End of list"]
[]
[null,"Month Names"]
[null,{"$f":"DATE(YEAR(TODAY())+1,ROW(C96)-ROW($C$95),1)","v":"2024-01-01"}]
[null,"2024-02-01"]
[null,"2024-03-01"]
[null,"2024-04-01"]
[null,"2024-05-01"]
[null,"2024-06-01"]
[null,"2024-07-01"]
[null,"2024-08-01"]
[null,"2024-09-01"]
[null,"2024-10-01"]
[null,"2024-11-01"]
[null,"2024-12-01"]
[null,"End of list"]
[]
[null,"Measurement List"]
[null,"Gross Pay",{"$f":"COLUMN(Payroll!$L$2)","v":12}]
[null,"Income Tax",{"$f":"COLUMN(Payroll!$M$2)","v":13}]
[null,"Total Deductions",{"$f":"COLUMN(Payroll!$R$2)","v":18}]
[null,"Net Pay",{"$f":"COLUMN(Payroll!$S$2)","v":19}]
[null,"Total Co-Contributions",{"$f":"COLUMN(Payroll!$X$2)","v":24}]
[null,"Deductions & Co-Contrib",{"$f":"COLUMN(Payroll!$Z$2)","v":26}]
[null,"Cost to Company",{"$f":"COLUMN(Payroll!$Y$2)","v":25}]
[]
[null,"Payslip Fields"]
[1,{"$f":"IF(ROW($C120)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C120)-ROW($C$120),1,1),\"-\")","v":"A"},{"$f":"IF(B120=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C120)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":1830000},{"$f":"Payroll!$M$5","v":"TAX"},{"$f":"IF(D120=\"-\",0,SUMIFS(PayTaxDeduct,PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":616187}]
[2,{"$f":"IF(ROW($C121)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C121)-ROW($C$120),1,1),\"-\")","v":"B"},{"$f":"IF(B121=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C121)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0},{"$f":"IF(ROW($E121)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW($C122)-ROW($C$122),1,1),\"-\")","v":"UIF"},{"$f":"IF(D121=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C122)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":2125.44}]
[3,{"$f":"IF(ROW($C122)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C122)-ROW($C$120),1,1),\"-\")","v":"C"},{"$f":"IF(B122=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C122)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":150000},{"$f":"IF(ROW($E122)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW($C123)-ROW($C$122),1,1),\"-\")","v":"PENS"},{"$f":"IF(D122=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C123)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":148500}]
[4,{"$f":"IF(ROW($C123)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C123)-ROW($C$120),1,1),\"-\")","v":"D"},{"$f":"IF(B123=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C123)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0},{"$f":"IF(ROW($E123)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW($C124)-ROW($C$122),1,1),\"-\")","v":"LOAN"},{"$f":"IF(D123=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C124)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0}]
[5,{"$f":"IF(ROW($C124)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C124)-ROW($C$120),1,1),\"-\")","v":"E"},{"$f":"IF(B124=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C124)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0},{"$f":"IF(ROW($E124)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW($C125)-ROW($C$122),1,1),\"-\")","v":"DED4"},{"$f":"IF(D124=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C125)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0}]
[6,{"$f":"IF(ROW($C125)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C125)-ROW($C$120),1,1),\"-\")","v":"-"},{"$f":"IF(B125=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C125)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0},{"$f":"IF(ROW($E125)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW($C126)-ROW($C$122),1,1),\"-\")","v":"-"},{"$f":"IF(D125=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C126)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0}]
[7,{"$f":"IF(ROW($C126)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C126)-ROW($C$120),1,1),\"-\")","v":"-"},{"$f":"IF(B126=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C126)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0},{"$f":"IF(ROW($E126)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW($C127)-ROW($C$122),1,1),\"-\")","v":"-"},{"$f":"IF(D126=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C127)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0}]
[8,{"$f":"IF(ROW($C127)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C127)-ROW($C$120),1,1),\"-\")","v":"-"},{"$f":"IF(B127=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C127)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0},{"$f":"IF(ROW($E127)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW($C128)-ROW($C$122),1,1),\"-\")","v":"-"},{"$f":"IF(D127=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C128)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0}]
[9,{"$f":"IF(ROW($C128)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C128)-ROW($C$120),1,1),\"-\")","v":"-"},{"$f":"IF(B128=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C128)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0},{"$f":"IF(ROW($E128)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW($C129)-ROW($C$122),1,1),\"-\")","v":"-"},{"$f":"IF(D128=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C129)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0}]
[10,{"$f":"IF(ROW($C129)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C129)-ROW($C$120),1,1),\"-\")","v":"-"},{"$f":"IF(B129=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C129)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0},{"$f":"IF(ROW($E129)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW($C130)-ROW($C$122),1,1),\"-\")","v":"-"},{"$f":"IF(D129=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C130)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0}]
[11,{"$f":"IF(ROW($C130)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C130)-ROW($C$120),1,1),\"-\")","v":"-"},{"$f":"IF(B130=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C130)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0},{"$f":"IF(ROW($E130)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW($C131)-ROW($C$122),1,1),\"-\")","v":"-"},{"$f":"IF(D130=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C131)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0}]
[12,{"$f":"IF(ROW($C131)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C131)-ROW($C$120),1,1),\"-\")","v":"-"},{"$f":"IF(B131=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C131)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0},{"$f":"IF(ROW($E131)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW($C132)-ROW($C$122),1,1),\"-\")","v":"-"},{"$f":"IF(D131=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C132)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0}]
[13,{"$f":"IF(ROW($C132)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C132)-ROW($C$120),1,1),\"-\")","v":"-"},{"$f":"IF(B132=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C132)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0},{"$f":"IF(ROW($E132)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW($C133)-ROW($C$122),1,1),\"-\")","v":"-"},{"$f":"IF(D132=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C133)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0}]
[14,{"$f":"IF(ROW($C133)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C133)-ROW($C$120),1,1),\"-\")","v":"-"},{"$f":"IF(B133=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C133)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0},{"$f":"IF(ROW($E133)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW($C134)-ROW($C$122),1,1),\"-\")","v":"-"},{"$f":"IF(D133=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C134)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0}]
[15,{"$f":"IF(ROW($C134)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C134)-ROW($C$120),1,1),\"-\")","v":"-"},{"$f":"IF(B134=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C134)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0},{"$f":"IF(ROW($E134)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW($C135)-ROW($C$122),1,1),\"-\")","v":"-"},{"$f":"IF(D134=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C135)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0}]
[16,{"$f":"IF(ROW($C135)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C135)-ROW($C$120),1,1),\"-\")","v":"-"},{"$f":"IF(B135=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C135)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0},{"$f":"IF(ROW($E135)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW($C136)-ROW($C$122),1,1),\"-\")","v":"-"},{"$f":"IF(D135=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C136)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0}]
[17,{"$f":"IF(ROW($C136)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C136)-ROW($C$120),1,1),\"-\")","v":"-"},{"$f":"IF(B136=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C136)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0},{"$f":"IF(ROW($E136)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW($C137)-ROW($C$122),1,1),\"-\")","v":"-"},{"$f":"IF(D136=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C137)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0}]
[18,{"$f":"IF(ROW($C137)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C137)-ROW($C$120),1,1),\"-\")","v":"-"},{"$f":"IF(B137=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C137)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0},{"$f":"IF(ROW($E137)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW($C138)-ROW($C$122),1,1),\"-\")","v":"-"},{"$f":"IF(D137=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C138)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0}]
[19,{"$f":"IF(ROW($C138)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C138)-ROW($C$120),1,1),\"-\")","v":"-"},{"$f":"IF(B138=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C138)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0},{"$f":"IF(ROW($E138)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW($C139)-ROW($C$122),1,1),\"-\")","v":"-"},{"$f":"IF(D138=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C139)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0}]
[20,{"$f":"IF(ROW($C139)-ROW($C$120)+1<=EarnListCount,OFFSET(Payroll!$G$2,0,ROW($C139)-ROW($C$120),1,1),\"-\")","v":"-"},{"$f":"IF(B139=\"-\",0,SUMIFS(OFFSET(Payroll!$G$6,1,ROW($C139)-ROW($C$120),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0},{"$f":"IF(ROW($E139)-ROW($E$121)+1<=DedListCount,OFFSET(Payroll!$N$6,-1,ROW(#REF!)-ROW($C$122),1,1),\"-\")","v":"-"},{"$f":"IF(D139=\"-\",0,SUMIFS(OFFSET(Payroll!$N$6,1,ROW($C140)-ROW($C$122),PayCount,1),PayEmp,PaySlip!$C$11,PayDate,\"<=\"&PaySlip!$G$4))","v":0}]
[]
["Column & Row Matrix"]
["Sheet & Section",null,null,"Start Row / Col","Sheet Count","List Count","Status"]
["Emp Sheet - Deductions Section",null,null,{"$f":"SUBSTITUTE(ADDRESS(1,COLUMN(Emp!$R$1),4),\"1\",\"\")","v":"R"},{"$f":"COUNTA(OFFSET(Emp!$R$4,0,0,1,COLUMN(Emp!$V$1)-COLUMN(Emp!$R$1)))","v":4},{"$f":"DedListCount","v":4},{"$f":"IF($F143>$E143,9,0)","v":0}]
["Payroll Sheet - Earnings Section",null,null,{"$f":"SUBSTITUTE(ADDRESS(1,COLUMN(Payroll!$G$2),4),\"1\",\"\")","v":"G"},{"$f":"COUNTA(OFFSET(Payroll!$G$6,0,0,1,COLUMN(Payroll!$L$6)-COLUMN(Payroll!$G$6)))","v":5},{"$f":"EarnListCount","v":5},0]
["Payroll Sheet - Deduct Section",null,null,{"$f":"SUBSTITUTE(ADDRESS(1,COLUMN(Payroll!$N$2),4),\"1\",\"\")","v":"N"},{"$f":"COUNTA(OFFSET(Payroll!$N$6,0,0,1,COLUMN(Payroll!$R$6)-COLUMN(Payroll!$N$6)))","v":4},{"$f":"DedListCount","v":4},0]
["Payroll Sheet - Annual Tax Deduct Section",null,null,{"$f":"SUBSTITUTE(ADDRESS(1,COLUMN(Payroll!$AN$2),4),\"1\",\"\")","v":"AN"},{"$f":"COUNTA(OFFSET(Payroll!$AN$6,0,0,1,COLUMN(Payroll!$AR$6)-COLUMN(Payroll!$AN$6)))","v":4},{"$f":"DedListCount","v":4},0]
["Payroll Sheet - Monthly EQV Deduct Section",null,null,{"$f":"SUBSTITUTE(ADDRESS(1,COLUMN(Payroll!$AT$2),4),\"1\",\"\")","v":"AT"},{"$f":"COUNTA(OFFSET(Payroll!$AT$6,0,0,1,COLUMN(Payroll!$AX$6)-COLUMN(Payroll!$AT$6)))","v":4},{"$f":"DedListCount","v":4},0]
["Payroll Sheet - Co-Contrib Section",null,null,{"$f":"SUBSTITUTE(ADDRESS(1,COLUMN(Payroll!$T$2),4),\"1\",\"\")","v":"T"},{"$f":"COUNTA(OFFSET(Payroll!$T$6,0,0,1,COLUMN(Payroll!$X$6)-COLUMN(Payroll!$T$6)))","v":4},{"$f":"CompListCount","v":4},0]
["Payroll Sheet - Rows",null,null,{"$f":"ROW(Payroll!$A$6)+1","v":7},{"$f":"PayCount","v":240},{"$f":"+EmpCount*12","v":180},0]
["Payslip - Earnings Section",null,null,{"$f":"ROW(PaySlip!$B$16)+1","v":17},{"$f":"COUNTA(OFFSET(PaySlip!$B$16,1,0,ROW(PaySlip!$B$27)-ROW(PaySlip!$B$16)-1,1))","v":10},{"$f":"COUNTIFS(SlipEarnValue,\">0\")","v":2},0]
["Payslip - Deductions Section",null,null,{"$f":"ROW(PaySlip!$B$28)+1","v":29},{"$f":"COUNTA(OFFSET(PaySlip!$B$28,1,0,ROW(PaySlip!$B$39)-ROW(PaySlip!$B$28)-1,1))","v":10},{"$f":"COUNTIFS(SlipDeductValue,\">0\")","v":3},0]
["Summary - Earnings Section",null,null,{"$f":"SUBSTITUTE(ADDRESS(1,COLUMN(Summary!$B$5),4),\"1\",\"\")","v":"B"},{"$f":"COUNTA(OFFSET(Summary!$B$5,0,0,1,COLUMN(Summary!$G$5)-COLUMN(Summary!$B$5)))","v":5},{"$f":"EarnListCount","v":5},0]
["Summary - Deduct Section",null,null,{"$f":"SUBSTITUTE(ADDRESS(1,COLUMN(Summary!$I$5),4),\"1\",\"\")","v":"I"},{"$f":"COUNTA(OFFSET(Summary!$I$5,0,0,1,COLUMN(Summary!$M$5)-COLUMN(Summary!$I$5)))","v":4},{"$f":"DedListCount","v":4},0]
["Summary - Co-Contrib Section",null,null,{"$f":"SUBSTITUTE(ADDRESS(1,COLUMN(Summary!$O$5),4),\"1\",\"\")","v":"O"},{"$f":"COUNTA(OFFSET(Summary!$O$5,0,0,1,COLUMN(Summary!$S$5)-COLUMN(Summary!$O$5)))","v":4},{"$f":"CompListCount","v":4},0]
["MonthEmp - Employees",null,null,{"$f":"ROW(MonthEmp!$A$5)+1","v":6},{"$f":"COUNTA(MonthlyEmp[[#Data],[Employee Number]])","v":50},{"$f":"EmpCount","v":15},0]
["MonthDept - Departments",null,null,{"$f":"ROW(MonthDept!$A$5)+1","v":6},{"$f":"COUNTA(MonthlyDept[[#Data],[Department Code]])","v":15},{"$f":"DeptCount","v":3},0]

{"sheet":"Emp","index":4,"n_rows":19,"n_cols":22,"rows_kept":19,"cut":false,"hidden":true,"merged":[]}
[{"$f":"Setup!$C$4","v":"Example (Pty) Limited"},null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"IF($M$1=\"Error!\",\"Check number of deduction columns\",\"\")","v":""}]
["Employee Setup"]
["© www.excel-skills.com",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"IF(COLUMN(R1)-COLUMN($R$1)+1<=DedListCount,OFFSET(Setup!$A$73,COLUMN(R1)-COLUMN($R$1)+1,0,1,1),\"Not Used\")","v":"UIF"},{"$f":"IF(COLUMN(S1)-COLUMN($R$1)+1<=DedListCount,OFFSET(Setup!$A$73,COLUMN(S1)-COLUMN($R$1)+1,0,1,1),\"Not Used\")","v":"PENS"},{"$f":"IF(COLUMN(T1)-COLUMN($R$1)+1<=DedListCount,OFFSET(Setup!$A$73,COLUMN(T1)-COLUMN($R$1)+1,0,1,1),\"Not Used\")","v":"LOAN"},{"$f":"IF(COLUMN(U1)-COLUMN($R$1)+1<=DedListCount,OFFSET(Setup!$A$73,COLUMN(U1)-COLUMN($R$1)+1,0,1,1),\"Not Used\")","v":"DED4"}]
["Employee Number","Employee Name","Dept","Date Employed","1st Payment Date","Date Terminated","Pay Period Override","Job Title","ID Number","Income Tax Number","Residential Address","IT Rebate Code","Income Tax Rate","Medical Aid Members","Basic Monthly Salary","Annual Bonus Amount","One Increase Amount","Deduction 1 Rate","Deduction 2 Rate","Deduction 3 Rate","Deduction 4 Rate","Period Count"]
["EXS001","Taylor AE","M",40603,40627,null,null,"CEO","111111 1111 001","000 000 001","Building Name, Street Address, Suburb, City, Code","A","A",5,150000,150000,165000,null,7.4999999999999997E-2,null,null,{"$f":"COUNTIFS(PayEmp,$A5)","v":12}]
["EXS002","Smith F","M",40603,40627,null,null,"CFO","111111 1111 002","000 000 002","Building Name, Street Address, Suburb, City, Code","A","A",2,120000,120000,132000,null,null,null,null,12]
["EXS003","Wilson PG","S",40603,40627,null,null,"Sales Representative","111111 1111 003","000 000 003","Building Name, Street Address, Suburb, City, Code","A","A",1,15000,15000,16500,null,null,null,null,12]
["EXS004","Osborne S","S",40969,40993,null,null,"Sales Representative","111111 1111 004","000 000 004","Building Name, Street Address, Suburb, City, Code","A","A",1,15000,15000,16500,null,null,500,null,12]
["EXS005","Miller R","S",41122,41146,45291,null,"Sales Representative","111111 1111 005","000 000 005","Building Name, Street Address, Suburb, City, Code","A","A",1,10000,10000,null,null,null,null,null,12]
["EXS006","Andrews MS","S",41122,41146,null,null,"Sales Representative","111111 1111 006","000 000 006","Building Name, Street Address, Suburb, City, Code","A","A",1,10000,10000,11000,null,null,null,null,12]
["EXS007","Phillips KE","A",41334,41358,45077,null,"Accountant","111111 1111 007","000 000 007","Building Name, Street Address, Suburb, City, Code","A","A",0,25000,25000,null,null,null,null,null,12]
["EXS008","Matthews B","A",41334,41358,null,null,"Admin Assistant","111111 1111 008","000 000 008","Building Name, Street Address, Suburb, City, Code","A","A",0,9000,9000,10000,null,null,null,null,12]
["EXS009","Brown JT","A",41730,41754,null,null,"Admin Assistant","111111 1111 009","000 000 009","Building Name, Street Address, Suburb, City, Code","A","A",0,9000,9000,10000,null,null,null,null,12]
["EXS010","Lewis I","A",42248,42272,null,null,"Admin Assistant","111111 1111 010","000 000 010","Building Name, Street Address, Suburb, City, Code","A","A",0,9000,9000,10000,null,null,null,null,12]
["EXS011","Newport GD","A",42430,42454,null,null,"Admin Assistant","111111 1111 011","000 000 011","Building Name, Street Address, Suburb, City, Code","A","A",0,5000,5000,6000,null,null,null,null,12]
["EXS012","Williams VS","A",42736,42760,null,null,"Admin Assistant","111111 1111 012","000 000 012","Building Name, Street Address, Suburb, City, Code","A","A",0,5000,5000,6000,null,null,null,null,12]
["EXS013","East WD","A",42993,43003,null,null,"Admin Assistant","111111 1111 013","000 000 013","Building Name, Street Address, Suburb, City, Code","A","A",0,5000,5000,6000,null,null,null,null,12]
["EXS014","Ross Q","A",45078,45102,null,null,"Accountant","111111 1111 014","000 000 014","Building Name, Street Address, Suburb, City, Code","A","A",0,29150,0,31000,null,null,null,null,12]
["EXS015","Graham L","S",45292,45316,null,null,"Sales Representative","111111 1111 015","000 000 015","Building Name, Street Address, Suburb, City, Code","A","A",1,10000,0,10500,null,null,null,null,12]

{"sheet":"Payroll","index":5,"n_rows":246,"n_cols":57,"rows_kept":246,"cut":false,"hidden":true,"merged":[]}
[{"$f":"Setup!$C$4","v":"Example (Pty) Limited"},null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"IF(COLUMN(N$1)-COLUMN($N$1)+1<=DedListCount,IF(OFFSET(Setup!$G$73,COLUMN(N$1)-COLUMN($N$1)+1,0,1,1)=0,\"-\",OFFSET(Setup!$G$73,COLUMN(N$1)-COLUMN($N$1)+1,0,1,1)),\"Not Used\")","v":"Taxable"},{"$f":"IF(COLUMN(O$1)-COLUMN($N$1)+1<=DedListCount,IF(OFFSET(Setup!$G$73,COLUMN(O$1)-COLUMN($N$1)+1,0,1,1)=0,\"-\",OFFSET(Setup!$G$73,COLUMN(O$1)-COLUMN($N$1)+1,0,1,1)),\"Not Used\")","v":"Taxable"},{"$f":"IF(COLUMN(P$1)-COLUMN($N$1)+1<=DedListCount,IF(OFFSET(Setup!$G$73,COLUMN(P$1)-COLUMN($N$1)+1,0,1,1)=0,\"-\",OFFSET(Setup!$G$73,COLUMN(P$1)-COLUMN($N$1)+1,0,1,1)),\"Not Used\")","v":"Full Value"},{"$f":"IF(COLUMN(Q$1)-COLUMN($N$1)+1<=DedListCount,IF(OFFSET(Setup!$G$73,COLUMN(Q$1)-COLUMN($N$1)+1,0,1,1)=0,\"-\",OFFSET(Setup!$G$73,COLUMN(Q$1)-COLUMN($N$1)+1,0,1,1)),\"Not Used\")","v":"Full Value"},null,null,{"$f":"IF(COLUMN(T$1)-COLUMN($T$1)+1<=CompListCount,IF(OFFSET(Setup!$G$81,COLUMN(T$1)-COLUMN($T$1)+1,0,1,1)=0,\"-\",OFFSET(Setup!$G$81,COLUMN(T$1)-COLUMN($T$1)+1,0,1,1)),\"Not Used\")","v":"Taxable"},{"$f":"IF(COLUMN(U$1)-COLUMN($T$1)+1<=CompListCount,IF(OFFSET(Setup!$G$81,COLUMN(U$1)-COLUMN($T$1)+1,0,1,1)=0,\"-\",OFFSET(Setup!$G$81,COLUMN(U$1)-COLUMN($T$1)+1,0,1,1)),\"Not Used\")","v":"Taxable"},{"$f":"IF(COLUMN(V$1)-COLUMN($T$1)+1<=CompListCount,IF(OFFSET(Setup!$G$81,COLUMN(V$1)-COLUMN($T$1)+1,0,1,1)=0,\"-\",OFFSET(Setup!$G$81,COLUMN(V$1)-COLUMN($T$1)+1,0,1,1)),\"Not Used\")","v":"Taxable"},{"$f":"IF(COLUMN(W$1)-COLUMN($T$1)+1<=CompListCount,IF(OFFSET(Setup!$G$81,COLUMN(W$1)-COLUMN($T$1)+1,0,1,1)=0,\"-\",OFFSET(Setup!$G$81,COLUMN(W$1)-COLUMN($T$1)+1,0,1,1)),\"Not Used\")","v":"Taxable"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"IF(COLUMN(AN$2)-COLUMN($AN$2)+1<=DedListCount,IF(OFFSET(Setup!$F$73,COLUMN(AN$2)-COLUMN($AN$2)+1,0,1,1)=0,\"-\",OFFSET(Setup!$F$73,COLUMN(AN$2)-COLUMN($AN$2)+1,0,1,1)),\"Not Used\")","v":"Gross"},{"$f":"IF(COLUMN(AO$2)-COLUMN($AN$2)+1<=DedListCount,IF(OFFSET(Setup!$F$73,COLUMN(AO$2)-COLUMN($AN$2)+1,0,1,1)=0,\"-\",OFFSET(Setup!$F$73,COLUMN(AO$2)-COLUMN($AN$2)+1,0,1,1)),\"Not Used\")","v":"Gross"},{"$f":"IF(COLUMN(AP$2)-COLUMN($AN$2)+1<=DedListCount,IF(OFFSET(Setup!$F$73,COLUMN(AP$2)-COLUMN($AN$2)+1,0,1,1)=0,\"-\",OFFSET(Setup!$F$73,COLUMN(AP$2)-COLUMN($AN$2)+1,0,1,1)),\"Not Used\")","v":"Fixed"},{"$f":"IF(COLUMN(AQ$2)-COLUMN($AN$2)+1<=DedListCount,IF(OFFSET(Setup!$F$73,COLUMN(AQ$2)-COLUMN($AN$2)+1,0,1,1)=0,\"-\",OFFSET(Setup!$F$73,COLUMN(AQ$2)-COLUMN($AN$2)+1,0,1,1)),\"Not Used\")","v":"Fixed"},null,null,{"$f":"IF(COLUMN(AT$2)-COLUMN($AT$2)+1<=DedListCount,IF(OFFSET(Setup!$F$73,COLUMN(AT$2)-COLUMN($AT$2)+1,0,1,1)=0,\"-\",OFFSET(Setup!$F$73,COLUMN(AT$2)-COLUMN($AT$2)+1,0,1,1)),\"Not Used\")","v":"Gross"},{"$f":"IF(COLUMN(AU$2)-COLUMN($AT$2)+1<=DedListCount,IF(OFFSET(Setup!$F$73,COLUMN(AU$2)-COLUMN($AT$2)+1,0,1,1)=0,\"-\",OFFSET(Setup!$F$73,COLUMN(AU$2)-COLUMN($AT$2)+1,0,1,1)),\"Not Used\")","v":"Gross"},{"$f":"IF(COLUMN(AV$2)-COLUMN($AT$2)+1<=DedListCount,IF(OFFSET(Setup!$F$73,COLUMN(AV$2)-COLUMN($AT$2)+1,0,1,1)=0,\"-\",OFFSET(Setup!$F$73,COLUMN(AV$2)-COLUMN($AT$2)+1,0,1,1)),\"Not Used\")","v":"Fixed"},{"$f":"IF(COLUMN(AW$2)-COLUMN($AT$2)+1<=DedListCount,IF(OFFSET(Setup!$F$73,COLUMN(AW$2)-COLUMN($AT$2)+1,0,1,1)=0,\"-\",OFFSET(Setup!$F$73,COLUMN(AW$2)-COLUMN($AT$2)+1,0,1,1)),\"Not Used\")","v":"Fixed"}]
["Salary Payments",null,null,null,null,null,{"$f":"IF(COLUMN(G$2)-COLUMN($G$2)+1<=EarnListCount,OFFSET(Setup!$A$64,COLUMN(G$2)-COLUMN($G$2)+1,0,1,1),\"Not Used\")","v":"A"},{"$f":"IF(COLUMN(H$2)-COLUMN($G$2)+1<=EarnListCount,OFFSET(Setup!$A$64,COLUMN(H$2)-COLUMN($G$2)+1,0,1,1),\"Not Used\")","v":"B"},{"$f":"IF(COLUMN(I$2)-COLUMN($G$2)+1<=EarnListCount,OFFSET(Setup!$A$64,COLUMN(I$2)-COLUMN($G$2)+1,0,1,1),\"Not Used\")","v":"C"},{"$f":"IF(COLUMN(J$2)-COLUMN($G$2)+1<=EarnListCount,OFFSET(Setup!$A$64,COLUMN(J$2)-COLUMN($G$2)+1,0,1,1),\"Not Used\")","v":"D"},{"$f":"IF(COLUMN(K$2)-COLUMN($G$2)+1<=EarnListCount,OFFSET(Setup!$A$64,COLUMN(K$2)-COLUMN($G$2)+1,0,1,1),\"Not Used\")","v":"E"},null,null,{"$f":"IF(COLUMN(N$1)-COLUMN($N$1)+1<=DedListCount,IF(OFFSET(Setup!$F$73,COLUMN(N$1)-COLUMN($N$1)+1,0,1,1)=0,\"-\",OFFSET(Setup!$F$73,COLUMN(N$1)-COLUMN($N$1)+1,0,1,1)),\"Not Used\")","v":"Gross"},{"$f":"IF(COLUMN(O$1)-COLUMN($N$1)+1<=DedListCount,IF(OFFSET(Setup!$F$73,COLUMN(O$1)-COLUMN($N$1)+1,0,1,1)=0,\"-\",OFFSET(Setup!$F$73,COLUMN(O$1)-COLUMN($N$1)+1,0,1,1)),\"Not Used\")","v":"Gross"},{"$f":"IF(COLUMN(P$1)-COLUMN($N$1)+1<=DedListCount,IF(OFFSET(Setup!$F$73,COLUMN(P$1)-COLUMN($N$1)+1,0,1,1)=0,\"-\",OFFSET(Setup!$F$73,COLUMN(P$1)-COLUMN($N$1)+1,0,1,1)),\"Not Used\")","v":"Fixed"},{"$f":"IF(COLUMN(Q$1)-COLUMN($N$1)+1<=DedListCount,IF(OFFSET(Setup!$F$73,COLUMN(Q$1)-COLUMN($N$1)+1,0,1,1)=0,\"-\",OFFSET(Setup!$F$73,COLUMN(Q$1)-COLUMN($N$1)+1,0,1,1)),\"Not Used\")","v":"Fixed"},null,null,{"$f":"IF(COLUMN(T$2)-COLUMN($T$2)+1<=CompListCount,IF(OFFSET(Setup!$F$81,COLUMN(T$2)-COLUMN($T$2)+1,0,1,1)=0,\"-\",OFFSET(Setup!$F$81,COLUMN(T$2)-COLUMN($T$2)+1,0,1,1)),\"Not Used\")","v":"UIF"},{"$f":"IF(COLUMN(U$2)-COLUMN($T$2)+1<=CompListCount,IF(OFFSET(Setup!$F$81,COLUMN(U$2)-COLUMN($T$2)+1,0,1,1)=0,\"-\",OFFSET(Setup!$F$81,COLUMN(U$2)-COLUMN($T$2)+1,0,1,1)),\"Not Used\")","v":"Gross"},{"$f":"IF(COLUMN(V$2)-COLUMN($T$2)+1<=CompListCount,IF(OFFSET(Setup!$F$81,COLUMN(V$2)-COLUMN($T$2)+1,0,1,1)=0,\"-\",OFFSET(Setup!$F$81,COLUMN(V$2)-COLUMN($T$2)+1,0,1,1)),\"Not Used\")","v":"Gross"},{"$f":"IF(COLUMN(W$2)-COLUMN($T$2)+1<=CompListCount,IF(OFFSET(Setup!$F$81,COLUMN(W$2)-COLUMN($T$2)+1,0,1,1)=0,\"-\",OFFSET(Setup!$F$81,COLUMN(W$2)-COLUMN($T$2)+1,0,1,1)),\"Not Used\")","v":"Gross"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"IF(COLUMN(AN$2)-COLUMN($AN$2)+1<=DedListCount,OFFSET(Setup!$H$73,COLUMN(AN$2)-COLUMN($AN$2)+1,0,1,1),\"\")","v":"D"},{"$f":"IF(COLUMN(AO$2)-COLUMN($AN$2)+1<=DedListCount,OFFSET(Setup!$H$73,COLUMN(AO$2)-COLUMN($AN$2)+1,0,1,1),\"\")","v":"D"},{"$f":"IF(COLUMN(AP$2)-COLUMN($AN$2)+1<=DedListCount,OFFSET(Setup!$H$73,COLUMN(AP$2)-COLUMN($AN$2)+1,0,1,1),\"\")","v":0},{"$f":"IF(COLUMN(AQ$2)-COLUMN($AN$2)+1<=DedListCount,OFFSET(Setup!$H$73,COLUMN(AQ$2)-COLUMN($AN$2)+1,0,1,1),\"\")","v":0},null,null,{"$f":"IF(COLUMN(AT$2)-COLUMN($AT$2)+1<=DedListCount,OFFSET(Setup!$H$73,COLUMN(AT$2)-COLUMN($AT$2)+1,0,1,1),\"\")","v":"D"},{"$f":"IF(COLUMN(AU$2)-COLUMN($AT$2)+1<=DedListCount,OFFSET(Setup!$H$73,COLUMN(AU$2)-COLUMN($AT$2)+1,0,1,1),\"\")","v":"D"},{"$f":"IF(COLUMN(AV$2)-COLUMN($AT$2)+1<=DedListCount,OFFSET(Setup!$H$73,COLUMN(AV$2)-COLUMN($AT$2)+1,0,1,1),\"\")","v":0},{"$f":"IF(COLUMN(AW$2)-COLUMN($AT$2)+1<=DedListCount,OFFSET(Setup!$H$73,COLUMN(AW$2)-COLUMN($AT$2)+1,0,1,1),\"\")","v":0}]
["© www.excel-skills.com",null,null,null,null,null,{"$f":"IF(COLUMN(G$2)-COLUMN($G$2)+1<=EarnListCount,IF(COUNTA(OFFSET(Setup!$F$64,COLUMN(G$2)-COLUMN($G$2)+1,0,1,1))=0,1,OFFSET(Setup!$F$64,COLUMN(G$2)-COLUMN($G$2)+1,0,1,1)),1)","v":1},{"$f":"IF(COLUMN(H$2)-COLUMN($G$2)+1<=EarnListCount,IF(COUNTA(OFFSET(Setup!$F$64,COLUMN(H$2)-COLUMN($G$2)+1,0,1,1))=0,1,OFFSET(Setup!$F$64,COLUMN(H$2)-COLUMN($G$2)+1,0,1,1)),1)","v":1},{"$f":"IF(COLUMN(I$2)-COLUMN($G$2)+1<=EarnListCount,IF(COUNTA(OFFSET(Setup!$F$64,COLUMN(I$2)-COLUMN($G$2)+1,0,1,1))=0,1,OFFSET(Setup!$F$64,COLUMN(I$2)-COLUMN($G$2)+1,0,1,1)),1)","v":1},{"$f":"IF(COLUMN(J$2)-COLUMN($G$2)+1<=EarnListCount,IF(COUNTA(OFFSET(Setup!$F$64,COLUMN(J$2)-COLUMN($G$2)+1,0,1,1))=0,1,OFFSET(Setup!$F$64,COLUMN(J$2)-COLUMN($G$2)+1,0,1,1)),1)","v":0},{"$f":"IF(COLUMN(K$2)-COLUMN($G$2)+1<=EarnListCount,IF(COUNTA(OFFSET(Setup!$F$64,COLUMN(K$2)-COLUMN($G$2)+1,0,1,1))=0,1,OFFSET(Setup!$F$64,COLUMN(K$2)-COLUMN($G$2)+1,0,1,1)),1)","v":0},null,null,{"$f":"IF(COLUMN(N$1)-COLUMN($N$1)+1<=DedListCount,IF(OFFSET(Setup!$I$73,COLUMN(N$1)-COLUMN($N$1)+1,0,1,1)=0,\"-\",OFFSET(Setup!$I$73,COLUMN(N$1)-COLUMN($N$1)+1,0,1,1)),\"Not Used\")","v":212544},{"$f":"IF(COLUMN(O$1)-COLUMN($N$1)+1<=DedListCount,IF(OFFSET(Setup!$I$73,COLUMN(O$1)-COLUMN($N$1)+1,0,1,1)=0,\"-\",OFFSET(Setup!$I$73,COLUMN(O$1)-COLUMN($N$1)+1,0,1,1)),\"Not Used\")","v":"-"},{"$f":"IF(COLUMN(P$1)-COLUMN($N$1)+1<=DedListCount,IF(OFFSET(Setup!$I$73,COLUMN(P$1)-COLUMN($N$1)+1,0,1,1)=0,\"-\",OFFSET(Setup!$I$73,COLUMN(P$1)-COLUMN($N$1)+1,0,1,1)),\"Not Used\")","v":"-"},{"$f":"IF(COLUMN(Q$1)-COLUMN($N$1)+1<=DedListCount,IF(OFFSET(Setup!$I$73,COLUMN(Q$1)-COLUMN($N$1)+1,0,1,1)=0,\"-\",OFFSET(Setup!$I$73,COLUMN(Q$1)-COLUMN($N$1)+1,0,1,1)),\"Not Used\")","v":"-"},null,null,{"$f":"IF(COLUMN(T$2)-COLUMN($T$2)+1<=CompListCount,IF(OFFSET(Setup!$I$81,COLUMN(T$2)-COLUMN($T$2)+1,0,1,1)=0,\"-\",OFFSET(Setup!$I$81,COLUMN(T$2)-COLUMN($T$2)+1,0,1,1)),\"Not Used\")","v":"-"},{"$f":"IF(COLUMN(U$2)-COLUMN($T$2)+1<=CompListCount,IF(OFFSET(Setup!$I$81,COLUMN(U$2)-COLUMN($T$2)+1,0,1,1)=0,\"-\",OFFSET(Setup!$I$81,COLUMN(U$2)-COLUMN($T$2)+1,0,1,1)),\"Not Used\")","v":"-"},{"$f":"IF(COLUMN(V$2)-COLUMN($T$2)+1<=CompListCount,IF(OFFSET(Setup!$I$81,COLUMN(V$2)-COLUMN($T$2)+1,0,1,1)=0,\"-\",OFFSET(Setup!$I$81,COLUMN(V$2)-COLUMN($T$2)+1,0,1,1)),\"Not Used\")","v":"-"},{"$f":"IF(COLUMN(W$2)-COLUMN($T$2)+1<=CompListCount,IF(OFFSET(Setup!$I$81,COLUMN(W$2)-COLUMN($T$2)+1,0,1,1)=0,\"-\",OFFSET(Setup!$I$81,COLUMN(W$2)-COLUMN($T$2)+1,0,1,1)),\"Not Used\")","v":"-"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"IF(COLUMN(AN$2)-COLUMN($AN$2)+1<=DedListCount,IF(COUNTA(OFFSET(Setup!$J$73,COLUMN(AN$2)-COLUMN($AN$2)+1,0,1,1))=0,0,OFFSET(Setup!$J$73,COLUMN(AN$2)-COLUMN($AN$2)+1,0,1,1)),1)","v":0},{"$f":"IF(COLUMN(AO$2)-COLUMN($AN$2)+1<=DedListCount,IF(COUNTA(OFFSET(Setup!$J$73,COLUMN(AO$2)-COLUMN($AN$2)+1,0,1,1))=0,0,OFFSET(Setup!$J$73,COLUMN(AO$2)-COLUMN($AN$2)+1,0,1,1)),1)","v":1},{"$f":"IF(COLUMN(AP$2)-COLUMN($AN$2)+1<=DedListCount,IF(COUNTA(OFFSET(Setup!$J$73,COLUMN(AP$2)-COLUMN($AN$2)+1,0,1,1))=0,0,OFFSET(Setup!$J$73,COLUMN(AP$2)-COLUMN($AN$2)+1,0,1,1)),1)","v":0},{"$f":"IF(COLUMN(AQ$2)-COLUMN($AN$2)+1<=DedListCount,IF(COUNTA(OFFSET(Setup!$J$73,COLUMN(AQ$2)-COLUMN($AN$2)+1,0,1,1))=0,0,OFFSET(Setup!$J$73,COLUMN(AQ$2)-COLUMN($AN$2)+1,0,1,1)),1)","v":0},null,null,{"$f":"IF(COLUMN(AT$2)-COLUMN($AT$2)+1<=DedListCount,IF(COUNTA(OFFSET(Setup!$J$73,COLUMN(AT$2)-COLUMN($AT$2)+1,0,1,1))=0,1,OFFSET(Setup!$J$73,COLUMN(AT$2)-COLUMN($AT$2)+1,0,1,1)),1)","v":0},{"$f":"IF(COLUMN(AU$2)-COLUMN($AT$2)+1<=DedListCount,IF(COUNTA(OFFSET(Setup!$J$73,COLUMN(AU$2)-COLUMN($AT$2)+1,0,1,1))=0,1,OFFSET(Setup!$J$73,COLUMN(AU$2)-COLUMN($AT$2)+1,0,1,1)),1)","v":1},{"$f":"IF(COLUMN(AV$2)-COLUMN($AT$2)+1<=DedListCount,IF(COUNTA(OFFSET(Setup!$J$73,COLUMN(AV$2)-COLUMN($AT$2)+1,0,1,1))=0,1,OFFSET(Setup!$J$73,COLUMN(AV$2)-COLUMN($AT$2)+1,0,1,1)),1)","v":0},{"$f":"IF(COLUMN(AW$2)-COLUMN($AT$2)+1<=DedListCount,IF(COUNTA(OFFSET(Setup!$J$73,COLUMN(AW$2)-COLUMN($AT$2)+1,0,1,1))=0,1,OFFSET(Setup!$J$73,COLUMN(AW$2)-COLUMN($AT$2)+1,0,1,1)),1)","v":1}]
["Sheet Status",{"$f":"IF(PayCount<EmpCount*12,\"add!\",\"ok\")","v":"ok"},{"$f":"IF($B$4=\"add!\",\"You need to add \"&(EmpCount*12)-PayCount&\" rows to the table\",\"\")","v":""},null,null,null,{"$f":"IF(COLUMN(G$2)-COLUMN($G$2)+1<=EarnListCount,OFFSET(Setup!$G$64,COLUMN(G$2)-COLUMN($G$2)+1,0,1,1),\"Not Used\")","v":"Monthly"},{"$f":"IF(COLUMN(H$2)-COLUMN($G$2)+1<=EarnListCount,OFFSET(Setup!$G$64,COLUMN(H$2)-COLUMN($G$2)+1,0,1,1),\"Not Used\")","v":"Annual"},{"$f":"IF(COLUMN(I$2)-COLUMN($G$2)+1<=EarnListCount,OFFSET(Setup!$G$64,COLUMN(I$2)-COLUMN($G$2)+1,0,1,1),\"Not Used\")","v":"Annual"},{"$f":"IF(COLUMN(J$2)-COLUMN($G$2)+1<=EarnListCount,OFFSET(Setup!$G$64,COLUMN(J$2)-COLUMN($G$2)+1,0,1,1),\"Not Used\")","v":"Monthly"},{"$f":"IF(COLUMN(K$2)-COLUMN($G$2)+1<=EarnListCount,OFFSET(Setup!$G$64,COLUMN(K$2)-COLUMN($G$2)+1,0,1,1),\"Not Used\")","v":"Monthly"},null,null,{"$f":"IF(COLUMN(N$1)-COLUMN($N$1)+1<=DedListCount,OFFSET(Setup!$H$73,COLUMN(N$1)-COLUMN($N$1)+1,0,1,1),\"Not Used\")","v":"D"},{"$f":"IF(COLUMN(O$1)-COLUMN($N$1)+1<=DedListCount,OFFSET(Setup!$H$73,COLUMN(O$1)-COLUMN($N$1)+1,0,1,1),\"Not Used\")","v":"D"},{"$f":"IF(COLUMN(P$1)-COLUMN($N$1)+1<=DedListCount,OFFSET(Setup!$H$73,COLUMN(P$1)-COLUMN($N$1)+1,0,1,1),\"Not Used\")","v":0},{"$f":"IF(COLUMN(Q$1)-COLUMN($N$1)+1<=DedListCount,OFFSET(Setup!$H$73,COLUMN(Q$1)-COLUMN($N$1)+1,0,1,1),\"Not Used\")","v":0},null,null,{"$f":"IF(COLUMN(T$2)-COLUMN($T$2)+1>CompListCount,\"Not Used\",OFFSET(Setup!$H$81,COLUMN(T$2)-COLUMN($T$2)+1,0,1,1))","v":0},{"$f":"IF(COLUMN(U$2)-COLUMN($T$2)+1>CompListCount,\"Not Used\",OFFSET(Setup!$H$81,COLUMN(U$2)-COLUMN($T$2)+1,0,1,1))","v":"D"},{"$f":"IF(COLUMN(V$2)-COLUMN($T$2)+1>CompListCount,\"Not Used\",OFFSET(Setup!$H$81,COLUMN(V$2)-COLUMN($T$2)+1,0,1,1))","v":0},{"$f":"IF(COLUMN(W$2)-COLUMN($T$2)+1>CompListCount,\"Not Used\",OFFSET(Setup!$H$81,COLUMN(W$2)-COLUMN($T$2)+1,0,1,1))","v":0},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"IF(COLUMN(AN$2)-COLUMN($AN$2)+1<=DedListCount,IF(COUNTA(OFFSET(Setup!$K$73,COLUMN(AN$2)-COLUMN($AN$2)+1,0,1,1))=0,\"-\",OFFSET(Setup!$K$73,COLUMN(AN$2)-COLUMN($AN$2)+1,0,1,1)),\"-\")","v":"-"},{"$f":"IF(COLUMN(AO$2)-COLUMN($AN$2)+1<=DedListCount,IF(COUNTA(OFFSET(Setup!$K$73,COLUMN(AO$2)-COLUMN($AN$2)+1,0,1,1))=0,\"-\",OFFSET(Setup!$K$73,COLUMN(AO$2)-COLUMN($AN$2)+1,0,1,1)),\"-\")","v":350000},{"$f":"IF(COLUMN(AP$2)-COLUMN($AN$2)+1<=DedListCount,IF(COUNTA(OFFSET(Setup!$K$73,COLUMN(AP$2)-COLUMN($AN$2)+1,0,1,1))=0,\"-\",OFFSET(Setup!$K$73,COLUMN(AP$2)-COLUMN($AN$2)+1,0,1,1)),\"-\")","v":"-"},{"$f":"IF(COLUMN(AQ$2)-COLUMN($AN$2)+1<=DedListCount,IF(COUNTA(OFFSET(Setup!$K$73,COLUMN(AQ$2)-COLUMN($AN$2)+1,0,1,1))=0,\"-\",OFFSET(Setup!$K$73,COLUMN(AQ$2)-COLUMN($AN$2)+1,0,1,1)),\"-\")","v":"-"},null,null,{"$f":"IF(COLUMN(AT$2)-COLUMN($AT$2)+1<=DedListCount,IF(COUNTA(OFFSET(Setup!$K$73,COLUMN(AT$2)-COLUMN($AT$2)+1,0,1,1))=0,\"-\",OFFSET(Setup!$K$73,COLUMN(AT$2)-COLUMN($AT$2)+1,0,1,1)),\"-\")","v":"-"},{"$f":"IF(COLUMN(AU$2)-COLUMN($AT$2)+1<=DedListCount,IF(COUNTA(OFFSET(Setup!$K$73,COLUMN(AU$2)-COLUMN($AT$2)+1,0,1,1))=0,\"-\",OFFSET(Setup!$K$73,COLUMN(AU$2)-COLUMN($AT$2)+1,0,1,1)),\"-\")","v":350000},{"$f":"IF(COLUMN(AV$2)-COLUMN($AT$2)+1<=DedListCount,IF(COUNTA(OFFSET(Setup!$K$73,COLUMN(AV$2)-COLUMN($AT$2)+1,0,1,1))=0,\"-\",OFFSET(Setup!$K$73,COLUMN(AV$2)-COLUMN($AT$2)+1,0,1,1)),\"-\")","v":"-"},{"$f":"IF(COLUMN(AW$2)-COLUMN($AT$2)+1<=DedListCount,IF(COUNTA(OFFSET(Setup!$K$73,COLUMN(AW$2)-COLUMN($AT$2)+1,0,1,1))=0,\"-\",OFFSET(Setup!$K$73,COLUMN(AW$2)-COLUMN($AT$2)+1,0,1,1)),\"-\")","v":"-"}]
[null,null,null,null,null,null,{"$f":"IF(COLUMN(G$2)-COLUMN($G$2)+1<=EarnListCount,OFFSET(Setup!$E$64,COLUMN(G$2)-COLUMN($G$2)+1,0,1,1),\"Not Used\")","v":"Basic"},{"$f":"IF(COLUMN(H$2)-COLUMN($G$2)+1<=EarnListCount,OFFSET(Setup!$E$64,COLUMN(H$2)-COLUMN($G$2)+1,0,1,1),\"Not Used\")","v":"Leave"},{"$f":"IF(COLUMN(I$2)-COLUMN($G$2)+1<=EarnListCount,OFFSET(Setup!$E$64,COLUMN(I$2)-COLUMN($G$2)+1,0,1,1),\"Not Used\")","v":"Bonus"},{"$f":"IF(COLUMN(J$2)-COLUMN($G$2)+1<=EarnListCount,OFFSET(Setup!$E$64,COLUMN(J$2)-COLUMN($G$2)+1,0,1,1),\"Not Used\")","v":"Loan"},{"$f":"IF(COLUMN(K$2)-COLUMN($G$2)+1<=EarnListCount,OFFSET(Setup!$E$64,COLUMN(K$2)-COLUMN($G$2)+1,0,1,1),\"Not Used\")","v":"Not Used"},"Total","TAX",{"$f":"IF(COLUMN(N$1)-COLUMN($N$1)+1>DedListCount,\"Not Used\",OFFSET(Setup!$A$73,COLUMN(N$1)-COLUMN($N$1)+1,0,1,1))","v":"UIF"},{"$f":"IF(COLUMN(O$1)-COLUMN($N$1)+1>DedListCount,\"Not Used\",OFFSET(Setup!$A$73,COLUMN(O$1)-COLUMN($N$1)+1,0,1,1))","v":"PENS"},{"$f":"IF(COLUMN(P$1)-COLUMN($N$1)+1>DedListCount,\"Not Used\",OFFSET(Setup!$A$73,COLUMN(P$1)-COLUMN($N$1)+1,0,1,1))","v":"LOAN"},{"$f":"IF(COLUMN(Q$1)-COLUMN($N$1)+1>DedListCount,\"Not Used\",OFFSET(Setup!$A$73,COLUMN(Q$1)-COLUMN($N$1)+1,0,1,1))","v":"DED4"},"Total","Net",{"$f":"IF(COLUMN(T$2)-COLUMN($T$2)+1>CompListCount,\"Not Used\",OFFSET(Setup!$A$81,COLUMN(T$2)-COLUMN($T$2)+1,0,1,1))","v":"UIF"},{"$f":"IF(COLUMN(U$2)-COLUMN($T$2)+1>CompListCount,\"Not Used\",OFFSET(Setup!$A$81,COLUMN(U$2)-COLUMN($T$2)+1,0,1,1))","v":"SDL"},{"$f":"IF(COLUMN(V$2)-COLUMN($T$2)+1>CompListCount,\"Not Used\",OFFSET(Setup!$A$81,COLUMN(V$2)-COLUMN($T$2)+1,0,1,1))","v":"CO3"},{"$f":"IF(COLUMN(W$2)-COLUMN($T$2)+1>CompListCount,\"Not Used\",OFFSET(Setup!$A$81,COLUMN(W$2)-COLUMN($T$2)+1,0,1,1))","v":"CO4"},"Total","Total","Total",null,null,null,null,null,null,null,null,null,null,null,null,"TAX",{"$f":"IF(COLUMN(AN3)-COLUMN($AN$3)+1<=DedListCount,OFFSET(Setup!$A$73,COLUMN(AN3)-COLUMN($AN$3)+1,0,1,1),\"Not Used\")","v":"UIF"},{"$f":"IF(COLUMN(AO3)-COLUMN($AN$3)+1<=DedListCount,OFFSET(Setup!$A$73,COLUMN(AO3)-COLUMN($AN$3)+1,0,1,1),\"Not Used\")","v":"PENS"},{"$f":"IF(COLUMN(AP3)-COLUMN($AN$3)+1<=DedListCount,OFFSET(Setup!$A$73,COLUMN(AP3)-COLUMN($AN$3)+1,0,1,1),\"Not Used\")","v":"LOAN"},{"$f":"IF(COLUMN(AQ3)-COLUMN($AN$3)+1<=DedListCount,OFFSET(Setup!$A$73,COLUMN(AQ3)-COLUMN($AN$3)+1,0,1,1),\"Not Used\")","v":"DED4"},"Tax Calc","Tax Calc",{"$f":"IF(COLUMN(AT2)-COLUMN($AT$2)+1<=DedListCount,OFFSET(Setup!$A$73,COLUMN(AT2)-COLUMN($AT$2)+1,0,1,1),\"Not Used\")","v":"UIF"},{"$f":"IF(COLUMN(AU2)-COLUMN($AT$2)+1<=DedListCount,OFFSET(Setup!$A$73,COLUMN(AU2)-COLUMN($AT$2)+1,0,1,1),\"Not Used\")","v":"PENS"},{"$f":"IF(COLUMN(AV2)-COLUMN($AT$2)+1<=DedListCount,OFFSET(Setup!$A$73,COLUMN(AV2)-COLUMN($AT$2)+1,0,1,1),\"Not Used\")","v":"LOAN"},{"$f":"IF(COLUMN(AW2)-COLUMN($AT$2)+1<=DedListCount,OFFSET(Setup!$A$73,COLUMN(AW2)-COLUMN($AT$2)+1,0,1,1),\"Not Used\")","v":"DED4"},"Tax Calc","Tax Calc","Tax Calc","Tax Calc","Tax Calc","Deduct","Deduct","Deduct"]
["Pay Slip Reference No","Payment Run Date","Employee Number","Employee Name","Dept","Status","Earnings1","Earnings2","Earnings3","Earnings4","Earnings5","Gross Pay","Income Tax (PAYE)","Deduct1","Deduct2","Deduct3","Deduct4","Total Deductions","Net Pay","Co-Contrib1","Co-Contrib2","Co-Contrib3","Co-Contrib4","Total Co Contributions","Total Cost To Company","Deductions & Co-Contrib","Employee Pay Period","Business Pay Period","Unique Pay Date","1st Pay Period","Pay Period Override","PaySlip Status","Medical Aid Members","MedTaxCredit Monthly","MedTaxCredit Annual","IT Rebate Code","IT Rebate Value","IT Rate","Annual Gross Tax Income","Annual Tax Deduct1","Annual Tax Deduct2","Annual Tax Deduct3","Annual Tax Deduct4","Annual Taxable Income","Tax Monthly EQV","Monthly EQV Deduct1","Monthly EQV Deduct2","Monthly EQV Deduct3","Monthly EQV Deduct4","Taxable Income Monthly EQV","Taxable Income Non-Monthly","Total Annual Taxation","Tax On Monthly Income","Tax On Non-Monthly Inc","Earnings % \nMonth","Earnings % \nAnnual","Earnings Total Amount"]
[{"$f":"IF(ROW($A7)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B7,\"yyyy\")&TEXT($B7,\"mm\")&\"-\"&$C7)","v":"202303-EXS001"},{"$f":"IF(ROW($A7)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A7)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A7)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A7)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45010},{"$f":"IF(ROW($A7)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A7)-ROW($A$6)-IF(ROW($A7)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A7)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS001"},{"$f":"IF(ISNA(VLOOKUP($C7,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C7,EmpAll,COLUMN(Emp!$B$4),0))","v":"Taylor AE"},{"$f":"IF(ISNA(VLOOKUP($C7,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C7,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C7,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C7,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC7),MONTH($AC7)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C7,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC7),MONTH($AC7),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F7<>\"Active\",0,IF(COUNTIFS(OverEmp,$C7,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMIFS(OverValue,OverEmp,$C7,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1)),IF(AND($AC7>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C7)>0),SUMIFS(EmpIncrease,EmpCode,$C7),SUMIFS(EmpSalary,EmpCode,$C7))))","v":150000},{"$f":"IF($F7<>\"Active\",0,IF(COUNTIFS(OverEmp,$C7,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMIFS(OverValue,OverEmp,$C7,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1)),0))","v":0},{"$f":"IF($F7<>\"Active\",0,IF(COUNTIFS(OverEmp,$C7,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMIFS(OverValue,OverEmp,$C7,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1)),IF(MONTH(B7)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C7),0)))","v":0},{"$f":"IF($F7<>\"Active\",0,IF(COUNTIFS(OverEmp,$C7,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMIFS(OverValue,OverEmp,$C7,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1)),0))","v":0},{"$f":"IF($F7<>\"Active\",0,IF(COUNTIFS(OverEmp,$C7,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMIFS(OverValue,OverEmp,$C7,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1)),0))","v":0},{"$f":"IF($AA7=0,0,SUM(OFFSET($G7,0,0,1,COLUMN($L$6)-COLUMN($G$6))))","v":150000},{"$f":"IF(COUNTIFS(OverEmp,$C7,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMIFS(OverValue,OverEmp,$C7,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1)),(($BA7/12*$AA7)+(BB7*IF(1-$BC7=0,0,BD7/(1-$BC7))))-IF($F7=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC7,PayEmp,$C7)))","v":45611.833333333336},{"$f":"IF($F7=\"Terminated\",0,IF($AA7=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C7,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMIFS(OverValue,OverEmp,$C7,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA7)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA7,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7))))))","v":177.12},{"$f":"IF($F7=\"Terminated\",0,IF($AA7=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C7,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMIFS(OverValue,OverEmp,$C7,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA7)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA7,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7))))))","v":11250},{"$f":"IF($F7=\"Terminated\",0,IF($AA7=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C7,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMIFS(OverValue,OverEmp,$C7,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA7)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA7,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7))))))","v":0},{"$f":"IF($F7=\"Terminated\",0,IF($AA7=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C7,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMIFS(OverValue,OverEmp,$C7,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA7)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA7,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7))))))","v":0},{"$f":"SUM(OFFSET(M7,0,0,1,COLUMN($R$6)-COLUMN($M$6)))","v":57038.953333333338},{"$f":"ROUND(SUM(L7,-R7),2)","v":92961.05},{"$f":"IF($F7=\"Terminated\",0,IF($AA7=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C7,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMIFS(OverValue,OverEmp,$C7,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA7)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA7,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7)))))))","v":177.12},{"$f":"IF($F7=\"Terminated\",0,IF($AA7=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C7,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMIFS(OverValue,OverEmp,$C7,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA7)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA7,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7)))))))","v":1500},{"$f":"IF($F7=\"Terminated\",0,IF($AA7=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C7,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMIFS(OverValue,OverEmp,$C7,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA7)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA7,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7)))))))","v":0},{"$f":"IF($F7=\"Terminated\",0,IF($AA7=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C7,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMIFS(OverValue,OverEmp,$C7,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA7)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA7,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC7,PayEmp,$C7)))))))","v":0},{"$f":"SUM(OFFSET($T7,0,0,1,COLUMN($X$6)-COLUMN($T$7)))","v":1677.12},{"$f":"L7+X7","v":151677.12},{"$f":"ROUND(SUM(R7,X7),2)","v":58716.07},{"$f":"IF(OR($B7<=Setup!$E$12,$B7>=Setup!$D$12+1),0,IF($F7<>\"Active\",0,IF($AE7=\"Yes\",$AB7,((YEAR($AC7)*12)+MONTH($AC7))-((YEAR($AD7)*12)+MONTH($AD7)-1))))","v":1},{"$f":"IF(OR($B7<=Setup!$E$12,$B7>=Setup!$D$12+1),0,((YEAR($AC7)*12)+MONTH($AC7))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":1},{"$f":"DATE(YEAR($B7),MONTH($B7),DAY($B7))","v":45010},{"$f":"IF(ISNA(VLOOKUP($C7,EmpAll,COLUMN(Emp!$E$4),0)),$AC7,IF(VLOOKUP($C7,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C7,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C7,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C7,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C7,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A7=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C7,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMIFS(OverValue,OverEmp,$C7,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1)),IF(ISNA(VLOOKUP($C7,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$N$4),0)))","v":5},{"$f":"VLOOKUP($AG7,MedList,COLUMN(Setup!$C$49),1)","v":1466},{"$f":"SUMIFS(PayMedDeduct,PayDate,\"<\"&$AC7,PayEmp,$C7)+$AH7+($AH7*(12-$AA7))","v":17592},{"$f":"IF(ISNA(VLOOKUP($C7,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C7,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($AJ7,RebateList,4,0)),VLOOKUP(\"A\",RebateList,3,0),VLOOKUP($AJ7,RebateList,4,0))","v":17235},{"$f":"IF(ISNA(VLOOKUP($C7,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C7,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C7,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},{"$f":"IF($AA7=0,0,((SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(PayEarnType=\"Monthly\")*(PayEarnTax)*(PayEarnValues))/$AA7*12)+(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(PayEarnType=\"Quarterly\")*(PayEarnTax)*(PayEarnValues))/MAX(1,ROUNDDOWN($AB7/3,0))*4)+(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(PayEarnType=\"Bi-Annual\")*(PayEarnTax)*(PayEarnValues))/MAX(1,ROUNDDOWN($AB7/6,0))*2)+(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(PayEarnType=\"Annual\")*(PayEarnTax)*(PayEarnValues)))))","v":1800000},{"$f":"-IF($F7=\"Terminated\",0,IF($AA7=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C7,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA7*12)+(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB7/3,0))*4)+(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB7/6,0))*2)+(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F7=\"Terminated\",0,IF($AA7=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C7,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA7*12)+(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB7/3,0))*4)+(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB7/6,0))*2)+(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F7=\"Terminated\",0,IF($AA7=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C7,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA7*12)+(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB7/3,0))*4)+(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB7/6,0))*2)+(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F7=\"Terminated\",0,IF($AA7=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C7,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA7*12)+(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB7/3,0))*4)+(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB7/6,0))*2)+(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},{"$f":"$AM7+SUM(OFFSET($AM7,0,1,1,COLUMN($AR$2)-COLUMN($AM$2)-1))","v":1665000},{"$f":"IF($AA7=0,0,(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(PayEarnType=\"Monthly\")*(PayEarnTax)*(PayEarnValues))/$AA7*12))","v":1800000},{"$f":"-IF($F7=\"Terminated\",0,IF($AA7=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C7,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA7*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F7=\"Terminated\",0,IF($AA7=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C7,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA7*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F7=\"Terminated\",0,IF($AA7=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C7,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA7*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F7=\"Terminated\",0,IF($AA7=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C7,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC7),MONTH($AC7)+1,1),OverEnd,\">=\"&DATE(YEAR($AC7),MONTH($AC7),1))>0,SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA7*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA7*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C7,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C7,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},{"$f":"$AS7+SUM(OFFSET($AT7,0,0,1,COLUMN($AX$2)-COLUMN($AT$2)))","v":1665000},{"$f":"AR7-AX7","v":0},{"$f":"IF(ISNUMBER($AL7),($AR7*$AL7)-$AI7-$AK7,MAX(0,IF($AL7=\"B\",IF($AR7<Setup!$C$32,($AR7*Setup!$D$32)-$AI7-$AK7,(($AR7-VLOOKUP($AR7,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR7,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR7,TaxBracket2,1),0,1,1)-$AI7-$AK7),IF($AR7<Setup!$C$21,($AR7*Setup!$D$21)-$AI7-$AK7,(($AR7-VLOOKUP($AR7,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR7,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR7,TaxBracket1,1),0,1,1)-$AI7-$AK7))))","v":547342},{"$f":"IF(ISNUMBER($AL7),($AX7*$AL7)-$AI7-$AK7,MAX(0,IF($AL7=\"B\",IF($AX7<Setup!$C$32,($AX7*Setup!$D$32)-$AI7-$AK7,(($AX7-VLOOKUP($AX7,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX7,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX7,TaxBracket2,1),0,1,1)-$AI7-$AK7),IF($AX7<Setup!$C$21,($AX7*Setup!$D$21)-$AI7-$AK7,(($AX7-VLOOKUP($AX7,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX7,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX7,TaxBracket1,1),0,1,1)-$AI7-$AK7))))","v":547342},{"$f":"AZ7-BA7","v":0},{"$f":"IF($AA7=0,0,IF($BE7=0,0,(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA7*12)/$BE7))","v":1},{"$f":"IF($BE7=0,0,(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnType=\"Annual\")*(PayEarnValues)))/$BE7)","v":0},{"$f":"IF($AA7=0,0,((SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA7*12)+(SUMPRODUCT((PayEmp=$C7)*(PayDate<=$AC7)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnType=\"Annual\")*(PayEarnValues)))))","v":1800000}]
[{"$f":"IF(ROW($A8)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B8,\"yyyy\")&TEXT($B8,\"mm\")&\"-\"&$C8)","v":"202303-EXS002"},{"$f":"IF(ROW($A8)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A8)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A8)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A8)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45010},{"$f":"IF(ROW($A8)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A8)-ROW($A$6)-IF(ROW($A8)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A8)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS002"},{"$f":"IF(ISNA(VLOOKUP($C8,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C8,EmpAll,COLUMN(Emp!$B$4),0))","v":"Smith F"},{"$f":"IF(ISNA(VLOOKUP($C8,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C8,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C8,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C8,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC8),MONTH($AC8)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C8,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC8),MONTH($AC8),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F8<>\"Active\",0,IF(COUNTIFS(OverEmp,$C8,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMIFS(OverValue,OverEmp,$C8,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1)),IF(AND($AC8>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C8)>0),SUMIFS(EmpIncrease,EmpCode,$C8),SUMIFS(EmpSalary,EmpCode,$C8))))","v":120000},{"$f":"IF($F8<>\"Active\",0,IF(COUNTIFS(OverEmp,$C8,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMIFS(OverValue,OverEmp,$C8,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1)),0))","v":0},{"$f":"IF($F8<>\"Active\",0,IF(COUNTIFS(OverEmp,$C8,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMIFS(OverValue,OverEmp,$C8,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1)),IF(MONTH(B8)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C8),0)))","v":0},{"$f":"IF($F8<>\"Active\",0,IF(COUNTIFS(OverEmp,$C8,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMIFS(OverValue,OverEmp,$C8,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1)),0))","v":0},{"$f":"IF($F8<>\"Active\",0,IF(COUNTIFS(OverEmp,$C8,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMIFS(OverValue,OverEmp,$C8,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1)),0))","v":0},120000,{"$f":"IF(COUNTIFS(OverEmp,$C8,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMIFS(OverValue,OverEmp,$C8,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1)),(($BA8/12*$AA8)+(BB8*IF(1-$BC8=0,0,BD8/(1-$BC8))))-IF($F8=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC8,PayEmp,$C8)))","v":38662.333333333336},{"$f":"IF($F8=\"Terminated\",0,IF($AA8=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C8,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMIFS(OverValue,OverEmp,$C8,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA8)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA8,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8))))))","v":177.12},{"$f":"IF($F8=\"Terminated\",0,IF($AA8=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C8,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMIFS(OverValue,OverEmp,$C8,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA8)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA8,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8))))))","v":0},{"$f":"IF($F8=\"Terminated\",0,IF($AA8=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C8,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMIFS(OverValue,OverEmp,$C8,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA8)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA8,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8))))))","v":0},{"$f":"IF($F8=\"Terminated\",0,IF($AA8=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C8,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMIFS(OverValue,OverEmp,$C8,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA8)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA8,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8))))))","v":0},38839.453333333338,81160.55,{"$f":"IF($F8=\"Terminated\",0,IF($AA8=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C8,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMIFS(OverValue,OverEmp,$C8,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA8)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA8,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8)))))))","v":177.12},{"$f":"IF($F8=\"Terminated\",0,IF($AA8=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C8,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMIFS(OverValue,OverEmp,$C8,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA8)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA8,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8)))))))","v":1200},{"$f":"IF($F8=\"Terminated\",0,IF($AA8=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C8,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMIFS(OverValue,OverEmp,$C8,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA8)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA8,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8)))))))","v":0},{"$f":"IF($F8=\"Terminated\",0,IF($AA8=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C8,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMIFS(OverValue,OverEmp,$C8,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA8)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA8,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC8,PayEmp,$C8)))))))","v":0},1377.12,121377.12,40216.57,{"$f":"IF(OR($B8<=Setup!$E$12,$B8>=Setup!$D$12+1),0,IF($F8<>\"Active\",0,IF($AE8=\"Yes\",$AB8,((YEAR($AC8)*12)+MONTH($AC8))-((YEAR($AD8)*12)+MONTH($AD8)-1))))","v":1},{"$f":"IF(OR($B8<=Setup!$E$12,$B8>=Setup!$D$12+1),0,((YEAR($AC8)*12)+MONTH($AC8))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":1},45010,{"$f":"IF(ISNA(VLOOKUP($C8,EmpAll,COLUMN(Emp!$E$4),0)),$AC8,IF(VLOOKUP($C8,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C8,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C8,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C8,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C8,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A8=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C8,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMIFS(OverValue,OverEmp,$C8,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1)),IF(ISNA(VLOOKUP($C8,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$N$4),0)))","v":2},{"$f":"VLOOKUP($AG8,MedList,COLUMN(Setup!$C$49),1)","v":728},8736,{"$f":"IF(ISNA(VLOOKUP($C8,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C8,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C8,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C8,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C8,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1440000,{"$f":"-IF($F8=\"Terminated\",0,IF($AA8=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C8,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA8*12)+(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB8/3,0))*4)+(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB8/6,0))*2)+(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F8=\"Terminated\",0,IF($AA8=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C8,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA8*12)+(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB8/3,0))*4)+(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB8/6,0))*2)+(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F8=\"Terminated\",0,IF($AA8=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C8,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA8*12)+(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB8/3,0))*4)+(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB8/6,0))*2)+(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F8=\"Terminated\",0,IF($AA8=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C8,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA8*12)+(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB8/3,0))*4)+(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB8/6,0))*2)+(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1440000,1440000,{"$f":"-IF($F8=\"Terminated\",0,IF($AA8=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C8,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA8*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F8=\"Terminated\",0,IF($AA8=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C8,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA8*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F8=\"Terminated\",0,IF($AA8=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C8,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA8*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F8=\"Terminated\",0,IF($AA8=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C8,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC8),MONTH($AC8)+1,1),OverEnd,\">=\"&DATE(YEAR($AC8),MONTH($AC8),1))>0,SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA8*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C8)*(PayDate<=$AC8)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA8*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C8,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C8,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1440000,0,{"$f":"IF(ISNUMBER($AL8),($AR8*$AL8)-$AI8-$AK8,MAX(0,IF($AL8=\"B\",IF($AR8<Setup!$C$32,($AR8*Setup!$D$32)-$AI8-$AK8,(($AR8-VLOOKUP($AR8,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR8,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR8,TaxBracket2,1),0,1,1)-$AI8-$AK8),IF($AR8<Setup!$C$21,($AR8*Setup!$D$21)-$AI8-$AK8,(($AR8-VLOOKUP($AR8,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR8,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR8,TaxBracket1,1),0,1,1)-$AI8-$AK8))))","v":463948},{"$f":"IF(ISNUMBER($AL8),($AX8*$AL8)-$AI8-$AK8,MAX(0,IF($AL8=\"B\",IF($AX8<Setup!$C$32,($AX8*Setup!$D$32)-$AI8-$AK8,(($AX8-VLOOKUP($AX8,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX8,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX8,TaxBracket2,1),0,1,1)-$AI8-$AK8),IF($AX8<Setup!$C$21,($AX8*Setup!$D$21)-$AI8-$AK8,(($AX8-VLOOKUP($AX8,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX8,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX8,TaxBracket1,1),0,1,1)-$AI8-$AK8))))","v":463948},0,1,0,1440000]
[{"$f":"IF(ROW($A9)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B9,\"yyyy\")&TEXT($B9,\"mm\")&\"-\"&$C9)","v":"202303-EXS003"},{"$f":"IF(ROW($A9)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A9)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A9)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A9)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45010},{"$f":"IF(ROW($A9)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A9)-ROW($A$6)-IF(ROW($A9)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A9)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS003"},{"$f":"IF(ISNA(VLOOKUP($C9,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C9,EmpAll,COLUMN(Emp!$B$4),0))","v":"Wilson PG"},{"$f":"IF(ISNA(VLOOKUP($C9,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C9,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C9,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C9,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC9),MONTH($AC9)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C9,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC9),MONTH($AC9),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F9<>\"Active\",0,IF(COUNTIFS(OverEmp,$C9,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMIFS(OverValue,OverEmp,$C9,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1)),IF(AND($AC9>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C9)>0),SUMIFS(EmpIncrease,EmpCode,$C9),SUMIFS(EmpSalary,EmpCode,$C9))))","v":15000},{"$f":"IF($F9<>\"Active\",0,IF(COUNTIFS(OverEmp,$C9,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMIFS(OverValue,OverEmp,$C9,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1)),0))","v":0},{"$f":"IF($F9<>\"Active\",0,IF(COUNTIFS(OverEmp,$C9,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMIFS(OverValue,OverEmp,$C9,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1)),IF(MONTH(B9)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C9),0)))","v":0},{"$f":"IF($F9<>\"Active\",0,IF(COUNTIFS(OverEmp,$C9,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMIFS(OverValue,OverEmp,$C9,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1)),0))","v":0},{"$f":"IF($F9<>\"Active\",0,IF(COUNTIFS(OverEmp,$C9,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMIFS(OverValue,OverEmp,$C9,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1)),0))","v":0},15000,{"$f":"IF(COUNTIFS(OverEmp,$C9,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMIFS(OverValue,OverEmp,$C9,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1)),(($BA9/12*$AA9)+(BB9*IF(1-$BC9=0,0,BD9/(1-$BC9))))-IF($F9=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC9,PayEmp,$C9)))","v":899.75},{"$f":"IF($F9=\"Terminated\",0,IF($AA9=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C9,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMIFS(OverValue,OverEmp,$C9,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA9)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA9,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9))))))","v":150},{"$f":"IF($F9=\"Terminated\",0,IF($AA9=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C9,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMIFS(OverValue,OverEmp,$C9,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA9)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA9,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9))))))","v":0},{"$f":"IF($F9=\"Terminated\",0,IF($AA9=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C9,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMIFS(OverValue,OverEmp,$C9,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA9)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA9,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9))))))","v":0},{"$f":"IF($F9=\"Terminated\",0,IF($AA9=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C9,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMIFS(OverValue,OverEmp,$C9,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA9)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA9,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9))))))","v":0},1049.75,13950.25,{"$f":"IF($F9=\"Terminated\",0,IF($AA9=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C9,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMIFS(OverValue,OverEmp,$C9,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA9)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA9,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9)))))))","v":150},{"$f":"IF($F9=\"Terminated\",0,IF($AA9=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C9,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMIFS(OverValue,OverEmp,$C9,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA9)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA9,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9)))))))","v":150},{"$f":"IF($F9=\"Terminated\",0,IF($AA9=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C9,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMIFS(OverValue,OverEmp,$C9,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA9)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA9,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9)))))))","v":0},{"$f":"IF($F9=\"Terminated\",0,IF($AA9=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C9,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMIFS(OverValue,OverEmp,$C9,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA9)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA9,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC9,PayEmp,$C9)))))))","v":0},300,15300,1349.75,{"$f":"IF(OR($B9<=Setup!$E$12,$B9>=Setup!$D$12+1),0,IF($F9<>\"Active\",0,IF($AE9=\"Yes\",$AB9,((YEAR($AC9)*12)+MONTH($AC9))-((YEAR($AD9)*12)+MONTH($AD9)-1))))","v":1},{"$f":"IF(OR($B9<=Setup!$E$12,$B9>=Setup!$D$12+1),0,((YEAR($AC9)*12)+MONTH($AC9))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":1},45010,{"$f":"IF(ISNA(VLOOKUP($C9,EmpAll,COLUMN(Emp!$E$4),0)),$AC9,IF(VLOOKUP($C9,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C9,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C9,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C9,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C9,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A9=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C9,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMIFS(OverValue,OverEmp,$C9,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1)),IF(ISNA(VLOOKUP($C9,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG9,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C9,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C9,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C9,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C9,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C9,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},180000,{"$f":"-IF($F9=\"Terminated\",0,IF($AA9=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C9,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA9*12)+(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB9/3,0))*4)+(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB9/6,0))*2)+(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F9=\"Terminated\",0,IF($AA9=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C9,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA9*12)+(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB9/3,0))*4)+(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB9/6,0))*2)+(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F9=\"Terminated\",0,IF($AA9=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C9,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA9*12)+(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB9/3,0))*4)+(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB9/6,0))*2)+(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F9=\"Terminated\",0,IF($AA9=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C9,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA9*12)+(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB9/3,0))*4)+(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB9/6,0))*2)+(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},180000,180000,{"$f":"-IF($F9=\"Terminated\",0,IF($AA9=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C9,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA9*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F9=\"Terminated\",0,IF($AA9=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C9,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA9*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F9=\"Terminated\",0,IF($AA9=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C9,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA9*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F9=\"Terminated\",0,IF($AA9=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C9,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC9),MONTH($AC9)+1,1),OverEnd,\">=\"&DATE(YEAR($AC9),MONTH($AC9),1))>0,SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA9*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C9)*(PayDate<=$AC9)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA9*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C9,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C9,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,0,{"$f":"IF(ISNUMBER($AL9),($AR9*$AL9)-$AI9-$AK9,MAX(0,IF($AL9=\"B\",IF($AR9<Setup!$C$32,($AR9*Setup!$D$32)-$AI9-$AK9,(($AR9-VLOOKUP($AR9,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR9,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR9,TaxBracket2,1),0,1,1)-$AI9-$AK9),IF($AR9<Setup!$C$21,($AR9*Setup!$D$21)-$AI9-$AK9,(($AR9-VLOOKUP($AR9,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR9,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR9,TaxBracket1,1),0,1,1)-$AI9-$AK9))))","v":10797},{"$f":"IF(ISNUMBER($AL9),($AX9*$AL9)-$AI9-$AK9,MAX(0,IF($AL9=\"B\",IF($AX9<Setup!$C$32,($AX9*Setup!$D$32)-$AI9-$AK9,(($AX9-VLOOKUP($AX9,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX9,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX9,TaxBracket2,1),0,1,1)-$AI9-$AK9),IF($AX9<Setup!$C$21,($AX9*Setup!$D$21)-$AI9-$AK9,(($AX9-VLOOKUP($AX9,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX9,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX9,TaxBracket1,1),0,1,1)-$AI9-$AK9))))","v":10797},0,1,0,180000]
[{"$f":"IF(ROW($A10)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B10,\"yyyy\")&TEXT($B10,\"mm\")&\"-\"&$C10)","v":"202303-EXS004"},{"$f":"IF(ROW($A10)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A10)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A10)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A10)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45010},{"$f":"IF(ROW($A10)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A10)-ROW($A$6)-IF(ROW($A10)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A10)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS004"},{"$f":"IF(ISNA(VLOOKUP($C10,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C10,EmpAll,COLUMN(Emp!$B$4),0))","v":"Osborne S"},{"$f":"IF(ISNA(VLOOKUP($C10,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C10,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C10,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C10,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC10),MONTH($AC10)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C10,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC10),MONTH($AC10),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F10<>\"Active\",0,IF(COUNTIFS(OverEmp,$C10,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMIFS(OverValue,OverEmp,$C10,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1)),IF(AND($AC10>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C10)>0),SUMIFS(EmpIncrease,EmpCode,$C10),SUMIFS(EmpSalary,EmpCode,$C10))))","v":15000},{"$f":"IF($F10<>\"Active\",0,IF(COUNTIFS(OverEmp,$C10,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMIFS(OverValue,OverEmp,$C10,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1)),0))","v":3600},{"$f":"IF($F10<>\"Active\",0,IF(COUNTIFS(OverEmp,$C10,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMIFS(OverValue,OverEmp,$C10,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1)),IF(MONTH(B10)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C10),0)))","v":0},{"$f":"IF($F10<>\"Active\",0,IF(COUNTIFS(OverEmp,$C10,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMIFS(OverValue,OverEmp,$C10,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1)),0))","v":0},{"$f":"IF($F10<>\"Active\",0,IF(COUNTIFS(OverEmp,$C10,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMIFS(OverValue,OverEmp,$C10,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1)),0))","v":0},18600,{"$f":"IF(COUNTIFS(OverEmp,$C10,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMIFS(OverValue,OverEmp,$C10,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1)),(($BA10/12*$AA10)+(BB10*IF(1-$BC10=0,0,BD10/(1-$BC10))))-IF($F10=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC10,PayEmp,$C10)))","v":1547.7499999999986},{"$f":"IF($F10=\"Terminated\",0,IF($AA10=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C10,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMIFS(OverValue,OverEmp,$C10,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA10)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA10,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10))))))","v":177.12},{"$f":"IF($F10=\"Terminated\",0,IF($AA10=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C10,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMIFS(OverValue,OverEmp,$C10,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA10)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA10,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10))))))","v":0},{"$f":"IF($F10=\"Terminated\",0,IF($AA10=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C10,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMIFS(OverValue,OverEmp,$C10,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA10)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA10,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10))))))","v":500},{"$f":"IF($F10=\"Terminated\",0,IF($AA10=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C10,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMIFS(OverValue,OverEmp,$C10,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA10)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA10,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10))))))","v":0},2224.8699999999985,16375.13,{"$f":"IF($F10=\"Terminated\",0,IF($AA10=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C10,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMIFS(OverValue,OverEmp,$C10,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA10)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA10,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10)))))))","v":177.12},{"$f":"IF($F10=\"Terminated\",0,IF($AA10=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C10,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMIFS(OverValue,OverEmp,$C10,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA10)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA10,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10)))))))","v":186},{"$f":"IF($F10=\"Terminated\",0,IF($AA10=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C10,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMIFS(OverValue,OverEmp,$C10,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA10)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA10,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10)))))))","v":0},{"$f":"IF($F10=\"Terminated\",0,IF($AA10=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C10,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMIFS(OverValue,OverEmp,$C10,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA10)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA10,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC10,PayEmp,$C10)))))))","v":0},363.12,18963.12,2587.9899999999998,{"$f":"IF(OR($B10<=Setup!$E$12,$B10>=Setup!$D$12+1),0,IF($F10<>\"Active\",0,IF($AE10=\"Yes\",$AB10,((YEAR($AC10)*12)+MONTH($AC10))-((YEAR($AD10)*12)+MONTH($AD10)-1))))","v":1},{"$f":"IF(OR($B10<=Setup!$E$12,$B10>=Setup!$D$12+1),0,((YEAR($AC10)*12)+MONTH($AC10))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":1},45010,{"$f":"IF(ISNA(VLOOKUP($C10,EmpAll,COLUMN(Emp!$E$4),0)),$AC10,IF(VLOOKUP($C10,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C10,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C10,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C10,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C10,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A10=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C10,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMIFS(OverValue,OverEmp,$C10,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1)),IF(ISNA(VLOOKUP($C10,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG10,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C10,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C10,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C10,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C10,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C10,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},183600,{"$f":"-IF($F10=\"Terminated\",0,IF($AA10=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C10,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA10*12)+(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB10/3,0))*4)+(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB10/6,0))*2)+(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F10=\"Terminated\",0,IF($AA10=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C10,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA10*12)+(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB10/3,0))*4)+(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB10/6,0))*2)+(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F10=\"Terminated\",0,IF($AA10=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C10,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA10*12)+(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB10/3,0))*4)+(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB10/6,0))*2)+(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F10=\"Terminated\",0,IF($AA10=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C10,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA10*12)+(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB10/3,0))*4)+(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB10/6,0))*2)+(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},183600,180000,{"$f":"-IF($F10=\"Terminated\",0,IF($AA10=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C10,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA10*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F10=\"Terminated\",0,IF($AA10=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C10,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA10*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F10=\"Terminated\",0,IF($AA10=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C10,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA10*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F10=\"Terminated\",0,IF($AA10=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C10,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC10),MONTH($AC10)+1,1),OverEnd,\">=\"&DATE(YEAR($AC10),MONTH($AC10),1))>0,SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA10*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C10)*(PayDate<=$AC10)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA10*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C10,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C10,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,3600,{"$f":"IF(ISNUMBER($AL10),($AR10*$AL10)-$AI10-$AK10,MAX(0,IF($AL10=\"B\",IF($AR10<Setup!$C$32,($AR10*Setup!$D$32)-$AI10-$AK10,(($AR10-VLOOKUP($AR10,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR10,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR10,TaxBracket2,1),0,1,1)-$AI10-$AK10),IF($AR10<Setup!$C$21,($AR10*Setup!$D$21)-$AI10-$AK10,(($AR10-VLOOKUP($AR10,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR10,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR10,TaxBracket1,1),0,1,1)-$AI10-$AK10))))","v":11445},{"$f":"IF(ISNUMBER($AL10),($AX10*$AL10)-$AI10-$AK10,MAX(0,IF($AL10=\"B\",IF($AX10<Setup!$C$32,($AX10*Setup!$D$32)-$AI10-$AK10,(($AX10-VLOOKUP($AX10,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX10,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX10,TaxBracket2,1),0,1,1)-$AI10-$AK10),IF($AX10<Setup!$C$21,($AX10*Setup!$D$21)-$AI10-$AK10,(($AX10-VLOOKUP($AX10,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX10,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX10,TaxBracket1,1),0,1,1)-$AI10-$AK10))))","v":10797},648,0.98039215686274506,1.9607843137254902E-2,183600]
[{"$f":"IF(ROW($A11)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B11,\"yyyy\")&TEXT($B11,\"mm\")&\"-\"&$C11)","v":"202303-EXS005"},{"$f":"IF(ROW($A11)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A11)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A11)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A11)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45010},{"$f":"IF(ROW($A11)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A11)-ROW($A$6)-IF(ROW($A11)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A11)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS005"},{"$f":"IF(ISNA(VLOOKUP($C11,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C11,EmpAll,COLUMN(Emp!$B$4),0))","v":"Miller R"},{"$f":"IF(ISNA(VLOOKUP($C11,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C11,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C11,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C11,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC11),MONTH($AC11)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C11,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC11),MONTH($AC11),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F11<>\"Active\",0,IF(COUNTIFS(OverEmp,$C11,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMIFS(OverValue,OverEmp,$C11,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1)),IF(AND($AC11>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C11)>0),SUMIFS(EmpIncrease,EmpCode,$C11),SUMIFS(EmpSalary,EmpCode,$C11))))","v":10000},{"$f":"IF($F11<>\"Active\",0,IF(COUNTIFS(OverEmp,$C11,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMIFS(OverValue,OverEmp,$C11,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1)),0))","v":0},{"$f":"IF($F11<>\"Active\",0,IF(COUNTIFS(OverEmp,$C11,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMIFS(OverValue,OverEmp,$C11,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1)),IF(MONTH(B11)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C11),0)))","v":0},{"$f":"IF($F11<>\"Active\",0,IF(COUNTIFS(OverEmp,$C11,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMIFS(OverValue,OverEmp,$C11,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1)),0))","v":0},{"$f":"IF($F11<>\"Active\",0,IF(COUNTIFS(OverEmp,$C11,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMIFS(OverValue,OverEmp,$C11,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C11,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMIFS(OverValue,OverEmp,$C11,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1)),(($BA11/12*$AA11)+(BB11*IF(1-$BC11=0,0,BD11/(1-$BC11))))-IF($F11=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC11,PayEmp,$C11)))","v":0},{"$f":"IF($F11=\"Terminated\",0,IF($AA11=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C11,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMIFS(OverValue,OverEmp,$C11,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA11)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA11,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11))))))","v":100},{"$f":"IF($F11=\"Terminated\",0,IF($AA11=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C11,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMIFS(OverValue,OverEmp,$C11,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA11)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA11,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11))))))","v":0},{"$f":"IF($F11=\"Terminated\",0,IF($AA11=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C11,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMIFS(OverValue,OverEmp,$C11,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA11)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA11,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11))))))","v":0},{"$f":"IF($F11=\"Terminated\",0,IF($AA11=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C11,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMIFS(OverValue,OverEmp,$C11,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA11)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA11,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11))))))","v":0},100,9900,{"$f":"IF($F11=\"Terminated\",0,IF($AA11=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C11,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMIFS(OverValue,OverEmp,$C11,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA11)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA11,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11)))))))","v":100},{"$f":"IF($F11=\"Terminated\",0,IF($AA11=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C11,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMIFS(OverValue,OverEmp,$C11,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA11)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA11,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11)))))))","v":100},{"$f":"IF($F11=\"Terminated\",0,IF($AA11=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C11,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMIFS(OverValue,OverEmp,$C11,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA11)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA11,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11)))))))","v":0},{"$f":"IF($F11=\"Terminated\",0,IF($AA11=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C11,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMIFS(OverValue,OverEmp,$C11,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA11)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA11,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC11,PayEmp,$C11)))))))","v":0},200,10200,300,{"$f":"IF(OR($B11<=Setup!$E$12,$B11>=Setup!$D$12+1),0,IF($F11<>\"Active\",0,IF($AE11=\"Yes\",$AB11,((YEAR($AC11)*12)+MONTH($AC11))-((YEAR($AD11)*12)+MONTH($AD11)-1))))","v":1},{"$f":"IF(OR($B11<=Setup!$E$12,$B11>=Setup!$D$12+1),0,((YEAR($AC11)*12)+MONTH($AC11))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":1},45010,{"$f":"IF(ISNA(VLOOKUP($C11,EmpAll,COLUMN(Emp!$E$4),0)),$AC11,IF(VLOOKUP($C11,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C11,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C11,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C11,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C11,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A11=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C11,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMIFS(OverValue,OverEmp,$C11,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1)),IF(ISNA(VLOOKUP($C11,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG11,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C11,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C11,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C11,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C11,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C11,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},120000,{"$f":"-IF($F11=\"Terminated\",0,IF($AA11=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C11,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA11*12)+(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB11/3,0))*4)+(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB11/6,0))*2)+(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F11=\"Terminated\",0,IF($AA11=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C11,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA11*12)+(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB11/3,0))*4)+(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB11/6,0))*2)+(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F11=\"Terminated\",0,IF($AA11=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C11,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA11*12)+(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB11/3,0))*4)+(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB11/6,0))*2)+(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F11=\"Terminated\",0,IF($AA11=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C11,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA11*12)+(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB11/3,0))*4)+(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB11/6,0))*2)+(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},120000,120000,{"$f":"-IF($F11=\"Terminated\",0,IF($AA11=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C11,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA11*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F11=\"Terminated\",0,IF($AA11=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C11,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA11*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F11=\"Terminated\",0,IF($AA11=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C11,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA11*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F11=\"Terminated\",0,IF($AA11=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C11,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC11),MONTH($AC11)+1,1),OverEnd,\">=\"&DATE(YEAR($AC11),MONTH($AC11),1))>0,SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA11*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C11)*(PayDate<=$AC11)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA11*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C11,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C11,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,0,{"$f":"IF(ISNUMBER($AL11),($AR11*$AL11)-$AI11-$AK11,MAX(0,IF($AL11=\"B\",IF($AR11<Setup!$C$32,($AR11*Setup!$D$32)-$AI11-$AK11,(($AR11-VLOOKUP($AR11,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR11,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR11,TaxBracket2,1),0,1,1)-$AI11-$AK11),IF($AR11<Setup!$C$21,($AR11*Setup!$D$21)-$AI11-$AK11,(($AR11-VLOOKUP($AR11,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR11,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR11,TaxBracket1,1),0,1,1)-$AI11-$AK11))))","v":0},{"$f":"IF(ISNUMBER($AL11),($AX11*$AL11)-$AI11-$AK11,MAX(0,IF($AL11=\"B\",IF($AX11<Setup!$C$32,($AX11*Setup!$D$32)-$AI11-$AK11,(($AX11-VLOOKUP($AX11,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX11,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX11,TaxBracket2,1),0,1,1)-$AI11-$AK11),IF($AX11<Setup!$C$21,($AX11*Setup!$D$21)-$AI11-$AK11,(($AX11-VLOOKUP($AX11,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX11,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX11,TaxBracket1,1),0,1,1)-$AI11-$AK11))))","v":0},0,1,0,120000]
[{"$f":"IF(ROW($A12)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B12,\"yyyy\")&TEXT($B12,\"mm\")&\"-\"&$C12)","v":"202303-EXS006"},{"$f":"IF(ROW($A12)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A12)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A12)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A12)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45010},{"$f":"IF(ROW($A12)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A12)-ROW($A$6)-IF(ROW($A12)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A12)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS006"},{"$f":"IF(ISNA(VLOOKUP($C12,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C12,EmpAll,COLUMN(Emp!$B$4),0))","v":"Andrews MS"},{"$f":"IF(ISNA(VLOOKUP($C12,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C12,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C12,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C12,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC12),MONTH($AC12)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C12,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC12),MONTH($AC12),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F12<>\"Active\",0,IF(COUNTIFS(OverEmp,$C12,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMIFS(OverValue,OverEmp,$C12,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1)),IF(AND($AC12>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C12)>0),SUMIFS(EmpIncrease,EmpCode,$C12),SUMIFS(EmpSalary,EmpCode,$C12))))","v":10000},{"$f":"IF($F12<>\"Active\",0,IF(COUNTIFS(OverEmp,$C12,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMIFS(OverValue,OverEmp,$C12,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1)),0))","v":0},{"$f":"IF($F12<>\"Active\",0,IF(COUNTIFS(OverEmp,$C12,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMIFS(OverValue,OverEmp,$C12,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1)),IF(MONTH(B12)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C12),0)))","v":0},{"$f":"IF($F12<>\"Active\",0,IF(COUNTIFS(OverEmp,$C12,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMIFS(OverValue,OverEmp,$C12,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1)),0))","v":0},{"$f":"IF($F12<>\"Active\",0,IF(COUNTIFS(OverEmp,$C12,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMIFS(OverValue,OverEmp,$C12,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C12,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMIFS(OverValue,OverEmp,$C12,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1)),(($BA12/12*$AA12)+(BB12*IF(1-$BC12=0,0,BD12/(1-$BC12))))-IF($F12=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC12,PayEmp,$C12)))","v":0},{"$f":"IF($F12=\"Terminated\",0,IF($AA12=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C12,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMIFS(OverValue,OverEmp,$C12,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA12)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA12,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12))))))","v":100},{"$f":"IF($F12=\"Terminated\",0,IF($AA12=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C12,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMIFS(OverValue,OverEmp,$C12,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA12)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA12,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12))))))","v":0},{"$f":"IF($F12=\"Terminated\",0,IF($AA12=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C12,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMIFS(OverValue,OverEmp,$C12,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA12)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA12,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12))))))","v":0},{"$f":"IF($F12=\"Terminated\",0,IF($AA12=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C12,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMIFS(OverValue,OverEmp,$C12,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA12)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA12,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12))))))","v":0},100,9900,{"$f":"IF($F12=\"Terminated\",0,IF($AA12=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C12,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMIFS(OverValue,OverEmp,$C12,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA12)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA12,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12)))))))","v":100},{"$f":"IF($F12=\"Terminated\",0,IF($AA12=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C12,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMIFS(OverValue,OverEmp,$C12,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA12)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA12,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12)))))))","v":100},{"$f":"IF($F12=\"Terminated\",0,IF($AA12=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C12,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMIFS(OverValue,OverEmp,$C12,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA12)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA12,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12)))))))","v":0},{"$f":"IF($F12=\"Terminated\",0,IF($AA12=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C12,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMIFS(OverValue,OverEmp,$C12,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA12)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA12,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC12,PayEmp,$C12)))))))","v":0},200,10200,300,{"$f":"IF(OR($B12<=Setup!$E$12,$B12>=Setup!$D$12+1),0,IF($F12<>\"Active\",0,IF($AE12=\"Yes\",$AB12,((YEAR($AC12)*12)+MONTH($AC12))-((YEAR($AD12)*12)+MONTH($AD12)-1))))","v":1},{"$f":"IF(OR($B12<=Setup!$E$12,$B12>=Setup!$D$12+1),0,((YEAR($AC12)*12)+MONTH($AC12))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":1},45010,{"$f":"IF(ISNA(VLOOKUP($C12,EmpAll,COLUMN(Emp!$E$4),0)),$AC12,IF(VLOOKUP($C12,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C12,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C12,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C12,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C12,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A12=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C12,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMIFS(OverValue,OverEmp,$C12,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1)),IF(ISNA(VLOOKUP($C12,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG12,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C12,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C12,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C12,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C12,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C12,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},120000,{"$f":"-IF($F12=\"Terminated\",0,IF($AA12=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C12,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA12*12)+(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB12/3,0))*4)+(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB12/6,0))*2)+(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F12=\"Terminated\",0,IF($AA12=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C12,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA12*12)+(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB12/3,0))*4)+(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB12/6,0))*2)+(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F12=\"Terminated\",0,IF($AA12=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C12,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA12*12)+(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB12/3,0))*4)+(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB12/6,0))*2)+(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F12=\"Terminated\",0,IF($AA12=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C12,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA12*12)+(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB12/3,0))*4)+(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB12/6,0))*2)+(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},120000,120000,{"$f":"-IF($F12=\"Terminated\",0,IF($AA12=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C12,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA12*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F12=\"Terminated\",0,IF($AA12=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C12,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA12*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F12=\"Terminated\",0,IF($AA12=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C12,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA12*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F12=\"Terminated\",0,IF($AA12=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C12,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC12),MONTH($AC12)+1,1),OverEnd,\">=\"&DATE(YEAR($AC12),MONTH($AC12),1))>0,SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA12*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C12)*(PayDate<=$AC12)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA12*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C12,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C12,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,0,{"$f":"IF(ISNUMBER($AL12),($AR12*$AL12)-$AI12-$AK12,MAX(0,IF($AL12=\"B\",IF($AR12<Setup!$C$32,($AR12*Setup!$D$32)-$AI12-$AK12,(($AR12-VLOOKUP($AR12,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR12,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR12,TaxBracket2,1),0,1,1)-$AI12-$AK12),IF($AR12<Setup!$C$21,($AR12*Setup!$D$21)-$AI12-$AK12,(($AR12-VLOOKUP($AR12,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR12,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR12,TaxBracket1,1),0,1,1)-$AI12-$AK12))))","v":0},{"$f":"IF(ISNUMBER($AL12),($AX12*$AL12)-$AI12-$AK12,MAX(0,IF($AL12=\"B\",IF($AX12<Setup!$C$32,($AX12*Setup!$D$32)-$AI12-$AK12,(($AX12-VLOOKUP($AX12,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX12,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX12,TaxBracket2,1),0,1,1)-$AI12-$AK12),IF($AX12<Setup!$C$21,($AX12*Setup!$D$21)-$AI12-$AK12,(($AX12-VLOOKUP($AX12,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX12,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX12,TaxBracket1,1),0,1,1)-$AI12-$AK12))))","v":0},0,1,0,120000]
[{"$f":"IF(ROW($A13)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B13,\"yyyy\")&TEXT($B13,\"mm\")&\"-\"&$C13)","v":"202303-EXS007"},{"$f":"IF(ROW($A13)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A13)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A13)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A13)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45010},{"$f":"IF(ROW($A13)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A13)-ROW($A$6)-IF(ROW($A13)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A13)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS007"},{"$f":"IF(ISNA(VLOOKUP($C13,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C13,EmpAll,COLUMN(Emp!$B$4),0))","v":"Phillips KE"},{"$f":"IF(ISNA(VLOOKUP($C13,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C13,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C13,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C13,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC13),MONTH($AC13)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C13,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC13),MONTH($AC13),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F13<>\"Active\",0,IF(COUNTIFS(OverEmp,$C13,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMIFS(OverValue,OverEmp,$C13,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1)),IF(AND($AC13>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C13)>0),SUMIFS(EmpIncrease,EmpCode,$C13),SUMIFS(EmpSalary,EmpCode,$C13))))","v":25000},{"$f":"IF($F13<>\"Active\",0,IF(COUNTIFS(OverEmp,$C13,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMIFS(OverValue,OverEmp,$C13,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1)),0))","v":0},{"$f":"IF($F13<>\"Active\",0,IF(COUNTIFS(OverEmp,$C13,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMIFS(OverValue,OverEmp,$C13,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1)),IF(MONTH(B13)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C13),0)))","v":0},{"$f":"IF($F13<>\"Active\",0,IF(COUNTIFS(OverEmp,$C13,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMIFS(OverValue,OverEmp,$C13,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1)),0))","v":0},{"$f":"IF($F13<>\"Active\",0,IF(COUNTIFS(OverEmp,$C13,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMIFS(OverValue,OverEmp,$C13,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1)),0))","v":0},25000,{"$f":"IF(COUNTIFS(OverEmp,$C13,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMIFS(OverValue,OverEmp,$C13,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1)),(($BA13/12*$AA13)+(BB13*IF(1-$BC13=0,0,BD13/(1-$BC13))))-IF($F13=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC13,PayEmp,$C13)))","v":3483.0833333333335},{"$f":"IF($F13=\"Terminated\",0,IF($AA13=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C13,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMIFS(OverValue,OverEmp,$C13,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA13)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA13,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13))))))","v":177.12},{"$f":"IF($F13=\"Terminated\",0,IF($AA13=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C13,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMIFS(OverValue,OverEmp,$C13,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA13)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA13,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13))))))","v":0},{"$f":"IF($F13=\"Terminated\",0,IF($AA13=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C13,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMIFS(OverValue,OverEmp,$C13,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA13)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA13,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13))))))","v":0},{"$f":"IF($F13=\"Terminated\",0,IF($AA13=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C13,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMIFS(OverValue,OverEmp,$C13,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA13)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA13,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13))))))","v":0},3660.2033333333334,21339.8,{"$f":"IF($F13=\"Terminated\",0,IF($AA13=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C13,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMIFS(OverValue,OverEmp,$C13,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA13)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA13,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13)))))))","v":177.12},{"$f":"IF($F13=\"Terminated\",0,IF($AA13=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C13,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMIFS(OverValue,OverEmp,$C13,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA13)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA13,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13)))))))","v":250},{"$f":"IF($F13=\"Terminated\",0,IF($AA13=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C13,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMIFS(OverValue,OverEmp,$C13,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA13)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA13,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13)))))))","v":0},{"$f":"IF($F13=\"Terminated\",0,IF($AA13=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C13,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMIFS(OverValue,OverEmp,$C13,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA13)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA13,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC13,PayEmp,$C13)))))))","v":0},427.12,25427.119999999999,4087.32,{"$f":"IF(OR($B13<=Setup!$E$12,$B13>=Setup!$D$12+1),0,IF($F13<>\"Active\",0,IF($AE13=\"Yes\",$AB13,((YEAR($AC13)*12)+MONTH($AC13))-((YEAR($AD13)*12)+MONTH($AD13)-1))))","v":1},{"$f":"IF(OR($B13<=Setup!$E$12,$B13>=Setup!$D$12+1),0,((YEAR($AC13)*12)+MONTH($AC13))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":1},45010,{"$f":"IF(ISNA(VLOOKUP($C13,EmpAll,COLUMN(Emp!$E$4),0)),$AC13,IF(VLOOKUP($C13,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C13,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C13,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C13,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C13,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A13=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C13,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMIFS(OverValue,OverEmp,$C13,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1)),IF(ISNA(VLOOKUP($C13,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG13,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C13,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C13,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C13,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C13,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C13,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},300000,{"$f":"-IF($F13=\"Terminated\",0,IF($AA13=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C13,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA13*12)+(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB13/3,0))*4)+(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB13/6,0))*2)+(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F13=\"Terminated\",0,IF($AA13=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C13,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA13*12)+(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB13/3,0))*4)+(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB13/6,0))*2)+(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F13=\"Terminated\",0,IF($AA13=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C13,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA13*12)+(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB13/3,0))*4)+(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB13/6,0))*2)+(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F13=\"Terminated\",0,IF($AA13=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C13,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA13*12)+(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB13/3,0))*4)+(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB13/6,0))*2)+(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},300000,300000,{"$f":"-IF($F13=\"Terminated\",0,IF($AA13=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C13,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA13*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F13=\"Terminated\",0,IF($AA13=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C13,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA13*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F13=\"Terminated\",0,IF($AA13=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C13,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA13*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F13=\"Terminated\",0,IF($AA13=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C13,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC13),MONTH($AC13)+1,1),OverEnd,\">=\"&DATE(YEAR($AC13),MONTH($AC13),1))>0,SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA13*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C13)*(PayDate<=$AC13)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA13*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C13,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C13,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},300000,0,{"$f":"IF(ISNUMBER($AL13),($AR13*$AL13)-$AI13-$AK13,MAX(0,IF($AL13=\"B\",IF($AR13<Setup!$C$32,($AR13*Setup!$D$32)-$AI13-$AK13,(($AR13-VLOOKUP($AR13,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR13,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR13,TaxBracket2,1),0,1,1)-$AI13-$AK13),IF($AR13<Setup!$C$21,($AR13*Setup!$D$21)-$AI13-$AK13,(($AR13-VLOOKUP($AR13,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR13,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR13,TaxBracket1,1),0,1,1)-$AI13-$AK13))))","v":41797},{"$f":"IF(ISNUMBER($AL13),($AX13*$AL13)-$AI13-$AK13,MAX(0,IF($AL13=\"B\",IF($AX13<Setup!$C$32,($AX13*Setup!$D$32)-$AI13-$AK13,(($AX13-VLOOKUP($AX13,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX13,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX13,TaxBracket2,1),0,1,1)-$AI13-$AK13),IF($AX13<Setup!$C$21,($AX13*Setup!$D$21)-$AI13-$AK13,(($AX13-VLOOKUP($AX13,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX13,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX13,TaxBracket1,1),0,1,1)-$AI13-$AK13))))","v":41797},0,1,0,300000]
[{"$f":"IF(ROW($A14)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B14,\"yyyy\")&TEXT($B14,\"mm\")&\"-\"&$C14)","v":"202303-EXS008"},{"$f":"IF(ROW($A14)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A14)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A14)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A14)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45010},{"$f":"IF(ROW($A14)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A14)-ROW($A$6)-IF(ROW($A14)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A14)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS008"},{"$f":"IF(ISNA(VLOOKUP($C14,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C14,EmpAll,COLUMN(Emp!$B$4),0))","v":"Matthews B"},{"$f":"IF(ISNA(VLOOKUP($C14,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C14,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C14,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C14,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC14),MONTH($AC14)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C14,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC14),MONTH($AC14),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F14<>\"Active\",0,IF(COUNTIFS(OverEmp,$C14,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMIFS(OverValue,OverEmp,$C14,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1)),IF(AND($AC14>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C14)>0),SUMIFS(EmpIncrease,EmpCode,$C14),SUMIFS(EmpSalary,EmpCode,$C14))))","v":9000},{"$f":"IF($F14<>\"Active\",0,IF(COUNTIFS(OverEmp,$C14,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMIFS(OverValue,OverEmp,$C14,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1)),0))","v":0},{"$f":"IF($F14<>\"Active\",0,IF(COUNTIFS(OverEmp,$C14,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMIFS(OverValue,OverEmp,$C14,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1)),IF(MONTH(B14)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C14),0)))","v":0},{"$f":"IF($F14<>\"Active\",0,IF(COUNTIFS(OverEmp,$C14,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMIFS(OverValue,OverEmp,$C14,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1)),0))","v":0},{"$f":"IF($F14<>\"Active\",0,IF(COUNTIFS(OverEmp,$C14,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMIFS(OverValue,OverEmp,$C14,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C14,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMIFS(OverValue,OverEmp,$C14,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1)),(($BA14/12*$AA14)+(BB14*IF(1-$BC14=0,0,BD14/(1-$BC14))))-IF($F14=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC14,PayEmp,$C14)))","v":183.75},{"$f":"IF($F14=\"Terminated\",0,IF($AA14=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C14,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMIFS(OverValue,OverEmp,$C14,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA14)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA14,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14))))))","v":90},{"$f":"IF($F14=\"Terminated\",0,IF($AA14=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C14,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMIFS(OverValue,OverEmp,$C14,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA14)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA14,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14))))))","v":0},{"$f":"IF($F14=\"Terminated\",0,IF($AA14=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C14,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMIFS(OverValue,OverEmp,$C14,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA14)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA14,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14))))))","v":0},{"$f":"IF($F14=\"Terminated\",0,IF($AA14=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C14,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMIFS(OverValue,OverEmp,$C14,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA14)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA14,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14))))))","v":0},273.75,8726.25,{"$f":"IF($F14=\"Terminated\",0,IF($AA14=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C14,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMIFS(OverValue,OverEmp,$C14,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA14)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA14,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14)))))))","v":90},{"$f":"IF($F14=\"Terminated\",0,IF($AA14=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C14,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMIFS(OverValue,OverEmp,$C14,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA14)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA14,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14)))))))","v":90},{"$f":"IF($F14=\"Terminated\",0,IF($AA14=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C14,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMIFS(OverValue,OverEmp,$C14,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA14)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA14,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14)))))))","v":0},{"$f":"IF($F14=\"Terminated\",0,IF($AA14=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C14,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMIFS(OverValue,OverEmp,$C14,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA14)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA14,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC14,PayEmp,$C14)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B14<=Setup!$E$12,$B14>=Setup!$D$12+1),0,IF($F14<>\"Active\",0,IF($AE14=\"Yes\",$AB14,((YEAR($AC14)*12)+MONTH($AC14))-((YEAR($AD14)*12)+MONTH($AD14)-1))))","v":1},{"$f":"IF(OR($B14<=Setup!$E$12,$B14>=Setup!$D$12+1),0,((YEAR($AC14)*12)+MONTH($AC14))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":1},45010,{"$f":"IF(ISNA(VLOOKUP($C14,EmpAll,COLUMN(Emp!$E$4),0)),$AC14,IF(VLOOKUP($C14,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C14,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C14,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C14,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C14,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A14=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C14,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMIFS(OverValue,OverEmp,$C14,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1)),IF(ISNA(VLOOKUP($C14,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG14,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C14,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C14,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C14,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C14,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C14,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F14=\"Terminated\",0,IF($AA14=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C14,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA14*12)+(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB14/3,0))*4)+(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB14/6,0))*2)+(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F14=\"Terminated\",0,IF($AA14=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C14,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA14*12)+(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB14/3,0))*4)+(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB14/6,0))*2)+(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F14=\"Terminated\",0,IF($AA14=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C14,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA14*12)+(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB14/3,0))*4)+(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB14/6,0))*2)+(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F14=\"Terminated\",0,IF($AA14=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C14,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA14*12)+(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB14/3,0))*4)+(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB14/6,0))*2)+(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F14=\"Terminated\",0,IF($AA14=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C14,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA14*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F14=\"Terminated\",0,IF($AA14=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C14,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA14*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F14=\"Terminated\",0,IF($AA14=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C14,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA14*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F14=\"Terminated\",0,IF($AA14=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C14,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC14),MONTH($AC14)+1,1),OverEnd,\">=\"&DATE(YEAR($AC14),MONTH($AC14),1))>0,SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA14*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C14)*(PayDate<=$AC14)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA14*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C14,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C14,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL14),($AR14*$AL14)-$AI14-$AK14,MAX(0,IF($AL14=\"B\",IF($AR14<Setup!$C$32,($AR14*Setup!$D$32)-$AI14-$AK14,(($AR14-VLOOKUP($AR14,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR14,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR14,TaxBracket2,1),0,1,1)-$AI14-$AK14),IF($AR14<Setup!$C$21,($AR14*Setup!$D$21)-$AI14-$AK14,(($AR14-VLOOKUP($AR14,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR14,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR14,TaxBracket1,1),0,1,1)-$AI14-$AK14))))","v":2205},{"$f":"IF(ISNUMBER($AL14),($AX14*$AL14)-$AI14-$AK14,MAX(0,IF($AL14=\"B\",IF($AX14<Setup!$C$32,($AX14*Setup!$D$32)-$AI14-$AK14,(($AX14-VLOOKUP($AX14,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX14,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX14,TaxBracket2,1),0,1,1)-$AI14-$AK14),IF($AX14<Setup!$C$21,($AX14*Setup!$D$21)-$AI14-$AK14,(($AX14-VLOOKUP($AX14,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX14,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX14,TaxBracket1,1),0,1,1)-$AI14-$AK14))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A15)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B15,\"yyyy\")&TEXT($B15,\"mm\")&\"-\"&$C15)","v":"202303-EXS009"},{"$f":"IF(ROW($A15)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A15)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A15)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A15)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45010},{"$f":"IF(ROW($A15)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A15)-ROW($A$6)-IF(ROW($A15)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A15)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS009"},{"$f":"IF(ISNA(VLOOKUP($C15,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C15,EmpAll,COLUMN(Emp!$B$4),0))","v":"Brown JT"},{"$f":"IF(ISNA(VLOOKUP($C15,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C15,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C15,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C15,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC15),MONTH($AC15)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C15,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC15),MONTH($AC15),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F15<>\"Active\",0,IF(COUNTIFS(OverEmp,$C15,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMIFS(OverValue,OverEmp,$C15,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1)),IF(AND($AC15>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C15)>0),SUMIFS(EmpIncrease,EmpCode,$C15),SUMIFS(EmpSalary,EmpCode,$C15))))","v":9000},{"$f":"IF($F15<>\"Active\",0,IF(COUNTIFS(OverEmp,$C15,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMIFS(OverValue,OverEmp,$C15,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1)),0))","v":0},{"$f":"IF($F15<>\"Active\",0,IF(COUNTIFS(OverEmp,$C15,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMIFS(OverValue,OverEmp,$C15,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1)),IF(MONTH(B15)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C15),0)))","v":0},{"$f":"IF($F15<>\"Active\",0,IF(COUNTIFS(OverEmp,$C15,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMIFS(OverValue,OverEmp,$C15,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1)),0))","v":0},{"$f":"IF($F15<>\"Active\",0,IF(COUNTIFS(OverEmp,$C15,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMIFS(OverValue,OverEmp,$C15,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C15,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMIFS(OverValue,OverEmp,$C15,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1)),(($BA15/12*$AA15)+(BB15*IF(1-$BC15=0,0,BD15/(1-$BC15))))-IF($F15=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC15,PayEmp,$C15)))","v":183.75},{"$f":"IF($F15=\"Terminated\",0,IF($AA15=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C15,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMIFS(OverValue,OverEmp,$C15,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA15)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA15,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15))))))","v":90},{"$f":"IF($F15=\"Terminated\",0,IF($AA15=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C15,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMIFS(OverValue,OverEmp,$C15,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA15)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA15,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15))))))","v":0},{"$f":"IF($F15=\"Terminated\",0,IF($AA15=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C15,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMIFS(OverValue,OverEmp,$C15,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA15)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA15,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15))))))","v":0},{"$f":"IF($F15=\"Terminated\",0,IF($AA15=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C15,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMIFS(OverValue,OverEmp,$C15,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA15)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA15,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15))))))","v":0},273.75,8726.25,{"$f":"IF($F15=\"Terminated\",0,IF($AA15=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C15,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMIFS(OverValue,OverEmp,$C15,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA15)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA15,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15)))))))","v":90},{"$f":"IF($F15=\"Terminated\",0,IF($AA15=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C15,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMIFS(OverValue,OverEmp,$C15,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA15)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA15,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15)))))))","v":90},{"$f":"IF($F15=\"Terminated\",0,IF($AA15=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C15,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMIFS(OverValue,OverEmp,$C15,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA15)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA15,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15)))))))","v":0},{"$f":"IF($F15=\"Terminated\",0,IF($AA15=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C15,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMIFS(OverValue,OverEmp,$C15,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA15)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA15,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC15,PayEmp,$C15)))))))","v":0},{"$f":"SUM(OFFSET($T15,0,0,1,COLUMN($X$6)-COLUMN($T$7)))","v":180},9180,{"$f":"ROUND(SUM(R15,X15),2)","v":453.75},{"$f":"IF(OR($B15<=Setup!$E$12,$B15>=Setup!$D$12+1),0,IF($F15<>\"Active\",0,IF($AE15=\"Yes\",$AB15,((YEAR($AC15)*12)+MONTH($AC15))-((YEAR($AD15)*12)+MONTH($AD15)-1))))","v":1},{"$f":"IF(OR($B15<=Setup!$E$12,$B15>=Setup!$D$12+1),0,((YEAR($AC15)*12)+MONTH($AC15))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":1},{"$f":"DATE(YEAR($B15),MONTH($B15),DAY($B15))","v":45010},{"$f":"IF(ISNA(VLOOKUP($C15,EmpAll,COLUMN(Emp!$E$4),0)),$AC15,IF(VLOOKUP($C15,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C15,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C15,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C15,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C15,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A15=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C15,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMIFS(OverValue,OverEmp,$C15,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1)),IF(ISNA(VLOOKUP($C15,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG15,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C15,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C15,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($AJ15,RebateList,4,0)),VLOOKUP(\"A\",RebateList,3,0),VLOOKUP($AJ15,RebateList,4,0))","v":17235},{"$f":"IF(ISNA(VLOOKUP($C15,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C15,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C15,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F15=\"Terminated\",0,IF($AA15=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C15,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA15*12)+(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB15/3,0))*4)+(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB15/6,0))*2)+(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F15=\"Terminated\",0,IF($AA15=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C15,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA15*12)+(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB15/3,0))*4)+(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB15/6,0))*2)+(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F15=\"Terminated\",0,IF($AA15=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C15,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA15*12)+(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB15/3,0))*4)+(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB15/6,0))*2)+(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F15=\"Terminated\",0,IF($AA15=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C15,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA15*12)+(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB15/3,0))*4)+(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB15/6,0))*2)+(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},{"$f":"$AM15+SUM(OFFSET($AM15,0,1,1,COLUMN($AR$2)-COLUMN($AM$2)-1))","v":108000},108000,{"$f":"-IF($F15=\"Terminated\",0,IF($AA15=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C15,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA15*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F15=\"Terminated\",0,IF($AA15=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C15,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA15*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F15=\"Terminated\",0,IF($AA15=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C15,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA15*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F15=\"Terminated\",0,IF($AA15=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C15,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC15),MONTH($AC15)+1,1),OverEnd,\">=\"&DATE(YEAR($AC15),MONTH($AC15),1))>0,SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA15*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C15)*(PayDate<=$AC15)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA15*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C15,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C15,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL15),($AR15*$AL15)-$AI15-$AK15,MAX(0,IF($AL15=\"B\",IF($AR15<Setup!$C$32,($AR15*Setup!$D$32)-$AI15-$AK15,(($AR15-VLOOKUP($AR15,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR15,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR15,TaxBracket2,1),0,1,1)-$AI15-$AK15),IF($AR15<Setup!$C$21,($AR15*Setup!$D$21)-$AI15-$AK15,(($AR15-VLOOKUP($AR15,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR15,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR15,TaxBracket1,1),0,1,1)-$AI15-$AK15))))","v":2205},{"$f":"IF(ISNUMBER($AL15),($AX15*$AL15)-$AI15-$AK15,MAX(0,IF($AL15=\"B\",IF($AX15<Setup!$C$32,($AX15*Setup!$D$32)-$AI15-$AK15,(($AX15-VLOOKUP($AX15,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX15,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX15,TaxBracket2,1),0,1,1)-$AI15-$AK15),IF($AX15<Setup!$C$21,($AX15*Setup!$D$21)-$AI15-$AK15,(($AX15-VLOOKUP($AX15,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX15,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX15,TaxBracket1,1),0,1,1)-$AI15-$AK15))))","v":2205},{"$f":"AZ15-BA15","v":0},1,0,108000]
[{"$f":"IF(ROW($A16)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B16,\"yyyy\")&TEXT($B16,\"mm\")&\"-\"&$C16)","v":"202303-EXS010"},{"$f":"IF(ROW($A16)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A16)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A16)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A16)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45010},{"$f":"IF(ROW($A16)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A16)-ROW($A$6)-IF(ROW($A16)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A16)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS010"},{"$f":"IF(ISNA(VLOOKUP($C16,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C16,EmpAll,COLUMN(Emp!$B$4),0))","v":"Lewis I"},{"$f":"IF(ISNA(VLOOKUP($C16,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C16,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C16,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C16,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC16),MONTH($AC16)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C16,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC16),MONTH($AC16),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F16<>\"Active\",0,IF(COUNTIFS(OverEmp,$C16,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMIFS(OverValue,OverEmp,$C16,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1)),IF(AND($AC16>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C16)>0),SUMIFS(EmpIncrease,EmpCode,$C16),SUMIFS(EmpSalary,EmpCode,$C16))))","v":9000},{"$f":"IF($F16<>\"Active\",0,IF(COUNTIFS(OverEmp,$C16,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMIFS(OverValue,OverEmp,$C16,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1)),0))","v":0},{"$f":"IF($F16<>\"Active\",0,IF(COUNTIFS(OverEmp,$C16,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMIFS(OverValue,OverEmp,$C16,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1)),IF(MONTH(B16)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C16),0)))","v":0},{"$f":"IF($F16<>\"Active\",0,IF(COUNTIFS(OverEmp,$C16,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMIFS(OverValue,OverEmp,$C16,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1)),0))","v":0},{"$f":"IF($F16<>\"Active\",0,IF(COUNTIFS(OverEmp,$C16,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMIFS(OverValue,OverEmp,$C16,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C16,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMIFS(OverValue,OverEmp,$C16,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1)),(($BA16/12*$AA16)+(BB16*IF(1-$BC16=0,0,BD16/(1-$BC16))))-IF($F16=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC16,PayEmp,$C16)))","v":183.75},{"$f":"IF($F16=\"Terminated\",0,IF($AA16=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C16,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMIFS(OverValue,OverEmp,$C16,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA16)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA16,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16))))))","v":90},{"$f":"IF($F16=\"Terminated\",0,IF($AA16=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C16,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMIFS(OverValue,OverEmp,$C16,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA16)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA16,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16))))))","v":0},{"$f":"IF($F16=\"Terminated\",0,IF($AA16=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C16,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMIFS(OverValue,OverEmp,$C16,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA16)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA16,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16))))))","v":0},{"$f":"IF($F16=\"Terminated\",0,IF($AA16=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C16,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMIFS(OverValue,OverEmp,$C16,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA16)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA16,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16))))))","v":0},273.75,8726.25,{"$f":"IF($F16=\"Terminated\",0,IF($AA16=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C16,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMIFS(OverValue,OverEmp,$C16,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA16)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA16,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16)))))))","v":90},{"$f":"IF($F16=\"Terminated\",0,IF($AA16=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C16,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMIFS(OverValue,OverEmp,$C16,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA16)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA16,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16)))))))","v":90},{"$f":"IF($F16=\"Terminated\",0,IF($AA16=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C16,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMIFS(OverValue,OverEmp,$C16,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA16)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA16,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16)))))))","v":0},{"$f":"IF($F16=\"Terminated\",0,IF($AA16=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C16,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMIFS(OverValue,OverEmp,$C16,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA16)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA16,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC16,PayEmp,$C16)))))))","v":0},{"$f":"SUM(OFFSET($T16,0,0,1,COLUMN($X$6)-COLUMN($T$7)))","v":180},9180,{"$f":"ROUND(SUM(R16,X16),2)","v":453.75},{"$f":"IF(OR($B16<=Setup!$E$12,$B16>=Setup!$D$12+1),0,IF($F16<>\"Active\",0,IF($AE16=\"Yes\",$AB16,((YEAR($AC16)*12)+MONTH($AC16))-((YEAR($AD16)*12)+MONTH($AD16)-1))))","v":1},{"$f":"IF(OR($B16<=Setup!$E$12,$B16>=Setup!$D$12+1),0,((YEAR($AC16)*12)+MONTH($AC16))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":1},{"$f":"DATE(YEAR($B16),MONTH($B16),DAY($B16))","v":45010},{"$f":"IF(ISNA(VLOOKUP($C16,EmpAll,COLUMN(Emp!$E$4),0)),$AC16,IF(VLOOKUP($C16,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C16,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C16,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C16,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C16,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A16=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C16,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMIFS(OverValue,OverEmp,$C16,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1)),IF(ISNA(VLOOKUP($C16,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG16,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C16,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C16,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($AJ16,RebateList,4,0)),VLOOKUP(\"A\",RebateList,3,0),VLOOKUP($AJ16,RebateList,4,0))","v":17235},{"$f":"IF(ISNA(VLOOKUP($C16,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C16,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C16,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F16=\"Terminated\",0,IF($AA16=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C16,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA16*12)+(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB16/3,0))*4)+(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB16/6,0))*2)+(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F16=\"Terminated\",0,IF($AA16=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C16,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA16*12)+(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB16/3,0))*4)+(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB16/6,0))*2)+(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F16=\"Terminated\",0,IF($AA16=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C16,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA16*12)+(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB16/3,0))*4)+(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB16/6,0))*2)+(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F16=\"Terminated\",0,IF($AA16=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C16,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA16*12)+(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB16/3,0))*4)+(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB16/6,0))*2)+(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},{"$f":"$AM16+SUM(OFFSET($AM16,0,1,1,COLUMN($AR$2)-COLUMN($AM$2)-1))","v":108000},108000,{"$f":"-IF($F16=\"Terminated\",0,IF($AA16=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C16,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA16*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F16=\"Terminated\",0,IF($AA16=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C16,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA16*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F16=\"Terminated\",0,IF($AA16=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C16,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA16*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F16=\"Terminated\",0,IF($AA16=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C16,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC16),MONTH($AC16)+1,1),OverEnd,\">=\"&DATE(YEAR($AC16),MONTH($AC16),1))>0,SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA16*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C16)*(PayDate<=$AC16)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA16*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C16,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C16,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL16),($AR16*$AL16)-$AI16-$AK16,MAX(0,IF($AL16=\"B\",IF($AR16<Setup!$C$32,($AR16*Setup!$D$32)-$AI16-$AK16,(($AR16-VLOOKUP($AR16,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR16,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR16,TaxBracket2,1),0,1,1)-$AI16-$AK16),IF($AR16<Setup!$C$21,($AR16*Setup!$D$21)-$AI16-$AK16,(($AR16-VLOOKUP($AR16,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR16,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR16,TaxBracket1,1),0,1,1)-$AI16-$AK16))))","v":2205},{"$f":"IF(ISNUMBER($AL16),($AX16*$AL16)-$AI16-$AK16,MAX(0,IF($AL16=\"B\",IF($AX16<Setup!$C$32,($AX16*Setup!$D$32)-$AI16-$AK16,(($AX16-VLOOKUP($AX16,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX16,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX16,TaxBracket2,1),0,1,1)-$AI16-$AK16),IF($AX16<Setup!$C$21,($AX16*Setup!$D$21)-$AI16-$AK16,(($AX16-VLOOKUP($AX16,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX16,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX16,TaxBracket1,1),0,1,1)-$AI16-$AK16))))","v":2205},{"$f":"AZ16-BA16","v":0},1,0,108000]
[{"$f":"IF(ROW($A17)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B17,\"yyyy\")&TEXT($B17,\"mm\")&\"-\"&$C17)","v":"202303-EXS011"},{"$f":"IF(ROW($A17)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A17)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A17)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A17)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45010},{"$f":"IF(ROW($A17)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A17)-ROW($A$6)-IF(ROW($A17)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A17)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS011"},{"$f":"IF(ISNA(VLOOKUP($C17,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C17,EmpAll,COLUMN(Emp!$B$4),0))","v":"Newport GD"},{"$f":"IF(ISNA(VLOOKUP($C17,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C17,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C17,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C17,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC17),MONTH($AC17)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C17,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC17),MONTH($AC17),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F17<>\"Active\",0,IF(COUNTIFS(OverEmp,$C17,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMIFS(OverValue,OverEmp,$C17,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1)),IF(AND($AC17>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C17)>0),SUMIFS(EmpIncrease,EmpCode,$C17),SUMIFS(EmpSalary,EmpCode,$C17))))","v":5000},{"$f":"IF($F17<>\"Active\",0,IF(COUNTIFS(OverEmp,$C17,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMIFS(OverValue,OverEmp,$C17,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1)),0))","v":0},{"$f":"IF($F17<>\"Active\",0,IF(COUNTIFS(OverEmp,$C17,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMIFS(OverValue,OverEmp,$C17,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1)),IF(MONTH(B17)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C17),0)))","v":0},{"$f":"IF($F17<>\"Active\",0,IF(COUNTIFS(OverEmp,$C17,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMIFS(OverValue,OverEmp,$C17,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1)),0))","v":0},{"$f":"IF($F17<>\"Active\",0,IF(COUNTIFS(OverEmp,$C17,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMIFS(OverValue,OverEmp,$C17,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C17,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMIFS(OverValue,OverEmp,$C17,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1)),(($BA17/12*$AA17)+(BB17*IF(1-$BC17=0,0,BD17/(1-$BC17))))-IF($F17=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC17,PayEmp,$C17)))","v":0},{"$f":"IF($F17=\"Terminated\",0,IF($AA17=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C17,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMIFS(OverValue,OverEmp,$C17,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA17)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA17,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17))))))","v":50},{"$f":"IF($F17=\"Terminated\",0,IF($AA17=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C17,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMIFS(OverValue,OverEmp,$C17,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA17)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA17,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17))))))","v":0},{"$f":"IF($F17=\"Terminated\",0,IF($AA17=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C17,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMIFS(OverValue,OverEmp,$C17,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA17)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA17,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17))))))","v":0},{"$f":"IF($F17=\"Terminated\",0,IF($AA17=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C17,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMIFS(OverValue,OverEmp,$C17,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA17)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA17,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17))))))","v":0},50,4950,{"$f":"IF($F17=\"Terminated\",0,IF($AA17=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C17,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMIFS(OverValue,OverEmp,$C17,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA17)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA17,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17)))))))","v":50},{"$f":"IF($F17=\"Terminated\",0,IF($AA17=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C17,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMIFS(OverValue,OverEmp,$C17,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA17)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA17,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17)))))))","v":50},{"$f":"IF($F17=\"Terminated\",0,IF($AA17=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C17,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMIFS(OverValue,OverEmp,$C17,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA17)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA17,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17)))))))","v":0},{"$f":"IF($F17=\"Terminated\",0,IF($AA17=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C17,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMIFS(OverValue,OverEmp,$C17,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA17)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA17,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC17,PayEmp,$C17)))))))","v":0},100,5100,150,{"$f":"IF(OR($B17<=Setup!$E$12,$B17>=Setup!$D$12+1),0,IF($F17<>\"Active\",0,IF($AE17=\"Yes\",$AB17,((YEAR($AC17)*12)+MONTH($AC17))-((YEAR($AD17)*12)+MONTH($AD17)-1))))","v":1},{"$f":"IF(OR($B17<=Setup!$E$12,$B17>=Setup!$D$12+1),0,((YEAR($AC17)*12)+MONTH($AC17))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":1},45010,{"$f":"IF(ISNA(VLOOKUP($C17,EmpAll,COLUMN(Emp!$E$4),0)),$AC17,IF(VLOOKUP($C17,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C17,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C17,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C17,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C17,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A17=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C17,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMIFS(OverValue,OverEmp,$C17,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1)),IF(ISNA(VLOOKUP($C17,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG17,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C17,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C17,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C17,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C17,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C17,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F17=\"Terminated\",0,IF($AA17=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C17,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA17*12)+(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB17/3,0))*4)+(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB17/6,0))*2)+(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F17=\"Terminated\",0,IF($AA17=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C17,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA17*12)+(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB17/3,0))*4)+(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB17/6,0))*2)+(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F17=\"Terminated\",0,IF($AA17=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C17,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA17*12)+(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB17/3,0))*4)+(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB17/6,0))*2)+(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F17=\"Terminated\",0,IF($AA17=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C17,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA17*12)+(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB17/3,0))*4)+(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB17/6,0))*2)+(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F17=\"Terminated\",0,IF($AA17=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C17,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA17*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F17=\"Terminated\",0,IF($AA17=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C17,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA17*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F17=\"Terminated\",0,IF($AA17=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C17,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA17*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F17=\"Terminated\",0,IF($AA17=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C17,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC17),MONTH($AC17)+1,1),OverEnd,\">=\"&DATE(YEAR($AC17),MONTH($AC17),1))>0,SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA17*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C17)*(PayDate<=$AC17)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA17*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C17,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C17,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL17),($AR17*$AL17)-$AI17-$AK17,MAX(0,IF($AL17=\"B\",IF($AR17<Setup!$C$32,($AR17*Setup!$D$32)-$AI17-$AK17,(($AR17-VLOOKUP($AR17,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR17,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR17,TaxBracket2,1),0,1,1)-$AI17-$AK17),IF($AR17<Setup!$C$21,($AR17*Setup!$D$21)-$AI17-$AK17,(($AR17-VLOOKUP($AR17,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR17,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR17,TaxBracket1,1),0,1,1)-$AI17-$AK17))))","v":0},{"$f":"IF(ISNUMBER($AL17),($AX17*$AL17)-$AI17-$AK17,MAX(0,IF($AL17=\"B\",IF($AX17<Setup!$C$32,($AX17*Setup!$D$32)-$AI17-$AK17,(($AX17-VLOOKUP($AX17,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX17,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX17,TaxBracket2,1),0,1,1)-$AI17-$AK17),IF($AX17<Setup!$C$21,($AX17*Setup!$D$21)-$AI17-$AK17,(($AX17-VLOOKUP($AX17,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX17,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX17,TaxBracket1,1),0,1,1)-$AI17-$AK17))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A18)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B18,\"yyyy\")&TEXT($B18,\"mm\")&\"-\"&$C18)","v":"202303-EXS012"},{"$f":"IF(ROW($A18)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A18)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A18)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A18)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45010},{"$f":"IF(ROW($A18)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A18)-ROW($A$6)-IF(ROW($A18)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A18)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS012"},{"$f":"IF(ISNA(VLOOKUP($C18,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C18,EmpAll,COLUMN(Emp!$B$4),0))","v":"Williams VS"},{"$f":"IF(ISNA(VLOOKUP($C18,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C18,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C18,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C18,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC18),MONTH($AC18)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C18,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC18),MONTH($AC18),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F18<>\"Active\",0,IF(COUNTIFS(OverEmp,$C18,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMIFS(OverValue,OverEmp,$C18,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1)),IF(AND($AC18>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C18)>0),SUMIFS(EmpIncrease,EmpCode,$C18),SUMIFS(EmpSalary,EmpCode,$C18))))","v":5000},{"$f":"IF($F18<>\"Active\",0,IF(COUNTIFS(OverEmp,$C18,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMIFS(OverValue,OverEmp,$C18,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1)),0))","v":0},{"$f":"IF($F18<>\"Active\",0,IF(COUNTIFS(OverEmp,$C18,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMIFS(OverValue,OverEmp,$C18,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1)),IF(MONTH(B18)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C18),0)))","v":0},{"$f":"IF($F18<>\"Active\",0,IF(COUNTIFS(OverEmp,$C18,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMIFS(OverValue,OverEmp,$C18,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1)),0))","v":0},{"$f":"IF($F18<>\"Active\",0,IF(COUNTIFS(OverEmp,$C18,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMIFS(OverValue,OverEmp,$C18,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C18,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMIFS(OverValue,OverEmp,$C18,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1)),(($BA18/12*$AA18)+(BB18*IF(1-$BC18=0,0,BD18/(1-$BC18))))-IF($F18=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC18,PayEmp,$C18)))","v":0},{"$f":"IF($F18=\"Terminated\",0,IF($AA18=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C18,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMIFS(OverValue,OverEmp,$C18,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA18)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA18,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18))))))","v":50},{"$f":"IF($F18=\"Terminated\",0,IF($AA18=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C18,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMIFS(OverValue,OverEmp,$C18,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA18)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA18,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18))))))","v":0},{"$f":"IF($F18=\"Terminated\",0,IF($AA18=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C18,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMIFS(OverValue,OverEmp,$C18,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA18)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA18,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18))))))","v":0},{"$f":"IF($F18=\"Terminated\",0,IF($AA18=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C18,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMIFS(OverValue,OverEmp,$C18,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA18)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA18,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18))))))","v":0},50,4950,{"$f":"IF($F18=\"Terminated\",0,IF($AA18=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C18,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMIFS(OverValue,OverEmp,$C18,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA18)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA18,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18)))))))","v":50},{"$f":"IF($F18=\"Terminated\",0,IF($AA18=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C18,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMIFS(OverValue,OverEmp,$C18,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA18)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA18,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18)))))))","v":50},{"$f":"IF($F18=\"Terminated\",0,IF($AA18=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C18,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMIFS(OverValue,OverEmp,$C18,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA18)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA18,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18)))))))","v":0},{"$f":"IF($F18=\"Terminated\",0,IF($AA18=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C18,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMIFS(OverValue,OverEmp,$C18,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA18)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA18,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC18,PayEmp,$C18)))))))","v":0},100,5100,150,{"$f":"IF(OR($B18<=Setup!$E$12,$B18>=Setup!$D$12+1),0,IF($F18<>\"Active\",0,IF($AE18=\"Yes\",$AB18,((YEAR($AC18)*12)+MONTH($AC18))-((YEAR($AD18)*12)+MONTH($AD18)-1))))","v":1},{"$f":"IF(OR($B18<=Setup!$E$12,$B18>=Setup!$D$12+1),0,((YEAR($AC18)*12)+MONTH($AC18))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":1},45010,{"$f":"IF(ISNA(VLOOKUP($C18,EmpAll,COLUMN(Emp!$E$4),0)),$AC18,IF(VLOOKUP($C18,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C18,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C18,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C18,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C18,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A18=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C18,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMIFS(OverValue,OverEmp,$C18,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1)),IF(ISNA(VLOOKUP($C18,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG18,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C18,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C18,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C18,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C18,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C18,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F18=\"Terminated\",0,IF($AA18=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C18,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA18*12)+(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB18/3,0))*4)+(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB18/6,0))*2)+(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F18=\"Terminated\",0,IF($AA18=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C18,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA18*12)+(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB18/3,0))*4)+(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB18/6,0))*2)+(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F18=\"Terminated\",0,IF($AA18=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C18,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA18*12)+(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB18/3,0))*4)+(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB18/6,0))*2)+(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F18=\"Terminated\",0,IF($AA18=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C18,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA18*12)+(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB18/3,0))*4)+(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB18/6,0))*2)+(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F18=\"Terminated\",0,IF($AA18=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C18,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA18*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F18=\"Terminated\",0,IF($AA18=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C18,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA18*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F18=\"Terminated\",0,IF($AA18=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C18,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA18*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F18=\"Terminated\",0,IF($AA18=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C18,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC18),MONTH($AC18)+1,1),OverEnd,\">=\"&DATE(YEAR($AC18),MONTH($AC18),1))>0,SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA18*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C18)*(PayDate<=$AC18)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA18*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C18,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C18,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL18),($AR18*$AL18)-$AI18-$AK18,MAX(0,IF($AL18=\"B\",IF($AR18<Setup!$C$32,($AR18*Setup!$D$32)-$AI18-$AK18,(($AR18-VLOOKUP($AR18,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR18,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR18,TaxBracket2,1),0,1,1)-$AI18-$AK18),IF($AR18<Setup!$C$21,($AR18*Setup!$D$21)-$AI18-$AK18,(($AR18-VLOOKUP($AR18,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR18,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR18,TaxBracket1,1),0,1,1)-$AI18-$AK18))))","v":0},{"$f":"IF(ISNUMBER($AL18),($AX18*$AL18)-$AI18-$AK18,MAX(0,IF($AL18=\"B\",IF($AX18<Setup!$C$32,($AX18*Setup!$D$32)-$AI18-$AK18,(($AX18-VLOOKUP($AX18,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX18,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX18,TaxBracket2,1),0,1,1)-$AI18-$AK18),IF($AX18<Setup!$C$21,($AX18*Setup!$D$21)-$AI18-$AK18,(($AX18-VLOOKUP($AX18,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX18,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX18,TaxBracket1,1),0,1,1)-$AI18-$AK18))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A19)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B19,\"yyyy\")&TEXT($B19,\"mm\")&\"-\"&$C19)","v":"202303-EXS013"},{"$f":"IF(ROW($A19)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A19)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A19)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A19)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45010},{"$f":"IF(ROW($A19)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A19)-ROW($A$6)-IF(ROW($A19)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A19)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS013"},{"$f":"IF(ISNA(VLOOKUP($C19,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C19,EmpAll,COLUMN(Emp!$B$4),0))","v":"East WD"},{"$f":"IF(ISNA(VLOOKUP($C19,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C19,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C19,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C19,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC19),MONTH($AC19)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C19,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC19),MONTH($AC19),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F19<>\"Active\",0,IF(COUNTIFS(OverEmp,$C19,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMIFS(OverValue,OverEmp,$C19,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1)),IF(AND($AC19>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C19)>0),SUMIFS(EmpIncrease,EmpCode,$C19),SUMIFS(EmpSalary,EmpCode,$C19))))","v":5000},{"$f":"IF($F19<>\"Active\",0,IF(COUNTIFS(OverEmp,$C19,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMIFS(OverValue,OverEmp,$C19,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1)),0))","v":0},{"$f":"IF($F19<>\"Active\",0,IF(COUNTIFS(OverEmp,$C19,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMIFS(OverValue,OverEmp,$C19,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1)),IF(MONTH(B19)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C19),0)))","v":0},{"$f":"IF($F19<>\"Active\",0,IF(COUNTIFS(OverEmp,$C19,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMIFS(OverValue,OverEmp,$C19,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1)),0))","v":0},{"$f":"IF($F19<>\"Active\",0,IF(COUNTIFS(OverEmp,$C19,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMIFS(OverValue,OverEmp,$C19,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C19,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMIFS(OverValue,OverEmp,$C19,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1)),(($BA19/12*$AA19)+(BB19*IF(1-$BC19=0,0,BD19/(1-$BC19))))-IF($F19=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC19,PayEmp,$C19)))","v":0},{"$f":"IF($F19=\"Terminated\",0,IF($AA19=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C19,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMIFS(OverValue,OverEmp,$C19,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA19)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA19,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19))))))","v":50},{"$f":"IF($F19=\"Terminated\",0,IF($AA19=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C19,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMIFS(OverValue,OverEmp,$C19,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA19)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA19,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19))))))","v":0},{"$f":"IF($F19=\"Terminated\",0,IF($AA19=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C19,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMIFS(OverValue,OverEmp,$C19,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA19)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA19,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19))))))","v":0},{"$f":"IF($F19=\"Terminated\",0,IF($AA19=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C19,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMIFS(OverValue,OverEmp,$C19,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA19)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA19,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19))))))","v":0},50,4950,{"$f":"IF($F19=\"Terminated\",0,IF($AA19=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C19,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMIFS(OverValue,OverEmp,$C19,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA19)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA19,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19)))))))","v":50},{"$f":"IF($F19=\"Terminated\",0,IF($AA19=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C19,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMIFS(OverValue,OverEmp,$C19,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA19)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA19,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19)))))))","v":50},{"$f":"IF($F19=\"Terminated\",0,IF($AA19=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C19,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMIFS(OverValue,OverEmp,$C19,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA19)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA19,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19)))))))","v":0},{"$f":"IF($F19=\"Terminated\",0,IF($AA19=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C19,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMIFS(OverValue,OverEmp,$C19,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA19)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA19,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC19,PayEmp,$C19)))))))","v":0},100,5100,150,{"$f":"IF(OR($B19<=Setup!$E$12,$B19>=Setup!$D$12+1),0,IF($F19<>\"Active\",0,IF($AE19=\"Yes\",$AB19,((YEAR($AC19)*12)+MONTH($AC19))-((YEAR($AD19)*12)+MONTH($AD19)-1))))","v":1},{"$f":"IF(OR($B19<=Setup!$E$12,$B19>=Setup!$D$12+1),0,((YEAR($AC19)*12)+MONTH($AC19))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":1},45010,{"$f":"IF(ISNA(VLOOKUP($C19,EmpAll,COLUMN(Emp!$E$4),0)),$AC19,IF(VLOOKUP($C19,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C19,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C19,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C19,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C19,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A19=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C19,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMIFS(OverValue,OverEmp,$C19,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1)),IF(ISNA(VLOOKUP($C19,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG19,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C19,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C19,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C19,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C19,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C19,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F19=\"Terminated\",0,IF($AA19=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C19,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA19*12)+(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB19/3,0))*4)+(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB19/6,0))*2)+(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F19=\"Terminated\",0,IF($AA19=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C19,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA19*12)+(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB19/3,0))*4)+(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB19/6,0))*2)+(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F19=\"Terminated\",0,IF($AA19=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C19,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA19*12)+(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB19/3,0))*4)+(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB19/6,0))*2)+(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F19=\"Terminated\",0,IF($AA19=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C19,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA19*12)+(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB19/3,0))*4)+(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB19/6,0))*2)+(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F19=\"Terminated\",0,IF($AA19=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C19,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA19*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F19=\"Terminated\",0,IF($AA19=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C19,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA19*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F19=\"Terminated\",0,IF($AA19=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C19,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA19*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F19=\"Terminated\",0,IF($AA19=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C19,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC19),MONTH($AC19)+1,1),OverEnd,\">=\"&DATE(YEAR($AC19),MONTH($AC19),1))>0,SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA19*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C19)*(PayDate<=$AC19)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA19*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C19,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C19,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL19),($AR19*$AL19)-$AI19-$AK19,MAX(0,IF($AL19=\"B\",IF($AR19<Setup!$C$32,($AR19*Setup!$D$32)-$AI19-$AK19,(($AR19-VLOOKUP($AR19,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR19,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR19,TaxBracket2,1),0,1,1)-$AI19-$AK19),IF($AR19<Setup!$C$21,($AR19*Setup!$D$21)-$AI19-$AK19,(($AR19-VLOOKUP($AR19,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR19,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR19,TaxBracket1,1),0,1,1)-$AI19-$AK19))))","v":0},{"$f":"IF(ISNUMBER($AL19),($AX19*$AL19)-$AI19-$AK19,MAX(0,IF($AL19=\"B\",IF($AX19<Setup!$C$32,($AX19*Setup!$D$32)-$AI19-$AK19,(($AX19-VLOOKUP($AX19,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX19,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX19,TaxBracket2,1),0,1,1)-$AI19-$AK19),IF($AX19<Setup!$C$21,($AX19*Setup!$D$21)-$AI19-$AK19,(($AX19-VLOOKUP($AX19,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX19,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX19,TaxBracket1,1),0,1,1)-$AI19-$AK19))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A20)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B20,\"yyyy\")&TEXT($B20,\"mm\")&\"-\"&$C20)","v":"202303-EXS014"},{"$f":"IF(ROW($A20)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A20)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A20)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A20)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45010},{"$f":"IF(ROW($A20)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A20)-ROW($A$6)-IF(ROW($A20)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A20)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS014"},{"$f":"IF(ISNA(VLOOKUP($C20,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C20,EmpAll,COLUMN(Emp!$B$4),0))","v":"Ross Q"},{"$f":"IF(ISNA(VLOOKUP($C20,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C20,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C20,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C20,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC20),MONTH($AC20)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C20,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC20),MONTH($AC20),0)),\"Terminated\",\"Active\")))","v":"Inactive"},{"$f":"IF($F20<>\"Active\",0,IF(COUNTIFS(OverEmp,$C20,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMIFS(OverValue,OverEmp,$C20,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1)),IF(AND($AC20>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C20)>0),SUMIFS(EmpIncrease,EmpCode,$C20),SUMIFS(EmpSalary,EmpCode,$C20))))","v":0},{"$f":"IF($F20<>\"Active\",0,IF(COUNTIFS(OverEmp,$C20,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMIFS(OverValue,OverEmp,$C20,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1)),0))","v":0},{"$f":"IF($F20<>\"Active\",0,IF(COUNTIFS(OverEmp,$C20,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMIFS(OverValue,OverEmp,$C20,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1)),IF(MONTH(B20)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C20),0)))","v":0},{"$f":"IF($F20<>\"Active\",0,IF(COUNTIFS(OverEmp,$C20,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMIFS(OverValue,OverEmp,$C20,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1)),0))","v":0},{"$f":"IF($F20<>\"Active\",0,IF(COUNTIFS(OverEmp,$C20,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMIFS(OverValue,OverEmp,$C20,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C20,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMIFS(OverValue,OverEmp,$C20,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1)),(($BA20/12*$AA20)+(BB20*IF(1-$BC20=0,0,BD20/(1-$BC20))))-IF($F20=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC20,PayEmp,$C20)))","v":0},{"$f":"IF($F20=\"Terminated\",0,IF($AA20=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C20,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMIFS(OverValue,OverEmp,$C20,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA20)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA20,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20))))))","v":0},{"$f":"IF($F20=\"Terminated\",0,IF($AA20=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C20,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMIFS(OverValue,OverEmp,$C20,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA20)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA20,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20))))))","v":0},{"$f":"IF($F20=\"Terminated\",0,IF($AA20=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C20,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMIFS(OverValue,OverEmp,$C20,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA20)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA20,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20))))))","v":0},{"$f":"IF($F20=\"Terminated\",0,IF($AA20=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C20,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMIFS(OverValue,OverEmp,$C20,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA20)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA20,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20))))))","v":0},0,0,{"$f":"IF($F20=\"Terminated\",0,IF($AA20=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C20,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMIFS(OverValue,OverEmp,$C20,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA20)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA20,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20)))))))","v":0},{"$f":"IF($F20=\"Terminated\",0,IF($AA20=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C20,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMIFS(OverValue,OverEmp,$C20,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA20)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA20,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20)))))))","v":0},{"$f":"IF($F20=\"Terminated\",0,IF($AA20=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C20,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMIFS(OverValue,OverEmp,$C20,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA20)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA20,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20)))))))","v":0},{"$f":"IF($F20=\"Terminated\",0,IF($AA20=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C20,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMIFS(OverValue,OverEmp,$C20,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA20)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA20,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC20,PayEmp,$C20)))))))","v":0},0,0,0,{"$f":"IF(OR($B20<=Setup!$E$12,$B20>=Setup!$D$12+1),0,IF($F20<>\"Active\",0,IF($AE20=\"Yes\",$AB20,((YEAR($AC20)*12)+MONTH($AC20))-((YEAR($AD20)*12)+MONTH($AD20)-1))))","v":0},{"$f":"IF(OR($B20<=Setup!$E$12,$B20>=Setup!$D$12+1),0,((YEAR($AC20)*12)+MONTH($AC20))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":1},45010,{"$f":"IF(ISNA(VLOOKUP($C20,EmpAll,COLUMN(Emp!$E$4),0)),$AC20,IF(VLOOKUP($C20,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C20,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-06-25"},{"$f":"IF(ISNA(VLOOKUP($C20,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C20,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C20,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A20=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C20,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMIFS(OverValue,OverEmp,$C20,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1)),IF(ISNA(VLOOKUP($C20,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG20,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C20,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C20,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C20,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C20,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C20,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F20=\"Terminated\",0,IF($AA20=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C20,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA20*12)+(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB20/3,0))*4)+(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB20/6,0))*2)+(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F20=\"Terminated\",0,IF($AA20=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C20,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA20*12)+(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB20/3,0))*4)+(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB20/6,0))*2)+(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F20=\"Terminated\",0,IF($AA20=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C20,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA20*12)+(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB20/3,0))*4)+(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB20/6,0))*2)+(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F20=\"Terminated\",0,IF($AA20=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C20,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA20*12)+(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB20/3,0))*4)+(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB20/6,0))*2)+(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F20=\"Terminated\",0,IF($AA20=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C20,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA20*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F20=\"Terminated\",0,IF($AA20=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C20,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA20*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F20=\"Terminated\",0,IF($AA20=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C20,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA20*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F20=\"Terminated\",0,IF($AA20=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C20,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC20),MONTH($AC20)+1,1),OverEnd,\">=\"&DATE(YEAR($AC20),MONTH($AC20),1))>0,SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA20*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C20)*(PayDate<=$AC20)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA20*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C20,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C20,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL20),($AR20*$AL20)-$AI20-$AK20,MAX(0,IF($AL20=\"B\",IF($AR20<Setup!$C$32,($AR20*Setup!$D$32)-$AI20-$AK20,(($AR20-VLOOKUP($AR20,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR20,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR20,TaxBracket2,1),0,1,1)-$AI20-$AK20),IF($AR20<Setup!$C$21,($AR20*Setup!$D$21)-$AI20-$AK20,(($AR20-VLOOKUP($AR20,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR20,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR20,TaxBracket1,1),0,1,1)-$AI20-$AK20))))","v":0},{"$f":"IF(ISNUMBER($AL20),($AX20*$AL20)-$AI20-$AK20,MAX(0,IF($AL20=\"B\",IF($AX20<Setup!$C$32,($AX20*Setup!$D$32)-$AI20-$AK20,(($AX20-VLOOKUP($AX20,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX20,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX20,TaxBracket2,1),0,1,1)-$AI20-$AK20),IF($AX20<Setup!$C$21,($AX20*Setup!$D$21)-$AI20-$AK20,(($AX20-VLOOKUP($AX20,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX20,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX20,TaxBracket1,1),0,1,1)-$AI20-$AK20))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A21)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B21,\"yyyy\")&TEXT($B21,\"mm\")&\"-\"&$C21)","v":"202303-EXS015"},{"$f":"IF(ROW($A21)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A21)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A21)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A21)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45010},{"$f":"IF(ROW($A21)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A21)-ROW($A$6)-IF(ROW($A21)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A21)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS015"},{"$f":"IF(ISNA(VLOOKUP($C21,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C21,EmpAll,COLUMN(Emp!$B$4),0))","v":"Graham L"},{"$f":"IF(ISNA(VLOOKUP($C21,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C21,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C21,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C21,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC21),MONTH($AC21)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C21,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC21),MONTH($AC21),0)),\"Terminated\",\"Active\")))","v":"Inactive"},{"$f":"IF($F21<>\"Active\",0,IF(COUNTIFS(OverEmp,$C21,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMIFS(OverValue,OverEmp,$C21,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1)),IF(AND($AC21>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C21)>0),SUMIFS(EmpIncrease,EmpCode,$C21),SUMIFS(EmpSalary,EmpCode,$C21))))","v":0},{"$f":"IF($F21<>\"Active\",0,IF(COUNTIFS(OverEmp,$C21,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMIFS(OverValue,OverEmp,$C21,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1)),0))","v":0},{"$f":"IF($F21<>\"Active\",0,IF(COUNTIFS(OverEmp,$C21,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMIFS(OverValue,OverEmp,$C21,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1)),IF(MONTH(B21)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C21),0)))","v":0},{"$f":"IF($F21<>\"Active\",0,IF(COUNTIFS(OverEmp,$C21,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMIFS(OverValue,OverEmp,$C21,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1)),0))","v":0},{"$f":"IF($F21<>\"Active\",0,IF(COUNTIFS(OverEmp,$C21,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMIFS(OverValue,OverEmp,$C21,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C21,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMIFS(OverValue,OverEmp,$C21,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1)),(($BA21/12*$AA21)+(BB21*IF(1-$BC21=0,0,BD21/(1-$BC21))))-IF($F21=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC21,PayEmp,$C21)))","v":0},{"$f":"IF($F21=\"Terminated\",0,IF($AA21=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C21,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMIFS(OverValue,OverEmp,$C21,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA21)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA21,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21))))))","v":0},{"$f":"IF($F21=\"Terminated\",0,IF($AA21=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C21,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMIFS(OverValue,OverEmp,$C21,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA21)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA21,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21))))))","v":0},{"$f":"IF($F21=\"Terminated\",0,IF($AA21=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C21,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMIFS(OverValue,OverEmp,$C21,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA21)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA21,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21))))))","v":0},{"$f":"IF($F21=\"Terminated\",0,IF($AA21=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C21,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMIFS(OverValue,OverEmp,$C21,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA21)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA21,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21))))))","v":0},0,0,{"$f":"IF($F21=\"Terminated\",0,IF($AA21=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C21,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMIFS(OverValue,OverEmp,$C21,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA21)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA21,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21)))))))","v":0},{"$f":"IF($F21=\"Terminated\",0,IF($AA21=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C21,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMIFS(OverValue,OverEmp,$C21,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA21)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA21,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21)))))))","v":0},{"$f":"IF($F21=\"Terminated\",0,IF($AA21=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C21,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMIFS(OverValue,OverEmp,$C21,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA21)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA21,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21)))))))","v":0},{"$f":"IF($F21=\"Terminated\",0,IF($AA21=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C21,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMIFS(OverValue,OverEmp,$C21,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA21)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA21,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC21,PayEmp,$C21)))))))","v":0},0,0,0,{"$f":"IF(OR($B21<=Setup!$E$12,$B21>=Setup!$D$12+1),0,IF($F21<>\"Active\",0,IF($AE21=\"Yes\",$AB21,((YEAR($AC21)*12)+MONTH($AC21))-((YEAR($AD21)*12)+MONTH($AD21)-1))))","v":0},{"$f":"IF(OR($B21<=Setup!$E$12,$B21>=Setup!$D$12+1),0,((YEAR($AC21)*12)+MONTH($AC21))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":1},45010,{"$f":"IF(ISNA(VLOOKUP($C21,EmpAll,COLUMN(Emp!$E$4),0)),$AC21,IF(VLOOKUP($C21,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C21,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-01-25"},{"$f":"IF(ISNA(VLOOKUP($C21,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C21,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C21,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A21=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C21,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMIFS(OverValue,OverEmp,$C21,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1)),IF(ISNA(VLOOKUP($C21,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG21,MedList,COLUMN(Setup!$C$49),1)","v":364},4732,{"$f":"IF(ISNA(VLOOKUP($C21,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C21,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C21,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C21,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C21,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F21=\"Terminated\",0,IF($AA21=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C21,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA21*12)+(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB21/3,0))*4)+(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB21/6,0))*2)+(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F21=\"Terminated\",0,IF($AA21=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C21,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA21*12)+(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB21/3,0))*4)+(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB21/6,0))*2)+(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F21=\"Terminated\",0,IF($AA21=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C21,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA21*12)+(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB21/3,0))*4)+(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB21/6,0))*2)+(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F21=\"Terminated\",0,IF($AA21=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C21,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA21*12)+(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB21/3,0))*4)+(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB21/6,0))*2)+(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F21=\"Terminated\",0,IF($AA21=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C21,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA21*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F21=\"Terminated\",0,IF($AA21=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C21,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA21*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F21=\"Terminated\",0,IF($AA21=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C21,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA21*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F21=\"Terminated\",0,IF($AA21=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C21,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC21),MONTH($AC21)+1,1),OverEnd,\">=\"&DATE(YEAR($AC21),MONTH($AC21),1))>0,SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA21*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C21)*(PayDate<=$AC21)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA21*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C21,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C21,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL21),($AR21*$AL21)-$AI21-$AK21,MAX(0,IF($AL21=\"B\",IF($AR21<Setup!$C$32,($AR21*Setup!$D$32)-$AI21-$AK21,(($AR21-VLOOKUP($AR21,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR21,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR21,TaxBracket2,1),0,1,1)-$AI21-$AK21),IF($AR21<Setup!$C$21,($AR21*Setup!$D$21)-$AI21-$AK21,(($AR21-VLOOKUP($AR21,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR21,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR21,TaxBracket1,1),0,1,1)-$AI21-$AK21))))","v":0},{"$f":"IF(ISNUMBER($AL21),($AX21*$AL21)-$AI21-$AK21,MAX(0,IF($AL21=\"B\",IF($AX21<Setup!$C$32,($AX21*Setup!$D$32)-$AI21-$AK21,(($AX21-VLOOKUP($AX21,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX21,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX21,TaxBracket2,1),0,1,1)-$AI21-$AK21),IF($AX21<Setup!$C$21,($AX21*Setup!$D$21)-$AI21-$AK21,(($AX21-VLOOKUP($AX21,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX21,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX21,TaxBracket1,1),0,1,1)-$AI21-$AK21))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A22)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B22,\"yyyy\")&TEXT($B22,\"mm\")&\"-\"&$C22)","v":"202304-EXS001"},{"$f":"IF(ROW($A22)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A22)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A22)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A22)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45041},{"$f":"IF(ROW($A22)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A22)-ROW($A$6)-IF(ROW($A22)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A22)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS001"},{"$f":"IF(ISNA(VLOOKUP($C22,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C22,EmpAll,COLUMN(Emp!$B$4),0))","v":"Taylor AE"},{"$f":"IF(ISNA(VLOOKUP($C22,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C22,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C22,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C22,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC22),MONTH($AC22)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C22,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC22),MONTH($AC22),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F22<>\"Active\",0,IF(COUNTIFS(OverEmp,$C22,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMIFS(OverValue,OverEmp,$C22,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1)),IF(AND($AC22>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C22)>0),SUMIFS(EmpIncrease,EmpCode,$C22),SUMIFS(EmpSalary,EmpCode,$C22))))","v":150000},{"$f":"IF($F22<>\"Active\",0,IF(COUNTIFS(OverEmp,$C22,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMIFS(OverValue,OverEmp,$C22,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1)),0))","v":0},{"$f":"IF($F22<>\"Active\",0,IF(COUNTIFS(OverEmp,$C22,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMIFS(OverValue,OverEmp,$C22,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1)),IF(MONTH(B22)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C22),0)))","v":0},{"$f":"IF($F22<>\"Active\",0,IF(COUNTIFS(OverEmp,$C22,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMIFS(OverValue,OverEmp,$C22,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1)),0))","v":0},{"$f":"IF($F22<>\"Active\",0,IF(COUNTIFS(OverEmp,$C22,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMIFS(OverValue,OverEmp,$C22,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1)),0))","v":0},150000,{"$f":"IF(COUNTIFS(OverEmp,$C22,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMIFS(OverValue,OverEmp,$C22,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1)),(($BA22/12*$AA22)+(BB22*IF(1-$BC22=0,0,BD22/(1-$BC22))))-IF($F22=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC22,PayEmp,$C22)))","v":45611.833333333336},{"$f":"IF($F22=\"Terminated\",0,IF($AA22=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C22,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMIFS(OverValue,OverEmp,$C22,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA22)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA22,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22))))))","v":177.12},{"$f":"IF($F22=\"Terminated\",0,IF($AA22=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C22,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMIFS(OverValue,OverEmp,$C22,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA22)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA22,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22))))))","v":11250},{"$f":"IF($F22=\"Terminated\",0,IF($AA22=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C22,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMIFS(OverValue,OverEmp,$C22,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA22)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA22,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22))))))","v":0},{"$f":"IF($F22=\"Terminated\",0,IF($AA22=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C22,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMIFS(OverValue,OverEmp,$C22,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA22)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA22,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22))))))","v":0},57038.953333333338,92961.05,{"$f":"IF($F22=\"Terminated\",0,IF($AA22=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C22,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMIFS(OverValue,OverEmp,$C22,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA22)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA22,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22)))))))","v":177.12},{"$f":"IF($F22=\"Terminated\",0,IF($AA22=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C22,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMIFS(OverValue,OverEmp,$C22,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA22)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA22,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22)))))))","v":1500},{"$f":"IF($F22=\"Terminated\",0,IF($AA22=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C22,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMIFS(OverValue,OverEmp,$C22,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA22)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA22,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22)))))))","v":0},{"$f":"IF($F22=\"Terminated\",0,IF($AA22=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C22,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMIFS(OverValue,OverEmp,$C22,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA22)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA22,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC22,PayEmp,$C22)))))))","v":0},1677.12,151677.12,58716.07,{"$f":"IF(OR($B22<=Setup!$E$12,$B22>=Setup!$D$12+1),0,IF($F22<>\"Active\",0,IF($AE22=\"Yes\",$AB22,((YEAR($AC22)*12)+MONTH($AC22))-((YEAR($AD22)*12)+MONTH($AD22)-1))))","v":2},{"$f":"IF(OR($B22<=Setup!$E$12,$B22>=Setup!$D$12+1),0,((YEAR($AC22)*12)+MONTH($AC22))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":2},45041,{"$f":"IF(ISNA(VLOOKUP($C22,EmpAll,COLUMN(Emp!$E$4),0)),$AC22,IF(VLOOKUP($C22,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C22,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C22,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C22,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C22,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A22=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C22,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMIFS(OverValue,OverEmp,$C22,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1)),IF(ISNA(VLOOKUP($C22,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$N$4),0)))","v":5},{"$f":"VLOOKUP($AG22,MedList,COLUMN(Setup!$C$49),1)","v":1466},17592,{"$f":"IF(ISNA(VLOOKUP($C22,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C22,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C22,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C22,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C22,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1800000,{"$f":"-IF($F22=\"Terminated\",0,IF($AA22=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C22,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA22*12)+(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB22/3,0))*4)+(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB22/6,0))*2)+(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F22=\"Terminated\",0,IF($AA22=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C22,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA22*12)+(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB22/3,0))*4)+(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB22/6,0))*2)+(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F22=\"Terminated\",0,IF($AA22=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C22,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA22*12)+(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB22/3,0))*4)+(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB22/6,0))*2)+(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F22=\"Terminated\",0,IF($AA22=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C22,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA22*12)+(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB22/3,0))*4)+(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB22/6,0))*2)+(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1665000,1800000,{"$f":"-IF($F22=\"Terminated\",0,IF($AA22=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C22,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA22*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F22=\"Terminated\",0,IF($AA22=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C22,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA22*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F22=\"Terminated\",0,IF($AA22=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C22,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA22*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F22=\"Terminated\",0,IF($AA22=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C22,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC22),MONTH($AC22)+1,1),OverEnd,\">=\"&DATE(YEAR($AC22),MONTH($AC22),1))>0,SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA22*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C22)*(PayDate<=$AC22)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA22*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C22,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C22,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1665000,0,{"$f":"IF(ISNUMBER($AL22),($AR22*$AL22)-$AI22-$AK22,MAX(0,IF($AL22=\"B\",IF($AR22<Setup!$C$32,($AR22*Setup!$D$32)-$AI22-$AK22,(($AR22-VLOOKUP($AR22,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR22,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR22,TaxBracket2,1),0,1,1)-$AI22-$AK22),IF($AR22<Setup!$C$21,($AR22*Setup!$D$21)-$AI22-$AK22,(($AR22-VLOOKUP($AR22,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR22,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR22,TaxBracket1,1),0,1,1)-$AI22-$AK22))))","v":547342},{"$f":"IF(ISNUMBER($AL22),($AX22*$AL22)-$AI22-$AK22,MAX(0,IF($AL22=\"B\",IF($AX22<Setup!$C$32,($AX22*Setup!$D$32)-$AI22-$AK22,(($AX22-VLOOKUP($AX22,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX22,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX22,TaxBracket2,1),0,1,1)-$AI22-$AK22),IF($AX22<Setup!$C$21,($AX22*Setup!$D$21)-$AI22-$AK22,(($AX22-VLOOKUP($AX22,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX22,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX22,TaxBracket1,1),0,1,1)-$AI22-$AK22))))","v":547342},0,1,0,1800000]
[{"$f":"IF(ROW($A23)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B23,\"yyyy\")&TEXT($B23,\"mm\")&\"-\"&$C23)","v":"202304-EXS002"},{"$f":"IF(ROW($A23)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A23)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A23)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A23)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45041},{"$f":"IF(ROW($A23)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A23)-ROW($A$6)-IF(ROW($A23)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A23)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS002"},{"$f":"IF(ISNA(VLOOKUP($C23,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C23,EmpAll,COLUMN(Emp!$B$4),0))","v":"Smith F"},{"$f":"IF(ISNA(VLOOKUP($C23,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C23,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C23,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C23,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC23),MONTH($AC23)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C23,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC23),MONTH($AC23),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F23<>\"Active\",0,IF(COUNTIFS(OverEmp,$C23,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMIFS(OverValue,OverEmp,$C23,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1)),IF(AND($AC23>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C23)>0),SUMIFS(EmpIncrease,EmpCode,$C23),SUMIFS(EmpSalary,EmpCode,$C23))))","v":120000},{"$f":"IF($F23<>\"Active\",0,IF(COUNTIFS(OverEmp,$C23,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMIFS(OverValue,OverEmp,$C23,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1)),0))","v":0},{"$f":"IF($F23<>\"Active\",0,IF(COUNTIFS(OverEmp,$C23,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMIFS(OverValue,OverEmp,$C23,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1)),IF(MONTH(B23)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C23),0)))","v":0},{"$f":"IF($F23<>\"Active\",0,IF(COUNTIFS(OverEmp,$C23,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMIFS(OverValue,OverEmp,$C23,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1)),0))","v":0},{"$f":"IF($F23<>\"Active\",0,IF(COUNTIFS(OverEmp,$C23,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMIFS(OverValue,OverEmp,$C23,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1)),0))","v":0},120000,{"$f":"IF(COUNTIFS(OverEmp,$C23,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMIFS(OverValue,OverEmp,$C23,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1)),(($BA23/12*$AA23)+(BB23*IF(1-$BC23=0,0,BD23/(1-$BC23))))-IF($F23=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC23,PayEmp,$C23)))","v":38662.333333333336},{"$f":"IF($F23=\"Terminated\",0,IF($AA23=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C23,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMIFS(OverValue,OverEmp,$C23,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA23)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA23,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23))))))","v":177.12},{"$f":"IF($F23=\"Terminated\",0,IF($AA23=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C23,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMIFS(OverValue,OverEmp,$C23,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA23)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA23,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23))))))","v":0},{"$f":"IF($F23=\"Terminated\",0,IF($AA23=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C23,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMIFS(OverValue,OverEmp,$C23,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA23)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA23,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23))))))","v":0},{"$f":"IF($F23=\"Terminated\",0,IF($AA23=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C23,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMIFS(OverValue,OverEmp,$C23,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA23)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA23,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23))))))","v":0},38839.453333333338,81160.55,{"$f":"IF($F23=\"Terminated\",0,IF($AA23=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C23,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMIFS(OverValue,OverEmp,$C23,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA23)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA23,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23)))))))","v":177.12},{"$f":"IF($F23=\"Terminated\",0,IF($AA23=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C23,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMIFS(OverValue,OverEmp,$C23,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA23)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA23,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23)))))))","v":1200},{"$f":"IF($F23=\"Terminated\",0,IF($AA23=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C23,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMIFS(OverValue,OverEmp,$C23,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA23)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA23,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23)))))))","v":0},{"$f":"IF($F23=\"Terminated\",0,IF($AA23=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C23,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMIFS(OverValue,OverEmp,$C23,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA23)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA23,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC23,PayEmp,$C23)))))))","v":0},1377.12,121377.12,40216.57,{"$f":"IF(OR($B23<=Setup!$E$12,$B23>=Setup!$D$12+1),0,IF($F23<>\"Active\",0,IF($AE23=\"Yes\",$AB23,((YEAR($AC23)*12)+MONTH($AC23))-((YEAR($AD23)*12)+MONTH($AD23)-1))))","v":2},{"$f":"IF(OR($B23<=Setup!$E$12,$B23>=Setup!$D$12+1),0,((YEAR($AC23)*12)+MONTH($AC23))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":2},45041,{"$f":"IF(ISNA(VLOOKUP($C23,EmpAll,COLUMN(Emp!$E$4),0)),$AC23,IF(VLOOKUP($C23,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C23,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C23,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C23,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C23,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A23=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C23,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMIFS(OverValue,OverEmp,$C23,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1)),IF(ISNA(VLOOKUP($C23,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$N$4),0)))","v":2},{"$f":"VLOOKUP($AG23,MedList,COLUMN(Setup!$C$49),1)","v":728},8736,{"$f":"IF(ISNA(VLOOKUP($C23,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C23,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C23,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C23,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C23,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1440000,{"$f":"-IF($F23=\"Terminated\",0,IF($AA23=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C23,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA23*12)+(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB23/3,0))*4)+(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB23/6,0))*2)+(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F23=\"Terminated\",0,IF($AA23=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C23,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA23*12)+(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB23/3,0))*4)+(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB23/6,0))*2)+(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F23=\"Terminated\",0,IF($AA23=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C23,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA23*12)+(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB23/3,0))*4)+(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB23/6,0))*2)+(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F23=\"Terminated\",0,IF($AA23=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C23,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA23*12)+(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB23/3,0))*4)+(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB23/6,0))*2)+(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1440000,1440000,{"$f":"-IF($F23=\"Terminated\",0,IF($AA23=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C23,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA23*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F23=\"Terminated\",0,IF($AA23=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C23,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA23*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F23=\"Terminated\",0,IF($AA23=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C23,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA23*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F23=\"Terminated\",0,IF($AA23=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C23,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC23),MONTH($AC23)+1,1),OverEnd,\">=\"&DATE(YEAR($AC23),MONTH($AC23),1))>0,SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA23*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C23)*(PayDate<=$AC23)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA23*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C23,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C23,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1440000,0,{"$f":"IF(ISNUMBER($AL23),($AR23*$AL23)-$AI23-$AK23,MAX(0,IF($AL23=\"B\",IF($AR23<Setup!$C$32,($AR23*Setup!$D$32)-$AI23-$AK23,(($AR23-VLOOKUP($AR23,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR23,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR23,TaxBracket2,1),0,1,1)-$AI23-$AK23),IF($AR23<Setup!$C$21,($AR23*Setup!$D$21)-$AI23-$AK23,(($AR23-VLOOKUP($AR23,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR23,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR23,TaxBracket1,1),0,1,1)-$AI23-$AK23))))","v":463948},{"$f":"IF(ISNUMBER($AL23),($AX23*$AL23)-$AI23-$AK23,MAX(0,IF($AL23=\"B\",IF($AX23<Setup!$C$32,($AX23*Setup!$D$32)-$AI23-$AK23,(($AX23-VLOOKUP($AX23,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX23,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX23,TaxBracket2,1),0,1,1)-$AI23-$AK23),IF($AX23<Setup!$C$21,($AX23*Setup!$D$21)-$AI23-$AK23,(($AX23-VLOOKUP($AX23,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX23,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX23,TaxBracket1,1),0,1,1)-$AI23-$AK23))))","v":463948},0,1,0,1440000]
[{"$f":"IF(ROW($A24)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B24,\"yyyy\")&TEXT($B24,\"mm\")&\"-\"&$C24)","v":"202304-EXS003"},{"$f":"IF(ROW($A24)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A24)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A24)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A24)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45041},{"$f":"IF(ROW($A24)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A24)-ROW($A$6)-IF(ROW($A24)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A24)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS003"},{"$f":"IF(ISNA(VLOOKUP($C24,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C24,EmpAll,COLUMN(Emp!$B$4),0))","v":"Wilson PG"},{"$f":"IF(ISNA(VLOOKUP($C24,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C24,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C24,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C24,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC24),MONTH($AC24)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C24,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC24),MONTH($AC24),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F24<>\"Active\",0,IF(COUNTIFS(OverEmp,$C24,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMIFS(OverValue,OverEmp,$C24,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1)),IF(AND($AC24>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C24)>0),SUMIFS(EmpIncrease,EmpCode,$C24),SUMIFS(EmpSalary,EmpCode,$C24))))","v":15000},{"$f":"IF($F24<>\"Active\",0,IF(COUNTIFS(OverEmp,$C24,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMIFS(OverValue,OverEmp,$C24,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1)),0))","v":0},{"$f":"IF($F24<>\"Active\",0,IF(COUNTIFS(OverEmp,$C24,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMIFS(OverValue,OverEmp,$C24,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1)),IF(MONTH(B24)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C24),0)))","v":0},{"$f":"IF($F24<>\"Active\",0,IF(COUNTIFS(OverEmp,$C24,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMIFS(OverValue,OverEmp,$C24,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1)),0))","v":0},{"$f":"IF($F24<>\"Active\",0,IF(COUNTIFS(OverEmp,$C24,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMIFS(OverValue,OverEmp,$C24,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1)),0))","v":0},15000,{"$f":"IF(COUNTIFS(OverEmp,$C24,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMIFS(OverValue,OverEmp,$C24,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1)),(($BA24/12*$AA24)+(BB24*IF(1-$BC24=0,0,BD24/(1-$BC24))))-IF($F24=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC24,PayEmp,$C24)))","v":899.75},{"$f":"IF($F24=\"Terminated\",0,IF($AA24=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C24,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMIFS(OverValue,OverEmp,$C24,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA24)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA24,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24))))))","v":150},{"$f":"IF($F24=\"Terminated\",0,IF($AA24=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C24,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMIFS(OverValue,OverEmp,$C24,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA24)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA24,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24))))))","v":0},{"$f":"IF($F24=\"Terminated\",0,IF($AA24=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C24,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMIFS(OverValue,OverEmp,$C24,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA24)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA24,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24))))))","v":0},{"$f":"IF($F24=\"Terminated\",0,IF($AA24=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C24,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMIFS(OverValue,OverEmp,$C24,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA24)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA24,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24))))))","v":0},1049.75,13950.25,{"$f":"IF($F24=\"Terminated\",0,IF($AA24=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C24,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMIFS(OverValue,OverEmp,$C24,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA24)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA24,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24)))))))","v":150},{"$f":"IF($F24=\"Terminated\",0,IF($AA24=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C24,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMIFS(OverValue,OverEmp,$C24,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA24)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA24,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24)))))))","v":150},{"$f":"IF($F24=\"Terminated\",0,IF($AA24=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C24,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMIFS(OverValue,OverEmp,$C24,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA24)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA24,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24)))))))","v":0},{"$f":"IF($F24=\"Terminated\",0,IF($AA24=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C24,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMIFS(OverValue,OverEmp,$C24,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA24)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA24,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC24,PayEmp,$C24)))))))","v":0},300,15300,1349.75,{"$f":"IF(OR($B24<=Setup!$E$12,$B24>=Setup!$D$12+1),0,IF($F24<>\"Active\",0,IF($AE24=\"Yes\",$AB24,((YEAR($AC24)*12)+MONTH($AC24))-((YEAR($AD24)*12)+MONTH($AD24)-1))))","v":2},{"$f":"IF(OR($B24<=Setup!$E$12,$B24>=Setup!$D$12+1),0,((YEAR($AC24)*12)+MONTH($AC24))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":2},45041,{"$f":"IF(ISNA(VLOOKUP($C24,EmpAll,COLUMN(Emp!$E$4),0)),$AC24,IF(VLOOKUP($C24,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C24,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C24,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C24,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C24,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A24=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C24,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMIFS(OverValue,OverEmp,$C24,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1)),IF(ISNA(VLOOKUP($C24,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG24,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C24,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C24,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C24,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C24,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C24,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},180000,{"$f":"-IF($F24=\"Terminated\",0,IF($AA24=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C24,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA24*12)+(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB24/3,0))*4)+(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB24/6,0))*2)+(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F24=\"Terminated\",0,IF($AA24=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C24,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA24*12)+(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB24/3,0))*4)+(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB24/6,0))*2)+(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F24=\"Terminated\",0,IF($AA24=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C24,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA24*12)+(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB24/3,0))*4)+(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB24/6,0))*2)+(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F24=\"Terminated\",0,IF($AA24=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C24,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA24*12)+(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB24/3,0))*4)+(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB24/6,0))*2)+(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},180000,180000,{"$f":"-IF($F24=\"Terminated\",0,IF($AA24=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C24,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA24*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F24=\"Terminated\",0,IF($AA24=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C24,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA24*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F24=\"Terminated\",0,IF($AA24=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C24,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA24*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F24=\"Terminated\",0,IF($AA24=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C24,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC24),MONTH($AC24)+1,1),OverEnd,\">=\"&DATE(YEAR($AC24),MONTH($AC24),1))>0,SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA24*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C24)*(PayDate<=$AC24)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA24*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C24,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C24,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,0,{"$f":"IF(ISNUMBER($AL24),($AR24*$AL24)-$AI24-$AK24,MAX(0,IF($AL24=\"B\",IF($AR24<Setup!$C$32,($AR24*Setup!$D$32)-$AI24-$AK24,(($AR24-VLOOKUP($AR24,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR24,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR24,TaxBracket2,1),0,1,1)-$AI24-$AK24),IF($AR24<Setup!$C$21,($AR24*Setup!$D$21)-$AI24-$AK24,(($AR24-VLOOKUP($AR24,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR24,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR24,TaxBracket1,1),0,1,1)-$AI24-$AK24))))","v":10797},{"$f":"IF(ISNUMBER($AL24),($AX24*$AL24)-$AI24-$AK24,MAX(0,IF($AL24=\"B\",IF($AX24<Setup!$C$32,($AX24*Setup!$D$32)-$AI24-$AK24,(($AX24-VLOOKUP($AX24,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX24,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX24,TaxBracket2,1),0,1,1)-$AI24-$AK24),IF($AX24<Setup!$C$21,($AX24*Setup!$D$21)-$AI24-$AK24,(($AX24-VLOOKUP($AX24,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX24,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX24,TaxBracket1,1),0,1,1)-$AI24-$AK24))))","v":10797},0,1,0,180000]
[{"$f":"IF(ROW($A25)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B25,\"yyyy\")&TEXT($B25,\"mm\")&\"-\"&$C25)","v":"202304-EXS004"},{"$f":"IF(ROW($A25)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A25)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A25)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A25)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45041},{"$f":"IF(ROW($A25)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A25)-ROW($A$6)-IF(ROW($A25)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A25)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS004"},{"$f":"IF(ISNA(VLOOKUP($C25,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C25,EmpAll,COLUMN(Emp!$B$4),0))","v":"Osborne S"},{"$f":"IF(ISNA(VLOOKUP($C25,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C25,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C25,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C25,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC25),MONTH($AC25)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C25,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC25),MONTH($AC25),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F25<>\"Active\",0,IF(COUNTIFS(OverEmp,$C25,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMIFS(OverValue,OverEmp,$C25,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1)),IF(AND($AC25>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C25)>0),SUMIFS(EmpIncrease,EmpCode,$C25),SUMIFS(EmpSalary,EmpCode,$C25))))","v":15000},{"$f":"IF($F25<>\"Active\",0,IF(COUNTIFS(OverEmp,$C25,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMIFS(OverValue,OverEmp,$C25,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1)),0))","v":0},{"$f":"IF($F25<>\"Active\",0,IF(COUNTIFS(OverEmp,$C25,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMIFS(OverValue,OverEmp,$C25,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1)),IF(MONTH(B25)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C25),0)))","v":0},{"$f":"IF($F25<>\"Active\",0,IF(COUNTIFS(OverEmp,$C25,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMIFS(OverValue,OverEmp,$C25,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1)),0))","v":0},{"$f":"IF($F25<>\"Active\",0,IF(COUNTIFS(OverEmp,$C25,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMIFS(OverValue,OverEmp,$C25,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1)),0))","v":0},15000,{"$f":"IF(COUNTIFS(OverEmp,$C25,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMIFS(OverValue,OverEmp,$C25,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1)),(($BA25/12*$AA25)+(BB25*IF(1-$BC25=0,0,BD25/(1-$BC25))))-IF($F25=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC25,PayEmp,$C25)))","v":899.75},{"$f":"IF($F25=\"Terminated\",0,IF($AA25=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C25,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMIFS(OverValue,OverEmp,$C25,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA25)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA25,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25))))))","v":158.88},{"$f":"IF($F25=\"Terminated\",0,IF($AA25=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C25,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMIFS(OverValue,OverEmp,$C25,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA25)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA25,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25))))))","v":0},{"$f":"IF($F25=\"Terminated\",0,IF($AA25=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C25,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMIFS(OverValue,OverEmp,$C25,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA25)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA25,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25))))))","v":500},{"$f":"IF($F25=\"Terminated\",0,IF($AA25=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C25,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMIFS(OverValue,OverEmp,$C25,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA25)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA25,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25))))))","v":0},1558.63,13441.37,{"$f":"IF($F25=\"Terminated\",0,IF($AA25=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C25,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMIFS(OverValue,OverEmp,$C25,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA25)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA25,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25)))))))","v":158.88},{"$f":"IF($F25=\"Terminated\",0,IF($AA25=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C25,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMIFS(OverValue,OverEmp,$C25,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA25)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA25,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25)))))))","v":150},{"$f":"IF($F25=\"Terminated\",0,IF($AA25=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C25,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMIFS(OverValue,OverEmp,$C25,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA25)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA25,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25)))))))","v":0},{"$f":"IF($F25=\"Terminated\",0,IF($AA25=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C25,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMIFS(OverValue,OverEmp,$C25,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA25)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA25,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC25,PayEmp,$C25)))))))","v":0},308.88,15308.88,1867.51,{"$f":"IF(OR($B25<=Setup!$E$12,$B25>=Setup!$D$12+1),0,IF($F25<>\"Active\",0,IF($AE25=\"Yes\",$AB25,((YEAR($AC25)*12)+MONTH($AC25))-((YEAR($AD25)*12)+MONTH($AD25)-1))))","v":2},{"$f":"IF(OR($B25<=Setup!$E$12,$B25>=Setup!$D$12+1),0,((YEAR($AC25)*12)+MONTH($AC25))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":2},45041,{"$f":"IF(ISNA(VLOOKUP($C25,EmpAll,COLUMN(Emp!$E$4),0)),$AC25,IF(VLOOKUP($C25,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C25,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C25,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C25,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C25,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A25=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C25,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMIFS(OverValue,OverEmp,$C25,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1)),IF(ISNA(VLOOKUP($C25,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG25,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C25,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C25,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C25,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C25,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C25,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},183600,{"$f":"-IF($F25=\"Terminated\",0,IF($AA25=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C25,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA25*12)+(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB25/3,0))*4)+(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB25/6,0))*2)+(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F25=\"Terminated\",0,IF($AA25=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C25,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA25*12)+(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB25/3,0))*4)+(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB25/6,0))*2)+(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F25=\"Terminated\",0,IF($AA25=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C25,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA25*12)+(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB25/3,0))*4)+(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB25/6,0))*2)+(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F25=\"Terminated\",0,IF($AA25=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C25,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA25*12)+(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB25/3,0))*4)+(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB25/6,0))*2)+(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},183600,180000,{"$f":"-IF($F25=\"Terminated\",0,IF($AA25=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C25,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA25*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F25=\"Terminated\",0,IF($AA25=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C25,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA25*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F25=\"Terminated\",0,IF($AA25=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C25,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA25*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F25=\"Terminated\",0,IF($AA25=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C25,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC25),MONTH($AC25)+1,1),OverEnd,\">=\"&DATE(YEAR($AC25),MONTH($AC25),1))>0,SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA25*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C25)*(PayDate<=$AC25)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA25*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C25,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C25,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,3600,{"$f":"IF(ISNUMBER($AL25),($AR25*$AL25)-$AI25-$AK25,MAX(0,IF($AL25=\"B\",IF($AR25<Setup!$C$32,($AR25*Setup!$D$32)-$AI25-$AK25,(($AR25-VLOOKUP($AR25,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR25,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR25,TaxBracket2,1),0,1,1)-$AI25-$AK25),IF($AR25<Setup!$C$21,($AR25*Setup!$D$21)-$AI25-$AK25,(($AR25-VLOOKUP($AR25,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR25,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR25,TaxBracket1,1),0,1,1)-$AI25-$AK25))))","v":11445},{"$f":"IF(ISNUMBER($AL25),($AX25*$AL25)-$AI25-$AK25,MAX(0,IF($AL25=\"B\",IF($AX25<Setup!$C$32,($AX25*Setup!$D$32)-$AI25-$AK25,(($AX25-VLOOKUP($AX25,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX25,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX25,TaxBracket2,1),0,1,1)-$AI25-$AK25),IF($AX25<Setup!$C$21,($AX25*Setup!$D$21)-$AI25-$AK25,(($AX25-VLOOKUP($AX25,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX25,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX25,TaxBracket1,1),0,1,1)-$AI25-$AK25))))","v":10797},648,0.98039215686274506,1.9607843137254902E-2,183600]
[{"$f":"IF(ROW($A26)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B26,\"yyyy\")&TEXT($B26,\"mm\")&\"-\"&$C26)","v":"202304-EXS005"},{"$f":"IF(ROW($A26)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A26)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A26)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A26)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45041},{"$f":"IF(ROW($A26)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A26)-ROW($A$6)-IF(ROW($A26)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A26)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS005"},{"$f":"IF(ISNA(VLOOKUP($C26,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C26,EmpAll,COLUMN(Emp!$B$4),0))","v":"Miller R"},{"$f":"IF(ISNA(VLOOKUP($C26,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C26,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C26,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C26,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC26),MONTH($AC26)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C26,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC26),MONTH($AC26),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F26<>\"Active\",0,IF(COUNTIFS(OverEmp,$C26,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMIFS(OverValue,OverEmp,$C26,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1)),IF(AND($AC26>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C26)>0),SUMIFS(EmpIncrease,EmpCode,$C26),SUMIFS(EmpSalary,EmpCode,$C26))))","v":10000},{"$f":"IF($F26<>\"Active\",0,IF(COUNTIFS(OverEmp,$C26,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMIFS(OverValue,OverEmp,$C26,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1)),0))","v":0},{"$f":"IF($F26<>\"Active\",0,IF(COUNTIFS(OverEmp,$C26,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMIFS(OverValue,OverEmp,$C26,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1)),IF(MONTH(B26)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C26),0)))","v":0},{"$f":"IF($F26<>\"Active\",0,IF(COUNTIFS(OverEmp,$C26,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMIFS(OverValue,OverEmp,$C26,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1)),0))","v":0},{"$f":"IF($F26<>\"Active\",0,IF(COUNTIFS(OverEmp,$C26,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMIFS(OverValue,OverEmp,$C26,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C26,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMIFS(OverValue,OverEmp,$C26,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1)),(($BA26/12*$AA26)+(BB26*IF(1-$BC26=0,0,BD26/(1-$BC26))))-IF($F26=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC26,PayEmp,$C26)))","v":0},{"$f":"IF($F26=\"Terminated\",0,IF($AA26=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C26,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMIFS(OverValue,OverEmp,$C26,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA26)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA26,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26))))))","v":100},{"$f":"IF($F26=\"Terminated\",0,IF($AA26=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C26,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMIFS(OverValue,OverEmp,$C26,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA26)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA26,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26))))))","v":0},{"$f":"IF($F26=\"Terminated\",0,IF($AA26=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C26,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMIFS(OverValue,OverEmp,$C26,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA26)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA26,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26))))))","v":0},{"$f":"IF($F26=\"Terminated\",0,IF($AA26=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C26,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMIFS(OverValue,OverEmp,$C26,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA26)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA26,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26))))))","v":0},100,9900,{"$f":"IF($F26=\"Terminated\",0,IF($AA26=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C26,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMIFS(OverValue,OverEmp,$C26,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA26)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA26,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26)))))))","v":100},{"$f":"IF($F26=\"Terminated\",0,IF($AA26=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C26,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMIFS(OverValue,OverEmp,$C26,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA26)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA26,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26)))))))","v":100},{"$f":"IF($F26=\"Terminated\",0,IF($AA26=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C26,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMIFS(OverValue,OverEmp,$C26,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA26)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA26,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26)))))))","v":0},{"$f":"IF($F26=\"Terminated\",0,IF($AA26=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C26,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMIFS(OverValue,OverEmp,$C26,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA26)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA26,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC26,PayEmp,$C26)))))))","v":0},200,10200,300,{"$f":"IF(OR($B26<=Setup!$E$12,$B26>=Setup!$D$12+1),0,IF($F26<>\"Active\",0,IF($AE26=\"Yes\",$AB26,((YEAR($AC26)*12)+MONTH($AC26))-((YEAR($AD26)*12)+MONTH($AD26)-1))))","v":2},{"$f":"IF(OR($B26<=Setup!$E$12,$B26>=Setup!$D$12+1),0,((YEAR($AC26)*12)+MONTH($AC26))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":2},45041,{"$f":"IF(ISNA(VLOOKUP($C26,EmpAll,COLUMN(Emp!$E$4),0)),$AC26,IF(VLOOKUP($C26,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C26,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C26,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C26,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C26,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A26=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C26,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMIFS(OverValue,OverEmp,$C26,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1)),IF(ISNA(VLOOKUP($C26,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG26,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C26,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C26,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C26,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C26,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C26,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},120000,{"$f":"-IF($F26=\"Terminated\",0,IF($AA26=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C26,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA26*12)+(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB26/3,0))*4)+(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB26/6,0))*2)+(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F26=\"Terminated\",0,IF($AA26=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C26,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA26*12)+(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB26/3,0))*4)+(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB26/6,0))*2)+(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F26=\"Terminated\",0,IF($AA26=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C26,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA26*12)+(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB26/3,0))*4)+(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB26/6,0))*2)+(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F26=\"Terminated\",0,IF($AA26=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C26,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA26*12)+(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB26/3,0))*4)+(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB26/6,0))*2)+(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},120000,120000,{"$f":"-IF($F26=\"Terminated\",0,IF($AA26=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C26,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA26*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F26=\"Terminated\",0,IF($AA26=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C26,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA26*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F26=\"Terminated\",0,IF($AA26=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C26,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA26*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F26=\"Terminated\",0,IF($AA26=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C26,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC26),MONTH($AC26)+1,1),OverEnd,\">=\"&DATE(YEAR($AC26),MONTH($AC26),1))>0,SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA26*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C26)*(PayDate<=$AC26)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA26*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C26,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C26,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,0,{"$f":"IF(ISNUMBER($AL26),($AR26*$AL26)-$AI26-$AK26,MAX(0,IF($AL26=\"B\",IF($AR26<Setup!$C$32,($AR26*Setup!$D$32)-$AI26-$AK26,(($AR26-VLOOKUP($AR26,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR26,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR26,TaxBracket2,1),0,1,1)-$AI26-$AK26),IF($AR26<Setup!$C$21,($AR26*Setup!$D$21)-$AI26-$AK26,(($AR26-VLOOKUP($AR26,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR26,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR26,TaxBracket1,1),0,1,1)-$AI26-$AK26))))","v":0},{"$f":"IF(ISNUMBER($AL26),($AX26*$AL26)-$AI26-$AK26,MAX(0,IF($AL26=\"B\",IF($AX26<Setup!$C$32,($AX26*Setup!$D$32)-$AI26-$AK26,(($AX26-VLOOKUP($AX26,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX26,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX26,TaxBracket2,1),0,1,1)-$AI26-$AK26),IF($AX26<Setup!$C$21,($AX26*Setup!$D$21)-$AI26-$AK26,(($AX26-VLOOKUP($AX26,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX26,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX26,TaxBracket1,1),0,1,1)-$AI26-$AK26))))","v":0},0,1,0,120000]
[{"$f":"IF(ROW($A27)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B27,\"yyyy\")&TEXT($B27,\"mm\")&\"-\"&$C27)","v":"202304-EXS006"},{"$f":"IF(ROW($A27)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A27)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A27)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A27)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45041},{"$f":"IF(ROW($A27)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A27)-ROW($A$6)-IF(ROW($A27)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A27)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS006"},{"$f":"IF(ISNA(VLOOKUP($C27,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C27,EmpAll,COLUMN(Emp!$B$4),0))","v":"Andrews MS"},{"$f":"IF(ISNA(VLOOKUP($C27,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C27,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C27,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C27,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC27),MONTH($AC27)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C27,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC27),MONTH($AC27),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F27<>\"Active\",0,IF(COUNTIFS(OverEmp,$C27,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMIFS(OverValue,OverEmp,$C27,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1)),IF(AND($AC27>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C27)>0),SUMIFS(EmpIncrease,EmpCode,$C27),SUMIFS(EmpSalary,EmpCode,$C27))))","v":10000},{"$f":"IF($F27<>\"Active\",0,IF(COUNTIFS(OverEmp,$C27,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMIFS(OverValue,OverEmp,$C27,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1)),0))","v":0},{"$f":"IF($F27<>\"Active\",0,IF(COUNTIFS(OverEmp,$C27,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMIFS(OverValue,OverEmp,$C27,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1)),IF(MONTH(B27)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C27),0)))","v":0},{"$f":"IF($F27<>\"Active\",0,IF(COUNTIFS(OverEmp,$C27,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMIFS(OverValue,OverEmp,$C27,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1)),0))","v":0},{"$f":"IF($F27<>\"Active\",0,IF(COUNTIFS(OverEmp,$C27,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMIFS(OverValue,OverEmp,$C27,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C27,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMIFS(OverValue,OverEmp,$C27,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1)),(($BA27/12*$AA27)+(BB27*IF(1-$BC27=0,0,BD27/(1-$BC27))))-IF($F27=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC27,PayEmp,$C27)))","v":0},{"$f":"IF($F27=\"Terminated\",0,IF($AA27=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C27,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMIFS(OverValue,OverEmp,$C27,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA27)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA27,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27))))))","v":100},{"$f":"IF($F27=\"Terminated\",0,IF($AA27=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C27,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMIFS(OverValue,OverEmp,$C27,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA27)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA27,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27))))))","v":0},{"$f":"IF($F27=\"Terminated\",0,IF($AA27=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C27,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMIFS(OverValue,OverEmp,$C27,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA27)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA27,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27))))))","v":0},{"$f":"IF($F27=\"Terminated\",0,IF($AA27=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C27,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMIFS(OverValue,OverEmp,$C27,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA27)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA27,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27))))))","v":0},100,9900,{"$f":"IF($F27=\"Terminated\",0,IF($AA27=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C27,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMIFS(OverValue,OverEmp,$C27,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA27)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA27,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27)))))))","v":100},{"$f":"IF($F27=\"Terminated\",0,IF($AA27=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C27,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMIFS(OverValue,OverEmp,$C27,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA27)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA27,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27)))))))","v":100},{"$f":"IF($F27=\"Terminated\",0,IF($AA27=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C27,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMIFS(OverValue,OverEmp,$C27,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA27)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA27,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27)))))))","v":0},{"$f":"IF($F27=\"Terminated\",0,IF($AA27=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C27,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMIFS(OverValue,OverEmp,$C27,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA27)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA27,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC27,PayEmp,$C27)))))))","v":0},200,10200,300,{"$f":"IF(OR($B27<=Setup!$E$12,$B27>=Setup!$D$12+1),0,IF($F27<>\"Active\",0,IF($AE27=\"Yes\",$AB27,((YEAR($AC27)*12)+MONTH($AC27))-((YEAR($AD27)*12)+MONTH($AD27)-1))))","v":2},{"$f":"IF(OR($B27<=Setup!$E$12,$B27>=Setup!$D$12+1),0,((YEAR($AC27)*12)+MONTH($AC27))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":2},45041,{"$f":"IF(ISNA(VLOOKUP($C27,EmpAll,COLUMN(Emp!$E$4),0)),$AC27,IF(VLOOKUP($C27,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C27,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C27,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C27,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C27,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A27=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C27,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMIFS(OverValue,OverEmp,$C27,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1)),IF(ISNA(VLOOKUP($C27,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG27,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C27,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C27,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C27,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C27,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C27,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},120000,{"$f":"-IF($F27=\"Terminated\",0,IF($AA27=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C27,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA27*12)+(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB27/3,0))*4)+(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB27/6,0))*2)+(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F27=\"Terminated\",0,IF($AA27=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C27,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA27*12)+(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB27/3,0))*4)+(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB27/6,0))*2)+(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F27=\"Terminated\",0,IF($AA27=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C27,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA27*12)+(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB27/3,0))*4)+(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB27/6,0))*2)+(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F27=\"Terminated\",0,IF($AA27=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C27,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA27*12)+(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB27/3,0))*4)+(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB27/6,0))*2)+(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},120000,120000,{"$f":"-IF($F27=\"Terminated\",0,IF($AA27=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C27,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA27*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F27=\"Terminated\",0,IF($AA27=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C27,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA27*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F27=\"Terminated\",0,IF($AA27=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C27,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA27*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F27=\"Terminated\",0,IF($AA27=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C27,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC27),MONTH($AC27)+1,1),OverEnd,\">=\"&DATE(YEAR($AC27),MONTH($AC27),1))>0,SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA27*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C27)*(PayDate<=$AC27)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA27*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C27,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C27,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,0,{"$f":"IF(ISNUMBER($AL27),($AR27*$AL27)-$AI27-$AK27,MAX(0,IF($AL27=\"B\",IF($AR27<Setup!$C$32,($AR27*Setup!$D$32)-$AI27-$AK27,(($AR27-VLOOKUP($AR27,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR27,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR27,TaxBracket2,1),0,1,1)-$AI27-$AK27),IF($AR27<Setup!$C$21,($AR27*Setup!$D$21)-$AI27-$AK27,(($AR27-VLOOKUP($AR27,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR27,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR27,TaxBracket1,1),0,1,1)-$AI27-$AK27))))","v":0},{"$f":"IF(ISNUMBER($AL27),($AX27*$AL27)-$AI27-$AK27,MAX(0,IF($AL27=\"B\",IF($AX27<Setup!$C$32,($AX27*Setup!$D$32)-$AI27-$AK27,(($AX27-VLOOKUP($AX27,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX27,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX27,TaxBracket2,1),0,1,1)-$AI27-$AK27),IF($AX27<Setup!$C$21,($AX27*Setup!$D$21)-$AI27-$AK27,(($AX27-VLOOKUP($AX27,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX27,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX27,TaxBracket1,1),0,1,1)-$AI27-$AK27))))","v":0},0,1,0,120000]
[{"$f":"IF(ROW($A28)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B28,\"yyyy\")&TEXT($B28,\"mm\")&\"-\"&$C28)","v":"202304-EXS007"},{"$f":"IF(ROW($A28)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A28)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A28)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A28)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45041},{"$f":"IF(ROW($A28)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A28)-ROW($A$6)-IF(ROW($A28)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A28)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS007"},{"$f":"IF(ISNA(VLOOKUP($C28,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C28,EmpAll,COLUMN(Emp!$B$4),0))","v":"Phillips KE"},{"$f":"IF(ISNA(VLOOKUP($C28,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C28,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C28,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C28,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC28),MONTH($AC28)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C28,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC28),MONTH($AC28),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F28<>\"Active\",0,IF(COUNTIFS(OverEmp,$C28,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMIFS(OverValue,OverEmp,$C28,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1)),IF(AND($AC28>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C28)>0),SUMIFS(EmpIncrease,EmpCode,$C28),SUMIFS(EmpSalary,EmpCode,$C28))))","v":25000},{"$f":"IF($F28<>\"Active\",0,IF(COUNTIFS(OverEmp,$C28,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMIFS(OverValue,OverEmp,$C28,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1)),0))","v":0},{"$f":"IF($F28<>\"Active\",0,IF(COUNTIFS(OverEmp,$C28,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMIFS(OverValue,OverEmp,$C28,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1)),IF(MONTH(B28)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C28),0)))","v":0},{"$f":"IF($F28<>\"Active\",0,IF(COUNTIFS(OverEmp,$C28,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMIFS(OverValue,OverEmp,$C28,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1)),0))","v":0},{"$f":"IF($F28<>\"Active\",0,IF(COUNTIFS(OverEmp,$C28,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMIFS(OverValue,OverEmp,$C28,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1)),0))","v":0},25000,{"$f":"IF(COUNTIFS(OverEmp,$C28,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMIFS(OverValue,OverEmp,$C28,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1)),(($BA28/12*$AA28)+(BB28*IF(1-$BC28=0,0,BD28/(1-$BC28))))-IF($F28=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC28,PayEmp,$C28)))","v":3483.0833333333335},{"$f":"IF($F28=\"Terminated\",0,IF($AA28=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C28,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMIFS(OverValue,OverEmp,$C28,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA28)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA28,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28))))))","v":177.12},{"$f":"IF($F28=\"Terminated\",0,IF($AA28=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C28,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMIFS(OverValue,OverEmp,$C28,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA28)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA28,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28))))))","v":0},{"$f":"IF($F28=\"Terminated\",0,IF($AA28=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C28,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMIFS(OverValue,OverEmp,$C28,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA28)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA28,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28))))))","v":0},{"$f":"IF($F28=\"Terminated\",0,IF($AA28=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C28,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMIFS(OverValue,OverEmp,$C28,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA28)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA28,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28))))))","v":0},3660.2033333333334,21339.8,{"$f":"IF($F28=\"Terminated\",0,IF($AA28=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C28,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMIFS(OverValue,OverEmp,$C28,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA28)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA28,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28)))))))","v":177.12},{"$f":"IF($F28=\"Terminated\",0,IF($AA28=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C28,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMIFS(OverValue,OverEmp,$C28,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA28)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA28,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28)))))))","v":250},{"$f":"IF($F28=\"Terminated\",0,IF($AA28=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C28,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMIFS(OverValue,OverEmp,$C28,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA28)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA28,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28)))))))","v":0},{"$f":"IF($F28=\"Terminated\",0,IF($AA28=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C28,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMIFS(OverValue,OverEmp,$C28,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA28)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA28,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC28,PayEmp,$C28)))))))","v":0},427.12,25427.119999999999,4087.32,{"$f":"IF(OR($B28<=Setup!$E$12,$B28>=Setup!$D$12+1),0,IF($F28<>\"Active\",0,IF($AE28=\"Yes\",$AB28,((YEAR($AC28)*12)+MONTH($AC28))-((YEAR($AD28)*12)+MONTH($AD28)-1))))","v":2},{"$f":"IF(OR($B28<=Setup!$E$12,$B28>=Setup!$D$12+1),0,((YEAR($AC28)*12)+MONTH($AC28))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":2},45041,{"$f":"IF(ISNA(VLOOKUP($C28,EmpAll,COLUMN(Emp!$E$4),0)),$AC28,IF(VLOOKUP($C28,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C28,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C28,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C28,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C28,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A28=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C28,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMIFS(OverValue,OverEmp,$C28,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1)),IF(ISNA(VLOOKUP($C28,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG28,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C28,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C28,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C28,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C28,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C28,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},300000,{"$f":"-IF($F28=\"Terminated\",0,IF($AA28=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C28,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA28*12)+(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB28/3,0))*4)+(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB28/6,0))*2)+(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F28=\"Terminated\",0,IF($AA28=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C28,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA28*12)+(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB28/3,0))*4)+(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB28/6,0))*2)+(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F28=\"Terminated\",0,IF($AA28=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C28,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA28*12)+(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB28/3,0))*4)+(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB28/6,0))*2)+(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F28=\"Terminated\",0,IF($AA28=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C28,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA28*12)+(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB28/3,0))*4)+(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB28/6,0))*2)+(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},300000,300000,{"$f":"-IF($F28=\"Terminated\",0,IF($AA28=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C28,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA28*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F28=\"Terminated\",0,IF($AA28=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C28,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA28*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F28=\"Terminated\",0,IF($AA28=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C28,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA28*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F28=\"Terminated\",0,IF($AA28=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C28,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC28),MONTH($AC28)+1,1),OverEnd,\">=\"&DATE(YEAR($AC28),MONTH($AC28),1))>0,SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA28*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C28)*(PayDate<=$AC28)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA28*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C28,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C28,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},300000,0,{"$f":"IF(ISNUMBER($AL28),($AR28*$AL28)-$AI28-$AK28,MAX(0,IF($AL28=\"B\",IF($AR28<Setup!$C$32,($AR28*Setup!$D$32)-$AI28-$AK28,(($AR28-VLOOKUP($AR28,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR28,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR28,TaxBracket2,1),0,1,1)-$AI28-$AK28),IF($AR28<Setup!$C$21,($AR28*Setup!$D$21)-$AI28-$AK28,(($AR28-VLOOKUP($AR28,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR28,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR28,TaxBracket1,1),0,1,1)-$AI28-$AK28))))","v":41797},{"$f":"IF(ISNUMBER($AL28),($AX28*$AL28)-$AI28-$AK28,MAX(0,IF($AL28=\"B\",IF($AX28<Setup!$C$32,($AX28*Setup!$D$32)-$AI28-$AK28,(($AX28-VLOOKUP($AX28,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX28,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX28,TaxBracket2,1),0,1,1)-$AI28-$AK28),IF($AX28<Setup!$C$21,($AX28*Setup!$D$21)-$AI28-$AK28,(($AX28-VLOOKUP($AX28,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX28,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX28,TaxBracket1,1),0,1,1)-$AI28-$AK28))))","v":41797},0,1,0,300000]
[{"$f":"IF(ROW($A29)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B29,\"yyyy\")&TEXT($B29,\"mm\")&\"-\"&$C29)","v":"202304-EXS008"},{"$f":"IF(ROW($A29)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A29)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A29)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A29)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45041},{"$f":"IF(ROW($A29)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A29)-ROW($A$6)-IF(ROW($A29)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A29)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS008"},{"$f":"IF(ISNA(VLOOKUP($C29,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C29,EmpAll,COLUMN(Emp!$B$4),0))","v":"Matthews B"},{"$f":"IF(ISNA(VLOOKUP($C29,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C29,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C29,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C29,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC29),MONTH($AC29)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C29,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC29),MONTH($AC29),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F29<>\"Active\",0,IF(COUNTIFS(OverEmp,$C29,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMIFS(OverValue,OverEmp,$C29,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1)),IF(AND($AC29>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C29)>0),SUMIFS(EmpIncrease,EmpCode,$C29),SUMIFS(EmpSalary,EmpCode,$C29))))","v":9000},{"$f":"IF($F29<>\"Active\",0,IF(COUNTIFS(OverEmp,$C29,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMIFS(OverValue,OverEmp,$C29,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1)),0))","v":0},{"$f":"IF($F29<>\"Active\",0,IF(COUNTIFS(OverEmp,$C29,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMIFS(OverValue,OverEmp,$C29,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1)),IF(MONTH(B29)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C29),0)))","v":0},{"$f":"IF($F29<>\"Active\",0,IF(COUNTIFS(OverEmp,$C29,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMIFS(OverValue,OverEmp,$C29,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1)),0))","v":0},{"$f":"IF($F29<>\"Active\",0,IF(COUNTIFS(OverEmp,$C29,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMIFS(OverValue,OverEmp,$C29,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C29,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMIFS(OverValue,OverEmp,$C29,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1)),(($BA29/12*$AA29)+(BB29*IF(1-$BC29=0,0,BD29/(1-$BC29))))-IF($F29=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC29,PayEmp,$C29)))","v":183.75},{"$f":"IF($F29=\"Terminated\",0,IF($AA29=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C29,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMIFS(OverValue,OverEmp,$C29,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA29)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA29,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29))))))","v":90},{"$f":"IF($F29=\"Terminated\",0,IF($AA29=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C29,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMIFS(OverValue,OverEmp,$C29,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA29)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA29,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29))))))","v":0},{"$f":"IF($F29=\"Terminated\",0,IF($AA29=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C29,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMIFS(OverValue,OverEmp,$C29,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA29)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA29,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29))))))","v":0},{"$f":"IF($F29=\"Terminated\",0,IF($AA29=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C29,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMIFS(OverValue,OverEmp,$C29,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA29)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA29,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29))))))","v":0},273.75,8726.25,{"$f":"IF($F29=\"Terminated\",0,IF($AA29=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C29,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMIFS(OverValue,OverEmp,$C29,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA29)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA29,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29)))))))","v":90},{"$f":"IF($F29=\"Terminated\",0,IF($AA29=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C29,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMIFS(OverValue,OverEmp,$C29,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA29)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA29,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29)))))))","v":90},{"$f":"IF($F29=\"Terminated\",0,IF($AA29=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C29,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMIFS(OverValue,OverEmp,$C29,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA29)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA29,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29)))))))","v":0},{"$f":"IF($F29=\"Terminated\",0,IF($AA29=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C29,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMIFS(OverValue,OverEmp,$C29,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA29)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA29,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC29,PayEmp,$C29)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B29<=Setup!$E$12,$B29>=Setup!$D$12+1),0,IF($F29<>\"Active\",0,IF($AE29=\"Yes\",$AB29,((YEAR($AC29)*12)+MONTH($AC29))-((YEAR($AD29)*12)+MONTH($AD29)-1))))","v":2},{"$f":"IF(OR($B29<=Setup!$E$12,$B29>=Setup!$D$12+1),0,((YEAR($AC29)*12)+MONTH($AC29))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":2},45041,{"$f":"IF(ISNA(VLOOKUP($C29,EmpAll,COLUMN(Emp!$E$4),0)),$AC29,IF(VLOOKUP($C29,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C29,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C29,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C29,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C29,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A29=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C29,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMIFS(OverValue,OverEmp,$C29,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1)),IF(ISNA(VLOOKUP($C29,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG29,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C29,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C29,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C29,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C29,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C29,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F29=\"Terminated\",0,IF($AA29=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C29,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA29*12)+(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB29/3,0))*4)+(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB29/6,0))*2)+(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F29=\"Terminated\",0,IF($AA29=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C29,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA29*12)+(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB29/3,0))*4)+(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB29/6,0))*2)+(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F29=\"Terminated\",0,IF($AA29=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C29,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA29*12)+(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB29/3,0))*4)+(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB29/6,0))*2)+(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F29=\"Terminated\",0,IF($AA29=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C29,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA29*12)+(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB29/3,0))*4)+(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB29/6,0))*2)+(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F29=\"Terminated\",0,IF($AA29=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C29,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA29*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F29=\"Terminated\",0,IF($AA29=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C29,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA29*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F29=\"Terminated\",0,IF($AA29=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C29,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA29*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F29=\"Terminated\",0,IF($AA29=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C29,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC29),MONTH($AC29)+1,1),OverEnd,\">=\"&DATE(YEAR($AC29),MONTH($AC29),1))>0,SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA29*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C29)*(PayDate<=$AC29)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA29*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C29,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C29,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL29),($AR29*$AL29)-$AI29-$AK29,MAX(0,IF($AL29=\"B\",IF($AR29<Setup!$C$32,($AR29*Setup!$D$32)-$AI29-$AK29,(($AR29-VLOOKUP($AR29,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR29,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR29,TaxBracket2,1),0,1,1)-$AI29-$AK29),IF($AR29<Setup!$C$21,($AR29*Setup!$D$21)-$AI29-$AK29,(($AR29-VLOOKUP($AR29,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR29,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR29,TaxBracket1,1),0,1,1)-$AI29-$AK29))))","v":2205},{"$f":"IF(ISNUMBER($AL29),($AX29*$AL29)-$AI29-$AK29,MAX(0,IF($AL29=\"B\",IF($AX29<Setup!$C$32,($AX29*Setup!$D$32)-$AI29-$AK29,(($AX29-VLOOKUP($AX29,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX29,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX29,TaxBracket2,1),0,1,1)-$AI29-$AK29),IF($AX29<Setup!$C$21,($AX29*Setup!$D$21)-$AI29-$AK29,(($AX29-VLOOKUP($AX29,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX29,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX29,TaxBracket1,1),0,1,1)-$AI29-$AK29))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A30)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B30,\"yyyy\")&TEXT($B30,\"mm\")&\"-\"&$C30)","v":"202304-EXS009"},{"$f":"IF(ROW($A30)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A30)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A30)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A30)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45041},{"$f":"IF(ROW($A30)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A30)-ROW($A$6)-IF(ROW($A30)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A30)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS009"},{"$f":"IF(ISNA(VLOOKUP($C30,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C30,EmpAll,COLUMN(Emp!$B$4),0))","v":"Brown JT"},{"$f":"IF(ISNA(VLOOKUP($C30,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C30,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C30,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C30,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC30),MONTH($AC30)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C30,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC30),MONTH($AC30),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F30<>\"Active\",0,IF(COUNTIFS(OverEmp,$C30,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMIFS(OverValue,OverEmp,$C30,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1)),IF(AND($AC30>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C30)>0),SUMIFS(EmpIncrease,EmpCode,$C30),SUMIFS(EmpSalary,EmpCode,$C30))))","v":9000},{"$f":"IF($F30<>\"Active\",0,IF(COUNTIFS(OverEmp,$C30,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMIFS(OverValue,OverEmp,$C30,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1)),0))","v":0},{"$f":"IF($F30<>\"Active\",0,IF(COUNTIFS(OverEmp,$C30,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMIFS(OverValue,OverEmp,$C30,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1)),IF(MONTH(B30)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C30),0)))","v":0},{"$f":"IF($F30<>\"Active\",0,IF(COUNTIFS(OverEmp,$C30,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMIFS(OverValue,OverEmp,$C30,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1)),0))","v":0},{"$f":"IF($F30<>\"Active\",0,IF(COUNTIFS(OverEmp,$C30,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMIFS(OverValue,OverEmp,$C30,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C30,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMIFS(OverValue,OverEmp,$C30,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1)),(($BA30/12*$AA30)+(BB30*IF(1-$BC30=0,0,BD30/(1-$BC30))))-IF($F30=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC30,PayEmp,$C30)))","v":183.75},{"$f":"IF($F30=\"Terminated\",0,IF($AA30=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C30,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMIFS(OverValue,OverEmp,$C30,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA30)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA30,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30))))))","v":90},{"$f":"IF($F30=\"Terminated\",0,IF($AA30=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C30,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMIFS(OverValue,OverEmp,$C30,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA30)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA30,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30))))))","v":0},{"$f":"IF($F30=\"Terminated\",0,IF($AA30=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C30,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMIFS(OverValue,OverEmp,$C30,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA30)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA30,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30))))))","v":0},{"$f":"IF($F30=\"Terminated\",0,IF($AA30=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C30,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMIFS(OverValue,OverEmp,$C30,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA30)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA30,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30))))))","v":0},273.75,8726.25,{"$f":"IF($F30=\"Terminated\",0,IF($AA30=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C30,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMIFS(OverValue,OverEmp,$C30,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA30)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA30,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30)))))))","v":90},{"$f":"IF($F30=\"Terminated\",0,IF($AA30=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C30,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMIFS(OverValue,OverEmp,$C30,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA30)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA30,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30)))))))","v":90},{"$f":"IF($F30=\"Terminated\",0,IF($AA30=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C30,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMIFS(OverValue,OverEmp,$C30,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA30)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA30,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30)))))))","v":0},{"$f":"IF($F30=\"Terminated\",0,IF($AA30=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C30,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMIFS(OverValue,OverEmp,$C30,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA30)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA30,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC30,PayEmp,$C30)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B30<=Setup!$E$12,$B30>=Setup!$D$12+1),0,IF($F30<>\"Active\",0,IF($AE30=\"Yes\",$AB30,((YEAR($AC30)*12)+MONTH($AC30))-((YEAR($AD30)*12)+MONTH($AD30)-1))))","v":2},{"$f":"IF(OR($B30<=Setup!$E$12,$B30>=Setup!$D$12+1),0,((YEAR($AC30)*12)+MONTH($AC30))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":2},45041,{"$f":"IF(ISNA(VLOOKUP($C30,EmpAll,COLUMN(Emp!$E$4),0)),$AC30,IF(VLOOKUP($C30,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C30,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C30,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C30,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C30,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A30=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C30,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMIFS(OverValue,OverEmp,$C30,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1)),IF(ISNA(VLOOKUP($C30,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG30,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C30,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C30,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C30,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C30,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C30,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F30=\"Terminated\",0,IF($AA30=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C30,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA30*12)+(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB30/3,0))*4)+(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB30/6,0))*2)+(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F30=\"Terminated\",0,IF($AA30=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C30,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA30*12)+(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB30/3,0))*4)+(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB30/6,0))*2)+(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F30=\"Terminated\",0,IF($AA30=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C30,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA30*12)+(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB30/3,0))*4)+(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB30/6,0))*2)+(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F30=\"Terminated\",0,IF($AA30=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C30,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA30*12)+(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB30/3,0))*4)+(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB30/6,0))*2)+(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F30=\"Terminated\",0,IF($AA30=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C30,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA30*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F30=\"Terminated\",0,IF($AA30=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C30,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA30*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F30=\"Terminated\",0,IF($AA30=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C30,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA30*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F30=\"Terminated\",0,IF($AA30=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C30,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC30),MONTH($AC30)+1,1),OverEnd,\">=\"&DATE(YEAR($AC30),MONTH($AC30),1))>0,SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA30*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C30)*(PayDate<=$AC30)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA30*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C30,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C30,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL30),($AR30*$AL30)-$AI30-$AK30,MAX(0,IF($AL30=\"B\",IF($AR30<Setup!$C$32,($AR30*Setup!$D$32)-$AI30-$AK30,(($AR30-VLOOKUP($AR30,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR30,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR30,TaxBracket2,1),0,1,1)-$AI30-$AK30),IF($AR30<Setup!$C$21,($AR30*Setup!$D$21)-$AI30-$AK30,(($AR30-VLOOKUP($AR30,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR30,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR30,TaxBracket1,1),0,1,1)-$AI30-$AK30))))","v":2205},{"$f":"IF(ISNUMBER($AL30),($AX30*$AL30)-$AI30-$AK30,MAX(0,IF($AL30=\"B\",IF($AX30<Setup!$C$32,($AX30*Setup!$D$32)-$AI30-$AK30,(($AX30-VLOOKUP($AX30,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX30,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX30,TaxBracket2,1),0,1,1)-$AI30-$AK30),IF($AX30<Setup!$C$21,($AX30*Setup!$D$21)-$AI30-$AK30,(($AX30-VLOOKUP($AX30,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX30,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX30,TaxBracket1,1),0,1,1)-$AI30-$AK30))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A31)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B31,\"yyyy\")&TEXT($B31,\"mm\")&\"-\"&$C31)","v":"202304-EXS010"},{"$f":"IF(ROW($A31)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A31)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A31)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A31)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45041},{"$f":"IF(ROW($A31)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A31)-ROW($A$6)-IF(ROW($A31)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A31)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS010"},{"$f":"IF(ISNA(VLOOKUP($C31,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C31,EmpAll,COLUMN(Emp!$B$4),0))","v":"Lewis I"},{"$f":"IF(ISNA(VLOOKUP($C31,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C31,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C31,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C31,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC31),MONTH($AC31)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C31,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC31),MONTH($AC31),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F31<>\"Active\",0,IF(COUNTIFS(OverEmp,$C31,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMIFS(OverValue,OverEmp,$C31,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1)),IF(AND($AC31>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C31)>0),SUMIFS(EmpIncrease,EmpCode,$C31),SUMIFS(EmpSalary,EmpCode,$C31))))","v":9000},{"$f":"IF($F31<>\"Active\",0,IF(COUNTIFS(OverEmp,$C31,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMIFS(OverValue,OverEmp,$C31,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1)),0))","v":0},{"$f":"IF($F31<>\"Active\",0,IF(COUNTIFS(OverEmp,$C31,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMIFS(OverValue,OverEmp,$C31,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1)),IF(MONTH(B31)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C31),0)))","v":0},{"$f":"IF($F31<>\"Active\",0,IF(COUNTIFS(OverEmp,$C31,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMIFS(OverValue,OverEmp,$C31,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1)),0))","v":0},{"$f":"IF($F31<>\"Active\",0,IF(COUNTIFS(OverEmp,$C31,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMIFS(OverValue,OverEmp,$C31,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C31,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMIFS(OverValue,OverEmp,$C31,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1)),(($BA31/12*$AA31)+(BB31*IF(1-$BC31=0,0,BD31/(1-$BC31))))-IF($F31=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC31,PayEmp,$C31)))","v":183.75},{"$f":"IF($F31=\"Terminated\",0,IF($AA31=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C31,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMIFS(OverValue,OverEmp,$C31,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA31)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA31,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31))))))","v":90},{"$f":"IF($F31=\"Terminated\",0,IF($AA31=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C31,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMIFS(OverValue,OverEmp,$C31,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA31)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA31,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31))))))","v":0},{"$f":"IF($F31=\"Terminated\",0,IF($AA31=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C31,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMIFS(OverValue,OverEmp,$C31,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA31)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA31,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31))))))","v":0},{"$f":"IF($F31=\"Terminated\",0,IF($AA31=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C31,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMIFS(OverValue,OverEmp,$C31,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA31)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA31,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31))))))","v":0},273.75,8726.25,{"$f":"IF($F31=\"Terminated\",0,IF($AA31=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C31,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMIFS(OverValue,OverEmp,$C31,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA31)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA31,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31)))))))","v":90},{"$f":"IF($F31=\"Terminated\",0,IF($AA31=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C31,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMIFS(OverValue,OverEmp,$C31,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA31)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA31,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31)))))))","v":90},{"$f":"IF($F31=\"Terminated\",0,IF($AA31=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C31,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMIFS(OverValue,OverEmp,$C31,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA31)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA31,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31)))))))","v":0},{"$f":"IF($F31=\"Terminated\",0,IF($AA31=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C31,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMIFS(OverValue,OverEmp,$C31,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA31)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA31,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC31,PayEmp,$C31)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B31<=Setup!$E$12,$B31>=Setup!$D$12+1),0,IF($F31<>\"Active\",0,IF($AE31=\"Yes\",$AB31,((YEAR($AC31)*12)+MONTH($AC31))-((YEAR($AD31)*12)+MONTH($AD31)-1))))","v":2},{"$f":"IF(OR($B31<=Setup!$E$12,$B31>=Setup!$D$12+1),0,((YEAR($AC31)*12)+MONTH($AC31))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":2},45041,{"$f":"IF(ISNA(VLOOKUP($C31,EmpAll,COLUMN(Emp!$E$4),0)),$AC31,IF(VLOOKUP($C31,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C31,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C31,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C31,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C31,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A31=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C31,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMIFS(OverValue,OverEmp,$C31,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1)),IF(ISNA(VLOOKUP($C31,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG31,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C31,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C31,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C31,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C31,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C31,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F31=\"Terminated\",0,IF($AA31=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C31,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA31*12)+(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB31/3,0))*4)+(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB31/6,0))*2)+(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F31=\"Terminated\",0,IF($AA31=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C31,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA31*12)+(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB31/3,0))*4)+(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB31/6,0))*2)+(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F31=\"Terminated\",0,IF($AA31=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C31,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA31*12)+(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB31/3,0))*4)+(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB31/6,0))*2)+(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F31=\"Terminated\",0,IF($AA31=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C31,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA31*12)+(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB31/3,0))*4)+(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB31/6,0))*2)+(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F31=\"Terminated\",0,IF($AA31=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C31,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA31*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F31=\"Terminated\",0,IF($AA31=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C31,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA31*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F31=\"Terminated\",0,IF($AA31=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C31,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA31*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F31=\"Terminated\",0,IF($AA31=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C31,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC31),MONTH($AC31)+1,1),OverEnd,\">=\"&DATE(YEAR($AC31),MONTH($AC31),1))>0,SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA31*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C31)*(PayDate<=$AC31)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA31*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C31,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C31,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL31),($AR31*$AL31)-$AI31-$AK31,MAX(0,IF($AL31=\"B\",IF($AR31<Setup!$C$32,($AR31*Setup!$D$32)-$AI31-$AK31,(($AR31-VLOOKUP($AR31,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR31,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR31,TaxBracket2,1),0,1,1)-$AI31-$AK31),IF($AR31<Setup!$C$21,($AR31*Setup!$D$21)-$AI31-$AK31,(($AR31-VLOOKUP($AR31,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR31,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR31,TaxBracket1,1),0,1,1)-$AI31-$AK31))))","v":2205},{"$f":"IF(ISNUMBER($AL31),($AX31*$AL31)-$AI31-$AK31,MAX(0,IF($AL31=\"B\",IF($AX31<Setup!$C$32,($AX31*Setup!$D$32)-$AI31-$AK31,(($AX31-VLOOKUP($AX31,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX31,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX31,TaxBracket2,1),0,1,1)-$AI31-$AK31),IF($AX31<Setup!$C$21,($AX31*Setup!$D$21)-$AI31-$AK31,(($AX31-VLOOKUP($AX31,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX31,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX31,TaxBracket1,1),0,1,1)-$AI31-$AK31))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A32)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B32,\"yyyy\")&TEXT($B32,\"mm\")&\"-\"&$C32)","v":"202304-EXS011"},{"$f":"IF(ROW($A32)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A32)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A32)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A32)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45041},{"$f":"IF(ROW($A32)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A32)-ROW($A$6)-IF(ROW($A32)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A32)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS011"},{"$f":"IF(ISNA(VLOOKUP($C32,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C32,EmpAll,COLUMN(Emp!$B$4),0))","v":"Newport GD"},{"$f":"IF(ISNA(VLOOKUP($C32,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C32,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C32,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C32,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC32),MONTH($AC32)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C32,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC32),MONTH($AC32),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F32<>\"Active\",0,IF(COUNTIFS(OverEmp,$C32,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMIFS(OverValue,OverEmp,$C32,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1)),IF(AND($AC32>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C32)>0),SUMIFS(EmpIncrease,EmpCode,$C32),SUMIFS(EmpSalary,EmpCode,$C32))))","v":5000},{"$f":"IF($F32<>\"Active\",0,IF(COUNTIFS(OverEmp,$C32,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMIFS(OverValue,OverEmp,$C32,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1)),0))","v":0},{"$f":"IF($F32<>\"Active\",0,IF(COUNTIFS(OverEmp,$C32,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMIFS(OverValue,OverEmp,$C32,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1)),IF(MONTH(B32)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C32),0)))","v":0},{"$f":"IF($F32<>\"Active\",0,IF(COUNTIFS(OverEmp,$C32,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMIFS(OverValue,OverEmp,$C32,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1)),0))","v":0},{"$f":"IF($F32<>\"Active\",0,IF(COUNTIFS(OverEmp,$C32,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMIFS(OverValue,OverEmp,$C32,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C32,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMIFS(OverValue,OverEmp,$C32,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1)),(($BA32/12*$AA32)+(BB32*IF(1-$BC32=0,0,BD32/(1-$BC32))))-IF($F32=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC32,PayEmp,$C32)))","v":0},{"$f":"IF($F32=\"Terminated\",0,IF($AA32=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C32,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMIFS(OverValue,OverEmp,$C32,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA32)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA32,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32))))))","v":50},{"$f":"IF($F32=\"Terminated\",0,IF($AA32=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C32,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMIFS(OverValue,OverEmp,$C32,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA32)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA32,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32))))))","v":0},{"$f":"IF($F32=\"Terminated\",0,IF($AA32=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C32,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMIFS(OverValue,OverEmp,$C32,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA32)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA32,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32))))))","v":0},{"$f":"IF($F32=\"Terminated\",0,IF($AA32=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C32,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMIFS(OverValue,OverEmp,$C32,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA32)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA32,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32))))))","v":0},50,4950,{"$f":"IF($F32=\"Terminated\",0,IF($AA32=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C32,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMIFS(OverValue,OverEmp,$C32,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA32)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA32,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32)))))))","v":50},{"$f":"IF($F32=\"Terminated\",0,IF($AA32=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C32,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMIFS(OverValue,OverEmp,$C32,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA32)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA32,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32)))))))","v":50},{"$f":"IF($F32=\"Terminated\",0,IF($AA32=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C32,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMIFS(OverValue,OverEmp,$C32,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA32)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA32,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32)))))))","v":0},{"$f":"IF($F32=\"Terminated\",0,IF($AA32=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C32,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMIFS(OverValue,OverEmp,$C32,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA32)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA32,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC32,PayEmp,$C32)))))))","v":0},100,5100,150,{"$f":"IF(OR($B32<=Setup!$E$12,$B32>=Setup!$D$12+1),0,IF($F32<>\"Active\",0,IF($AE32=\"Yes\",$AB32,((YEAR($AC32)*12)+MONTH($AC32))-((YEAR($AD32)*12)+MONTH($AD32)-1))))","v":2},{"$f":"IF(OR($B32<=Setup!$E$12,$B32>=Setup!$D$12+1),0,((YEAR($AC32)*12)+MONTH($AC32))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":2},45041,{"$f":"IF(ISNA(VLOOKUP($C32,EmpAll,COLUMN(Emp!$E$4),0)),$AC32,IF(VLOOKUP($C32,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C32,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C32,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C32,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C32,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A32=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C32,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMIFS(OverValue,OverEmp,$C32,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1)),IF(ISNA(VLOOKUP($C32,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG32,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C32,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C32,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C32,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C32,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C32,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F32=\"Terminated\",0,IF($AA32=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C32,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA32*12)+(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB32/3,0))*4)+(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB32/6,0))*2)+(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F32=\"Terminated\",0,IF($AA32=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C32,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA32*12)+(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB32/3,0))*4)+(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB32/6,0))*2)+(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F32=\"Terminated\",0,IF($AA32=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C32,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA32*12)+(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB32/3,0))*4)+(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB32/6,0))*2)+(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F32=\"Terminated\",0,IF($AA32=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C32,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA32*12)+(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB32/3,0))*4)+(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB32/6,0))*2)+(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F32=\"Terminated\",0,IF($AA32=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C32,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA32*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F32=\"Terminated\",0,IF($AA32=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C32,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA32*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F32=\"Terminated\",0,IF($AA32=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C32,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA32*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F32=\"Terminated\",0,IF($AA32=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C32,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC32),MONTH($AC32)+1,1),OverEnd,\">=\"&DATE(YEAR($AC32),MONTH($AC32),1))>0,SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA32*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C32)*(PayDate<=$AC32)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA32*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C32,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C32,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL32),($AR32*$AL32)-$AI32-$AK32,MAX(0,IF($AL32=\"B\",IF($AR32<Setup!$C$32,($AR32*Setup!$D$32)-$AI32-$AK32,(($AR32-VLOOKUP($AR32,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR32,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR32,TaxBracket2,1),0,1,1)-$AI32-$AK32),IF($AR32<Setup!$C$21,($AR32*Setup!$D$21)-$AI32-$AK32,(($AR32-VLOOKUP($AR32,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR32,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR32,TaxBracket1,1),0,1,1)-$AI32-$AK32))))","v":0},{"$f":"IF(ISNUMBER($AL32),($AX32*$AL32)-$AI32-$AK32,MAX(0,IF($AL32=\"B\",IF($AX32<Setup!$C$32,($AX32*Setup!$D$32)-$AI32-$AK32,(($AX32-VLOOKUP($AX32,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX32,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX32,TaxBracket2,1),0,1,1)-$AI32-$AK32),IF($AX32<Setup!$C$21,($AX32*Setup!$D$21)-$AI32-$AK32,(($AX32-VLOOKUP($AX32,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX32,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX32,TaxBracket1,1),0,1,1)-$AI32-$AK32))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A33)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B33,\"yyyy\")&TEXT($B33,\"mm\")&\"-\"&$C33)","v":"202304-EXS012"},{"$f":"IF(ROW($A33)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A33)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A33)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A33)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45041},{"$f":"IF(ROW($A33)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A33)-ROW($A$6)-IF(ROW($A33)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A33)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS012"},{"$f":"IF(ISNA(VLOOKUP($C33,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C33,EmpAll,COLUMN(Emp!$B$4),0))","v":"Williams VS"},{"$f":"IF(ISNA(VLOOKUP($C33,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C33,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C33,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C33,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC33),MONTH($AC33)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C33,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC33),MONTH($AC33),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F33<>\"Active\",0,IF(COUNTIFS(OverEmp,$C33,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMIFS(OverValue,OverEmp,$C33,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1)),IF(AND($AC33>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C33)>0),SUMIFS(EmpIncrease,EmpCode,$C33),SUMIFS(EmpSalary,EmpCode,$C33))))","v":5000},{"$f":"IF($F33<>\"Active\",0,IF(COUNTIFS(OverEmp,$C33,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMIFS(OverValue,OverEmp,$C33,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1)),0))","v":0},{"$f":"IF($F33<>\"Active\",0,IF(COUNTIFS(OverEmp,$C33,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMIFS(OverValue,OverEmp,$C33,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1)),IF(MONTH(B33)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C33),0)))","v":0},{"$f":"IF($F33<>\"Active\",0,IF(COUNTIFS(OverEmp,$C33,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMIFS(OverValue,OverEmp,$C33,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1)),0))","v":0},{"$f":"IF($F33<>\"Active\",0,IF(COUNTIFS(OverEmp,$C33,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMIFS(OverValue,OverEmp,$C33,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C33,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMIFS(OverValue,OverEmp,$C33,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1)),(($BA33/12*$AA33)+(BB33*IF(1-$BC33=0,0,BD33/(1-$BC33))))-IF($F33=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC33,PayEmp,$C33)))","v":0},{"$f":"IF($F33=\"Terminated\",0,IF($AA33=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C33,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMIFS(OverValue,OverEmp,$C33,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA33)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA33,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33))))))","v":50},{"$f":"IF($F33=\"Terminated\",0,IF($AA33=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C33,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMIFS(OverValue,OverEmp,$C33,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA33)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA33,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33))))))","v":0},{"$f":"IF($F33=\"Terminated\",0,IF($AA33=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C33,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMIFS(OverValue,OverEmp,$C33,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA33)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA33,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33))))))","v":0},{"$f":"IF($F33=\"Terminated\",0,IF($AA33=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C33,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMIFS(OverValue,OverEmp,$C33,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA33)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA33,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33))))))","v":0},50,4950,{"$f":"IF($F33=\"Terminated\",0,IF($AA33=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C33,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMIFS(OverValue,OverEmp,$C33,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA33)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA33,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33)))))))","v":50},{"$f":"IF($F33=\"Terminated\",0,IF($AA33=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C33,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMIFS(OverValue,OverEmp,$C33,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA33)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA33,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33)))))))","v":50},{"$f":"IF($F33=\"Terminated\",0,IF($AA33=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C33,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMIFS(OverValue,OverEmp,$C33,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA33)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA33,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33)))))))","v":0},{"$f":"IF($F33=\"Terminated\",0,IF($AA33=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C33,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMIFS(OverValue,OverEmp,$C33,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA33)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA33,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC33,PayEmp,$C33)))))))","v":0},100,5100,150,{"$f":"IF(OR($B33<=Setup!$E$12,$B33>=Setup!$D$12+1),0,IF($F33<>\"Active\",0,IF($AE33=\"Yes\",$AB33,((YEAR($AC33)*12)+MONTH($AC33))-((YEAR($AD33)*12)+MONTH($AD33)-1))))","v":2},{"$f":"IF(OR($B33<=Setup!$E$12,$B33>=Setup!$D$12+1),0,((YEAR($AC33)*12)+MONTH($AC33))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":2},45041,{"$f":"IF(ISNA(VLOOKUP($C33,EmpAll,COLUMN(Emp!$E$4),0)),$AC33,IF(VLOOKUP($C33,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C33,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C33,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C33,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C33,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A33=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C33,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMIFS(OverValue,OverEmp,$C33,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1)),IF(ISNA(VLOOKUP($C33,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG33,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C33,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C33,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C33,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C33,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C33,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F33=\"Terminated\",0,IF($AA33=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C33,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA33*12)+(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB33/3,0))*4)+(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB33/6,0))*2)+(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F33=\"Terminated\",0,IF($AA33=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C33,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA33*12)+(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB33/3,0))*4)+(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB33/6,0))*2)+(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F33=\"Terminated\",0,IF($AA33=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C33,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA33*12)+(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB33/3,0))*4)+(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB33/6,0))*2)+(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F33=\"Terminated\",0,IF($AA33=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C33,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA33*12)+(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB33/3,0))*4)+(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB33/6,0))*2)+(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F33=\"Terminated\",0,IF($AA33=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C33,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA33*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F33=\"Terminated\",0,IF($AA33=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C33,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA33*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F33=\"Terminated\",0,IF($AA33=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C33,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA33*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F33=\"Terminated\",0,IF($AA33=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C33,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC33),MONTH($AC33)+1,1),OverEnd,\">=\"&DATE(YEAR($AC33),MONTH($AC33),1))>0,SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA33*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C33)*(PayDate<=$AC33)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA33*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C33,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C33,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL33),($AR33*$AL33)-$AI33-$AK33,MAX(0,IF($AL33=\"B\",IF($AR33<Setup!$C$32,($AR33*Setup!$D$32)-$AI33-$AK33,(($AR33-VLOOKUP($AR33,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR33,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR33,TaxBracket2,1),0,1,1)-$AI33-$AK33),IF($AR33<Setup!$C$21,($AR33*Setup!$D$21)-$AI33-$AK33,(($AR33-VLOOKUP($AR33,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR33,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR33,TaxBracket1,1),0,1,1)-$AI33-$AK33))))","v":0},{"$f":"IF(ISNUMBER($AL33),($AX33*$AL33)-$AI33-$AK33,MAX(0,IF($AL33=\"B\",IF($AX33<Setup!$C$32,($AX33*Setup!$D$32)-$AI33-$AK33,(($AX33-VLOOKUP($AX33,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX33,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX33,TaxBracket2,1),0,1,1)-$AI33-$AK33),IF($AX33<Setup!$C$21,($AX33*Setup!$D$21)-$AI33-$AK33,(($AX33-VLOOKUP($AX33,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX33,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX33,TaxBracket1,1),0,1,1)-$AI33-$AK33))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A34)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B34,\"yyyy\")&TEXT($B34,\"mm\")&\"-\"&$C34)","v":"202304-EXS013"},{"$f":"IF(ROW($A34)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A34)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A34)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A34)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45041},{"$f":"IF(ROW($A34)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A34)-ROW($A$6)-IF(ROW($A34)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A34)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS013"},{"$f":"IF(ISNA(VLOOKUP($C34,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C34,EmpAll,COLUMN(Emp!$B$4),0))","v":"East WD"},{"$f":"IF(ISNA(VLOOKUP($C34,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C34,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C34,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C34,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC34),MONTH($AC34)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C34,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC34),MONTH($AC34),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F34<>\"Active\",0,IF(COUNTIFS(OverEmp,$C34,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMIFS(OverValue,OverEmp,$C34,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1)),IF(AND($AC34>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C34)>0),SUMIFS(EmpIncrease,EmpCode,$C34),SUMIFS(EmpSalary,EmpCode,$C34))))","v":5000},{"$f":"IF($F34<>\"Active\",0,IF(COUNTIFS(OverEmp,$C34,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMIFS(OverValue,OverEmp,$C34,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1)),0))","v":0},{"$f":"IF($F34<>\"Active\",0,IF(COUNTIFS(OverEmp,$C34,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMIFS(OverValue,OverEmp,$C34,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1)),IF(MONTH(B34)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C34),0)))","v":0},{"$f":"IF($F34<>\"Active\",0,IF(COUNTIFS(OverEmp,$C34,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMIFS(OverValue,OverEmp,$C34,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1)),0))","v":0},{"$f":"IF($F34<>\"Active\",0,IF(COUNTIFS(OverEmp,$C34,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMIFS(OverValue,OverEmp,$C34,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C34,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMIFS(OverValue,OverEmp,$C34,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1)),(($BA34/12*$AA34)+(BB34*IF(1-$BC34=0,0,BD34/(1-$BC34))))-IF($F34=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC34,PayEmp,$C34)))","v":0},{"$f":"IF($F34=\"Terminated\",0,IF($AA34=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C34,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMIFS(OverValue,OverEmp,$C34,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA34)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA34,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34))))))","v":50},{"$f":"IF($F34=\"Terminated\",0,IF($AA34=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C34,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMIFS(OverValue,OverEmp,$C34,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA34)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA34,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34))))))","v":0},{"$f":"IF($F34=\"Terminated\",0,IF($AA34=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C34,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMIFS(OverValue,OverEmp,$C34,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA34)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA34,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34))))))","v":0},{"$f":"IF($F34=\"Terminated\",0,IF($AA34=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C34,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMIFS(OverValue,OverEmp,$C34,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA34)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA34,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34))))))","v":0},50,4950,{"$f":"IF($F34=\"Terminated\",0,IF($AA34=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C34,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMIFS(OverValue,OverEmp,$C34,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA34)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA34,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34)))))))","v":50},{"$f":"IF($F34=\"Terminated\",0,IF($AA34=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C34,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMIFS(OverValue,OverEmp,$C34,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA34)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA34,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34)))))))","v":50},{"$f":"IF($F34=\"Terminated\",0,IF($AA34=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C34,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMIFS(OverValue,OverEmp,$C34,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA34)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA34,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34)))))))","v":0},{"$f":"IF($F34=\"Terminated\",0,IF($AA34=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C34,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMIFS(OverValue,OverEmp,$C34,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA34)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA34,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC34,PayEmp,$C34)))))))","v":0},100,5100,150,{"$f":"IF(OR($B34<=Setup!$E$12,$B34>=Setup!$D$12+1),0,IF($F34<>\"Active\",0,IF($AE34=\"Yes\",$AB34,((YEAR($AC34)*12)+MONTH($AC34))-((YEAR($AD34)*12)+MONTH($AD34)-1))))","v":2},{"$f":"IF(OR($B34<=Setup!$E$12,$B34>=Setup!$D$12+1),0,((YEAR($AC34)*12)+MONTH($AC34))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":2},45041,{"$f":"IF(ISNA(VLOOKUP($C34,EmpAll,COLUMN(Emp!$E$4),0)),$AC34,IF(VLOOKUP($C34,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C34,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C34,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C34,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C34,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A34=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C34,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMIFS(OverValue,OverEmp,$C34,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1)),IF(ISNA(VLOOKUP($C34,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG34,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C34,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C34,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C34,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C34,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C34,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F34=\"Terminated\",0,IF($AA34=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C34,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA34*12)+(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB34/3,0))*4)+(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB34/6,0))*2)+(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F34=\"Terminated\",0,IF($AA34=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C34,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA34*12)+(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB34/3,0))*4)+(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB34/6,0))*2)+(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F34=\"Terminated\",0,IF($AA34=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C34,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA34*12)+(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB34/3,0))*4)+(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB34/6,0))*2)+(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F34=\"Terminated\",0,IF($AA34=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C34,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA34*12)+(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB34/3,0))*4)+(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB34/6,0))*2)+(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F34=\"Terminated\",0,IF($AA34=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C34,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA34*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F34=\"Terminated\",0,IF($AA34=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C34,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA34*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F34=\"Terminated\",0,IF($AA34=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C34,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA34*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F34=\"Terminated\",0,IF($AA34=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C34,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC34),MONTH($AC34)+1,1),OverEnd,\">=\"&DATE(YEAR($AC34),MONTH($AC34),1))>0,SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA34*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C34)*(PayDate<=$AC34)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA34*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C34,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C34,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL34),($AR34*$AL34)-$AI34-$AK34,MAX(0,IF($AL34=\"B\",IF($AR34<Setup!$C$32,($AR34*Setup!$D$32)-$AI34-$AK34,(($AR34-VLOOKUP($AR34,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR34,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR34,TaxBracket2,1),0,1,1)-$AI34-$AK34),IF($AR34<Setup!$C$21,($AR34*Setup!$D$21)-$AI34-$AK34,(($AR34-VLOOKUP($AR34,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR34,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR34,TaxBracket1,1),0,1,1)-$AI34-$AK34))))","v":0},{"$f":"IF(ISNUMBER($AL34),($AX34*$AL34)-$AI34-$AK34,MAX(0,IF($AL34=\"B\",IF($AX34<Setup!$C$32,($AX34*Setup!$D$32)-$AI34-$AK34,(($AX34-VLOOKUP($AX34,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX34,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX34,TaxBracket2,1),0,1,1)-$AI34-$AK34),IF($AX34<Setup!$C$21,($AX34*Setup!$D$21)-$AI34-$AK34,(($AX34-VLOOKUP($AX34,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX34,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX34,TaxBracket1,1),0,1,1)-$AI34-$AK34))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A35)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B35,\"yyyy\")&TEXT($B35,\"mm\")&\"-\"&$C35)","v":"202304-EXS014"},{"$f":"IF(ROW($A35)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A35)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A35)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A35)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45041},{"$f":"IF(ROW($A35)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A35)-ROW($A$6)-IF(ROW($A35)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A35)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS014"},{"$f":"IF(ISNA(VLOOKUP($C35,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C35,EmpAll,COLUMN(Emp!$B$4),0))","v":"Ross Q"},{"$f":"IF(ISNA(VLOOKUP($C35,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C35,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C35,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C35,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC35),MONTH($AC35)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C35,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC35),MONTH($AC35),0)),\"Terminated\",\"Active\")))","v":"Inactive"},{"$f":"IF($F35<>\"Active\",0,IF(COUNTIFS(OverEmp,$C35,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMIFS(OverValue,OverEmp,$C35,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1)),IF(AND($AC35>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C35)>0),SUMIFS(EmpIncrease,EmpCode,$C35),SUMIFS(EmpSalary,EmpCode,$C35))))","v":0},{"$f":"IF($F35<>\"Active\",0,IF(COUNTIFS(OverEmp,$C35,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMIFS(OverValue,OverEmp,$C35,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1)),0))","v":0},{"$f":"IF($F35<>\"Active\",0,IF(COUNTIFS(OverEmp,$C35,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMIFS(OverValue,OverEmp,$C35,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1)),IF(MONTH(B35)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C35),0)))","v":0},{"$f":"IF($F35<>\"Active\",0,IF(COUNTIFS(OverEmp,$C35,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMIFS(OverValue,OverEmp,$C35,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1)),0))","v":0},{"$f":"IF($F35<>\"Active\",0,IF(COUNTIFS(OverEmp,$C35,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMIFS(OverValue,OverEmp,$C35,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C35,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMIFS(OverValue,OverEmp,$C35,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1)),(($BA35/12*$AA35)+(BB35*IF(1-$BC35=0,0,BD35/(1-$BC35))))-IF($F35=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC35,PayEmp,$C35)))","v":0},{"$f":"IF($F35=\"Terminated\",0,IF($AA35=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C35,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMIFS(OverValue,OverEmp,$C35,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA35)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA35,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35))))))","v":0},{"$f":"IF($F35=\"Terminated\",0,IF($AA35=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C35,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMIFS(OverValue,OverEmp,$C35,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA35)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA35,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35))))))","v":0},{"$f":"IF($F35=\"Terminated\",0,IF($AA35=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C35,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMIFS(OverValue,OverEmp,$C35,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA35)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA35,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35))))))","v":0},{"$f":"IF($F35=\"Terminated\",0,IF($AA35=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C35,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMIFS(OverValue,OverEmp,$C35,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA35)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA35,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35))))))","v":0},0,0,{"$f":"IF($F35=\"Terminated\",0,IF($AA35=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C35,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMIFS(OverValue,OverEmp,$C35,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA35)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA35,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35)))))))","v":0},{"$f":"IF($F35=\"Terminated\",0,IF($AA35=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C35,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMIFS(OverValue,OverEmp,$C35,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA35)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA35,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35)))))))","v":0},{"$f":"IF($F35=\"Terminated\",0,IF($AA35=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C35,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMIFS(OverValue,OverEmp,$C35,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA35)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA35,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35)))))))","v":0},{"$f":"IF($F35=\"Terminated\",0,IF($AA35=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C35,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMIFS(OverValue,OverEmp,$C35,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA35)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA35,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC35,PayEmp,$C35)))))))","v":0},0,0,0,{"$f":"IF(OR($B35<=Setup!$E$12,$B35>=Setup!$D$12+1),0,IF($F35<>\"Active\",0,IF($AE35=\"Yes\",$AB35,((YEAR($AC35)*12)+MONTH($AC35))-((YEAR($AD35)*12)+MONTH($AD35)-1))))","v":0},{"$f":"IF(OR($B35<=Setup!$E$12,$B35>=Setup!$D$12+1),0,((YEAR($AC35)*12)+MONTH($AC35))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":2},45041,{"$f":"IF(ISNA(VLOOKUP($C35,EmpAll,COLUMN(Emp!$E$4),0)),$AC35,IF(VLOOKUP($C35,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C35,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-06-25"},{"$f":"IF(ISNA(VLOOKUP($C35,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C35,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C35,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A35=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C35,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMIFS(OverValue,OverEmp,$C35,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1)),IF(ISNA(VLOOKUP($C35,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG35,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C35,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C35,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C35,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C35,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C35,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F35=\"Terminated\",0,IF($AA35=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C35,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA35*12)+(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB35/3,0))*4)+(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB35/6,0))*2)+(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F35=\"Terminated\",0,IF($AA35=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C35,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA35*12)+(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB35/3,0))*4)+(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB35/6,0))*2)+(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F35=\"Terminated\",0,IF($AA35=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C35,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA35*12)+(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB35/3,0))*4)+(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB35/6,0))*2)+(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F35=\"Terminated\",0,IF($AA35=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C35,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA35*12)+(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB35/3,0))*4)+(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB35/6,0))*2)+(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F35=\"Terminated\",0,IF($AA35=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C35,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA35*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F35=\"Terminated\",0,IF($AA35=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C35,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA35*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F35=\"Terminated\",0,IF($AA35=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C35,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA35*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F35=\"Terminated\",0,IF($AA35=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C35,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC35),MONTH($AC35)+1,1),OverEnd,\">=\"&DATE(YEAR($AC35),MONTH($AC35),1))>0,SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA35*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C35)*(PayDate<=$AC35)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA35*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C35,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C35,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL35),($AR35*$AL35)-$AI35-$AK35,MAX(0,IF($AL35=\"B\",IF($AR35<Setup!$C$32,($AR35*Setup!$D$32)-$AI35-$AK35,(($AR35-VLOOKUP($AR35,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR35,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR35,TaxBracket2,1),0,1,1)-$AI35-$AK35),IF($AR35<Setup!$C$21,($AR35*Setup!$D$21)-$AI35-$AK35,(($AR35-VLOOKUP($AR35,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR35,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR35,TaxBracket1,1),0,1,1)-$AI35-$AK35))))","v":0},{"$f":"IF(ISNUMBER($AL35),($AX35*$AL35)-$AI35-$AK35,MAX(0,IF($AL35=\"B\",IF($AX35<Setup!$C$32,($AX35*Setup!$D$32)-$AI35-$AK35,(($AX35-VLOOKUP($AX35,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX35,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX35,TaxBracket2,1),0,1,1)-$AI35-$AK35),IF($AX35<Setup!$C$21,($AX35*Setup!$D$21)-$AI35-$AK35,(($AX35-VLOOKUP($AX35,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX35,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX35,TaxBracket1,1),0,1,1)-$AI35-$AK35))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A36)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B36,\"yyyy\")&TEXT($B36,\"mm\")&\"-\"&$C36)","v":"202304-EXS015"},{"$f":"IF(ROW($A36)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A36)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A36)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A36)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45041},{"$f":"IF(ROW($A36)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A36)-ROW($A$6)-IF(ROW($A36)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A36)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS015"},{"$f":"IF(ISNA(VLOOKUP($C36,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C36,EmpAll,COLUMN(Emp!$B$4),0))","v":"Graham L"},{"$f":"IF(ISNA(VLOOKUP($C36,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C36,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C36,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C36,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC36),MONTH($AC36)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C36,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC36),MONTH($AC36),0)),\"Terminated\",\"Active\")))","v":"Inactive"},{"$f":"IF($F36<>\"Active\",0,IF(COUNTIFS(OverEmp,$C36,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMIFS(OverValue,OverEmp,$C36,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1)),IF(AND($AC36>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C36)>0),SUMIFS(EmpIncrease,EmpCode,$C36),SUMIFS(EmpSalary,EmpCode,$C36))))","v":0},{"$f":"IF($F36<>\"Active\",0,IF(COUNTIFS(OverEmp,$C36,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMIFS(OverValue,OverEmp,$C36,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1)),0))","v":0},{"$f":"IF($F36<>\"Active\",0,IF(COUNTIFS(OverEmp,$C36,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMIFS(OverValue,OverEmp,$C36,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1)),IF(MONTH(B36)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C36),0)))","v":0},{"$f":"IF($F36<>\"Active\",0,IF(COUNTIFS(OverEmp,$C36,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMIFS(OverValue,OverEmp,$C36,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1)),0))","v":0},{"$f":"IF($F36<>\"Active\",0,IF(COUNTIFS(OverEmp,$C36,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMIFS(OverValue,OverEmp,$C36,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C36,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMIFS(OverValue,OverEmp,$C36,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1)),(($BA36/12*$AA36)+(BB36*IF(1-$BC36=0,0,BD36/(1-$BC36))))-IF($F36=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC36,PayEmp,$C36)))","v":0},{"$f":"IF($F36=\"Terminated\",0,IF($AA36=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C36,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMIFS(OverValue,OverEmp,$C36,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA36)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA36,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36))))))","v":0},{"$f":"IF($F36=\"Terminated\",0,IF($AA36=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C36,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMIFS(OverValue,OverEmp,$C36,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA36)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA36,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36))))))","v":0},{"$f":"IF($F36=\"Terminated\",0,IF($AA36=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C36,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMIFS(OverValue,OverEmp,$C36,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA36)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA36,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36))))))","v":0},{"$f":"IF($F36=\"Terminated\",0,IF($AA36=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C36,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMIFS(OverValue,OverEmp,$C36,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA36)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA36,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36))))))","v":0},0,0,{"$f":"IF($F36=\"Terminated\",0,IF($AA36=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C36,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMIFS(OverValue,OverEmp,$C36,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA36)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA36,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36)))))))","v":0},{"$f":"IF($F36=\"Terminated\",0,IF($AA36=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C36,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMIFS(OverValue,OverEmp,$C36,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA36)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA36,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36)))))))","v":0},{"$f":"IF($F36=\"Terminated\",0,IF($AA36=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C36,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMIFS(OverValue,OverEmp,$C36,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA36)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA36,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36)))))))","v":0},{"$f":"IF($F36=\"Terminated\",0,IF($AA36=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C36,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMIFS(OverValue,OverEmp,$C36,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA36)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA36,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC36,PayEmp,$C36)))))))","v":0},0,0,0,{"$f":"IF(OR($B36<=Setup!$E$12,$B36>=Setup!$D$12+1),0,IF($F36<>\"Active\",0,IF($AE36=\"Yes\",$AB36,((YEAR($AC36)*12)+MONTH($AC36))-((YEAR($AD36)*12)+MONTH($AD36)-1))))","v":0},{"$f":"IF(OR($B36<=Setup!$E$12,$B36>=Setup!$D$12+1),0,((YEAR($AC36)*12)+MONTH($AC36))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":2},45041,{"$f":"IF(ISNA(VLOOKUP($C36,EmpAll,COLUMN(Emp!$E$4),0)),$AC36,IF(VLOOKUP($C36,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C36,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-01-25"},{"$f":"IF(ISNA(VLOOKUP($C36,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C36,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C36,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A36=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C36,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMIFS(OverValue,OverEmp,$C36,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1)),IF(ISNA(VLOOKUP($C36,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG36,MedList,COLUMN(Setup!$C$49),1)","v":364},5096,{"$f":"IF(ISNA(VLOOKUP($C36,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C36,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C36,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C36,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C36,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F36=\"Terminated\",0,IF($AA36=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C36,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA36*12)+(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB36/3,0))*4)+(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB36/6,0))*2)+(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F36=\"Terminated\",0,IF($AA36=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C36,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA36*12)+(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB36/3,0))*4)+(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB36/6,0))*2)+(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F36=\"Terminated\",0,IF($AA36=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C36,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA36*12)+(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB36/3,0))*4)+(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB36/6,0))*2)+(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F36=\"Terminated\",0,IF($AA36=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C36,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA36*12)+(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB36/3,0))*4)+(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB36/6,0))*2)+(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F36=\"Terminated\",0,IF($AA36=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C36,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA36*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F36=\"Terminated\",0,IF($AA36=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C36,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA36*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F36=\"Terminated\",0,IF($AA36=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C36,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA36*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F36=\"Terminated\",0,IF($AA36=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C36,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC36),MONTH($AC36)+1,1),OverEnd,\">=\"&DATE(YEAR($AC36),MONTH($AC36),1))>0,SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA36*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C36)*(PayDate<=$AC36)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA36*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C36,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C36,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL36),($AR36*$AL36)-$AI36-$AK36,MAX(0,IF($AL36=\"B\",IF($AR36<Setup!$C$32,($AR36*Setup!$D$32)-$AI36-$AK36,(($AR36-VLOOKUP($AR36,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR36,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR36,TaxBracket2,1),0,1,1)-$AI36-$AK36),IF($AR36<Setup!$C$21,($AR36*Setup!$D$21)-$AI36-$AK36,(($AR36-VLOOKUP($AR36,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR36,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR36,TaxBracket1,1),0,1,1)-$AI36-$AK36))))","v":0},{"$f":"IF(ISNUMBER($AL36),($AX36*$AL36)-$AI36-$AK36,MAX(0,IF($AL36=\"B\",IF($AX36<Setup!$C$32,($AX36*Setup!$D$32)-$AI36-$AK36,(($AX36-VLOOKUP($AX36,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX36,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX36,TaxBracket2,1),0,1,1)-$AI36-$AK36),IF($AX36<Setup!$C$21,($AX36*Setup!$D$21)-$AI36-$AK36,(($AX36-VLOOKUP($AX36,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX36,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX36,TaxBracket1,1),0,1,1)-$AI36-$AK36))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A37)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B37,\"yyyy\")&TEXT($B37,\"mm\")&\"-\"&$C37)","v":"202305-EXS001"},{"$f":"IF(ROW($A37)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A37)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A37)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A37)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45071},{"$f":"IF(ROW($A37)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A37)-ROW($A$6)-IF(ROW($A37)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A37)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS001"},{"$f":"IF(ISNA(VLOOKUP($C37,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C37,EmpAll,COLUMN(Emp!$B$4),0))","v":"Taylor AE"},{"$f":"IF(ISNA(VLOOKUP($C37,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C37,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C37,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C37,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC37),MONTH($AC37)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C37,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC37),MONTH($AC37),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F37<>\"Active\",0,IF(COUNTIFS(OverEmp,$C37,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMIFS(OverValue,OverEmp,$C37,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1)),IF(AND($AC37>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C37)>0),SUMIFS(EmpIncrease,EmpCode,$C37),SUMIFS(EmpSalary,EmpCode,$C37))))","v":150000},{"$f":"IF($F37<>\"Active\",0,IF(COUNTIFS(OverEmp,$C37,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMIFS(OverValue,OverEmp,$C37,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1)),0))","v":0},{"$f":"IF($F37<>\"Active\",0,IF(COUNTIFS(OverEmp,$C37,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMIFS(OverValue,OverEmp,$C37,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1)),IF(MONTH(B37)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C37),0)))","v":0},{"$f":"IF($F37<>\"Active\",0,IF(COUNTIFS(OverEmp,$C37,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMIFS(OverValue,OverEmp,$C37,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1)),0))","v":0},{"$f":"IF($F37<>\"Active\",0,IF(COUNTIFS(OverEmp,$C37,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMIFS(OverValue,OverEmp,$C37,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1)),0))","v":0},150000,{"$f":"IF(COUNTIFS(OverEmp,$C37,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMIFS(OverValue,OverEmp,$C37,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1)),(($BA37/12*$AA37)+(BB37*IF(1-$BC37=0,0,BD37/(1-$BC37))))-IF($F37=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC37,PayEmp,$C37)))","v":45611.833333333328},{"$f":"IF($F37=\"Terminated\",0,IF($AA37=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C37,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMIFS(OverValue,OverEmp,$C37,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA37)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA37,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37))))))","v":177.12},{"$f":"IF($F37=\"Terminated\",0,IF($AA37=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C37,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMIFS(OverValue,OverEmp,$C37,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA37)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA37,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37))))))","v":11250},{"$f":"IF($F37=\"Terminated\",0,IF($AA37=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C37,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMIFS(OverValue,OverEmp,$C37,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA37)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA37,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37))))))","v":0},{"$f":"IF($F37=\"Terminated\",0,IF($AA37=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C37,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMIFS(OverValue,OverEmp,$C37,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA37)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA37,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37))))))","v":0},57038.953333333331,92961.05,{"$f":"IF($F37=\"Terminated\",0,IF($AA37=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C37,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMIFS(OverValue,OverEmp,$C37,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA37)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA37,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37)))))))","v":177.12},{"$f":"IF($F37=\"Terminated\",0,IF($AA37=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C37,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMIFS(OverValue,OverEmp,$C37,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA37)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA37,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37)))))))","v":1500},{"$f":"IF($F37=\"Terminated\",0,IF($AA37=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C37,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMIFS(OverValue,OverEmp,$C37,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA37)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA37,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37)))))))","v":0},{"$f":"IF($F37=\"Terminated\",0,IF($AA37=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C37,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMIFS(OverValue,OverEmp,$C37,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA37)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA37,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC37,PayEmp,$C37)))))))","v":0},{"$f":"SUM(OFFSET($T37,0,0,1,COLUMN($X$6)-COLUMN($T$7)))","v":1677.12},151677.12,{"$f":"ROUND(SUM(R37,X37),2)","v":58716.07},{"$f":"IF(OR($B37<=Setup!$E$12,$B37>=Setup!$D$12+1),0,IF($F37<>\"Active\",0,IF($AE37=\"Yes\",$AB37,((YEAR($AC37)*12)+MONTH($AC37))-((YEAR($AD37)*12)+MONTH($AD37)-1))))","v":3},{"$f":"IF(OR($B37<=Setup!$E$12,$B37>=Setup!$D$12+1),0,((YEAR($AC37)*12)+MONTH($AC37))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":3},{"$f":"DATE(YEAR($B37),MONTH($B37),DAY($B37))","v":45071},{"$f":"IF(ISNA(VLOOKUP($C37,EmpAll,COLUMN(Emp!$E$4),0)),$AC37,IF(VLOOKUP($C37,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C37,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C37,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C37,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C37,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A37=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C37,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMIFS(OverValue,OverEmp,$C37,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1)),IF(ISNA(VLOOKUP($C37,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$N$4),0)))","v":5},{"$f":"VLOOKUP($AG37,MedList,COLUMN(Setup!$C$49),1)","v":1466},17592,{"$f":"IF(ISNA(VLOOKUP($C37,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C37,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($AJ37,RebateList,4,0)),VLOOKUP(\"A\",RebateList,3,0),VLOOKUP($AJ37,RebateList,4,0))","v":17235},{"$f":"IF(ISNA(VLOOKUP($C37,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C37,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C37,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1800000,{"$f":"-IF($F37=\"Terminated\",0,IF($AA37=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C37,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA37*12)+(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB37/3,0))*4)+(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB37/6,0))*2)+(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F37=\"Terminated\",0,IF($AA37=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C37,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA37*12)+(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB37/3,0))*4)+(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB37/6,0))*2)+(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F37=\"Terminated\",0,IF($AA37=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C37,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA37*12)+(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB37/3,0))*4)+(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB37/6,0))*2)+(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F37=\"Terminated\",0,IF($AA37=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C37,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA37*12)+(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB37/3,0))*4)+(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB37/6,0))*2)+(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},{"$f":"$AM37+SUM(OFFSET($AM37,0,1,1,COLUMN($AR$2)-COLUMN($AM$2)-1))","v":1665000},1800000,{"$f":"-IF($F37=\"Terminated\",0,IF($AA37=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C37,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA37*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F37=\"Terminated\",0,IF($AA37=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C37,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA37*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F37=\"Terminated\",0,IF($AA37=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C37,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA37*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F37=\"Terminated\",0,IF($AA37=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C37,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC37),MONTH($AC37)+1,1),OverEnd,\">=\"&DATE(YEAR($AC37),MONTH($AC37),1))>0,SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA37*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C37)*(PayDate<=$AC37)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA37*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C37,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C37,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1665000,0,{"$f":"IF(ISNUMBER($AL37),($AR37*$AL37)-$AI37-$AK37,MAX(0,IF($AL37=\"B\",IF($AR37<Setup!$C$32,($AR37*Setup!$D$32)-$AI37-$AK37,(($AR37-VLOOKUP($AR37,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR37,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR37,TaxBracket2,1),0,1,1)-$AI37-$AK37),IF($AR37<Setup!$C$21,($AR37*Setup!$D$21)-$AI37-$AK37,(($AR37-VLOOKUP($AR37,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR37,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR37,TaxBracket1,1),0,1,1)-$AI37-$AK37))))","v":547342},{"$f":"IF(ISNUMBER($AL37),($AX37*$AL37)-$AI37-$AK37,MAX(0,IF($AL37=\"B\",IF($AX37<Setup!$C$32,($AX37*Setup!$D$32)-$AI37-$AK37,(($AX37-VLOOKUP($AX37,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX37,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX37,TaxBracket2,1),0,1,1)-$AI37-$AK37),IF($AX37<Setup!$C$21,($AX37*Setup!$D$21)-$AI37-$AK37,(($AX37-VLOOKUP($AX37,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX37,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX37,TaxBracket1,1),0,1,1)-$AI37-$AK37))))","v":547342},{"$f":"AZ37-BA37","v":0},1,0,1800000]
[{"$f":"IF(ROW($A38)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B38,\"yyyy\")&TEXT($B38,\"mm\")&\"-\"&$C38)","v":"202305-EXS002"},{"$f":"IF(ROW($A38)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A38)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A38)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A38)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45071},{"$f":"IF(ROW($A38)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A38)-ROW($A$6)-IF(ROW($A38)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A38)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS002"},{"$f":"IF(ISNA(VLOOKUP($C38,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C38,EmpAll,COLUMN(Emp!$B$4),0))","v":"Smith F"},{"$f":"IF(ISNA(VLOOKUP($C38,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C38,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C38,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C38,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC38),MONTH($AC38)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C38,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC38),MONTH($AC38),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F38<>\"Active\",0,IF(COUNTIFS(OverEmp,$C38,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMIFS(OverValue,OverEmp,$C38,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1)),IF(AND($AC38>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C38)>0),SUMIFS(EmpIncrease,EmpCode,$C38),SUMIFS(EmpSalary,EmpCode,$C38))))","v":120000},{"$f":"IF($F38<>\"Active\",0,IF(COUNTIFS(OverEmp,$C38,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMIFS(OverValue,OverEmp,$C38,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1)),0))","v":0},{"$f":"IF($F38<>\"Active\",0,IF(COUNTIFS(OverEmp,$C38,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMIFS(OverValue,OverEmp,$C38,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1)),IF(MONTH(B38)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C38),0)))","v":0},{"$f":"IF($F38<>\"Active\",0,IF(COUNTIFS(OverEmp,$C38,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMIFS(OverValue,OverEmp,$C38,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1)),0))","v":0},{"$f":"IF($F38<>\"Active\",0,IF(COUNTIFS(OverEmp,$C38,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMIFS(OverValue,OverEmp,$C38,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1)),0))","v":0},120000,{"$f":"IF(COUNTIFS(OverEmp,$C38,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMIFS(OverValue,OverEmp,$C38,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1)),(($BA38/12*$AA38)+(BB38*IF(1-$BC38=0,0,BD38/(1-$BC38))))-IF($F38=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC38,PayEmp,$C38)))","v":38662.333333333328},{"$f":"IF($F38=\"Terminated\",0,IF($AA38=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C38,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMIFS(OverValue,OverEmp,$C38,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA38)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA38,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38))))))","v":177.12},{"$f":"IF($F38=\"Terminated\",0,IF($AA38=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C38,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMIFS(OverValue,OverEmp,$C38,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA38)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA38,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38))))))","v":0},{"$f":"IF($F38=\"Terminated\",0,IF($AA38=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C38,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMIFS(OverValue,OverEmp,$C38,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA38)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA38,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38))))))","v":0},{"$f":"IF($F38=\"Terminated\",0,IF($AA38=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C38,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMIFS(OverValue,OverEmp,$C38,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA38)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA38,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38))))))","v":0},38839.453333333331,81160.55,{"$f":"IF($F38=\"Terminated\",0,IF($AA38=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C38,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMIFS(OverValue,OverEmp,$C38,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA38)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA38,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38)))))))","v":177.12},{"$f":"IF($F38=\"Terminated\",0,IF($AA38=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C38,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMIFS(OverValue,OverEmp,$C38,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA38)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA38,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38)))))))","v":1200},{"$f":"IF($F38=\"Terminated\",0,IF($AA38=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C38,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMIFS(OverValue,OverEmp,$C38,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA38)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA38,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38)))))))","v":0},{"$f":"IF($F38=\"Terminated\",0,IF($AA38=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C38,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMIFS(OverValue,OverEmp,$C38,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA38)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA38,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC38,PayEmp,$C38)))))))","v":0},1377.12,121377.12,40216.57,{"$f":"IF(OR($B38<=Setup!$E$12,$B38>=Setup!$D$12+1),0,IF($F38<>\"Active\",0,IF($AE38=\"Yes\",$AB38,((YEAR($AC38)*12)+MONTH($AC38))-((YEAR($AD38)*12)+MONTH($AD38)-1))))","v":3},{"$f":"IF(OR($B38<=Setup!$E$12,$B38>=Setup!$D$12+1),0,((YEAR($AC38)*12)+MONTH($AC38))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":3},45071,{"$f":"IF(ISNA(VLOOKUP($C38,EmpAll,COLUMN(Emp!$E$4),0)),$AC38,IF(VLOOKUP($C38,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C38,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C38,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C38,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C38,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A38=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C38,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMIFS(OverValue,OverEmp,$C38,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1)),IF(ISNA(VLOOKUP($C38,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$N$4),0)))","v":2},{"$f":"VLOOKUP($AG38,MedList,COLUMN(Setup!$C$49),1)","v":728},8736,{"$f":"IF(ISNA(VLOOKUP($C38,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C38,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C38,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C38,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C38,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1440000,{"$f":"-IF($F38=\"Terminated\",0,IF($AA38=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C38,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA38*12)+(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB38/3,0))*4)+(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB38/6,0))*2)+(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F38=\"Terminated\",0,IF($AA38=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C38,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA38*12)+(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB38/3,0))*4)+(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB38/6,0))*2)+(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F38=\"Terminated\",0,IF($AA38=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C38,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA38*12)+(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB38/3,0))*4)+(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB38/6,0))*2)+(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F38=\"Terminated\",0,IF($AA38=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C38,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA38*12)+(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB38/3,0))*4)+(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB38/6,0))*2)+(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1440000,1440000,{"$f":"-IF($F38=\"Terminated\",0,IF($AA38=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C38,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA38*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F38=\"Terminated\",0,IF($AA38=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C38,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA38*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F38=\"Terminated\",0,IF($AA38=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C38,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA38*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F38=\"Terminated\",0,IF($AA38=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C38,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC38),MONTH($AC38)+1,1),OverEnd,\">=\"&DATE(YEAR($AC38),MONTH($AC38),1))>0,SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA38*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C38)*(PayDate<=$AC38)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA38*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C38,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C38,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1440000,0,{"$f":"IF(ISNUMBER($AL38),($AR38*$AL38)-$AI38-$AK38,MAX(0,IF($AL38=\"B\",IF($AR38<Setup!$C$32,($AR38*Setup!$D$32)-$AI38-$AK38,(($AR38-VLOOKUP($AR38,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR38,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR38,TaxBracket2,1),0,1,1)-$AI38-$AK38),IF($AR38<Setup!$C$21,($AR38*Setup!$D$21)-$AI38-$AK38,(($AR38-VLOOKUP($AR38,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR38,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR38,TaxBracket1,1),0,1,1)-$AI38-$AK38))))","v":463948},{"$f":"IF(ISNUMBER($AL38),($AX38*$AL38)-$AI38-$AK38,MAX(0,IF($AL38=\"B\",IF($AX38<Setup!$C$32,($AX38*Setup!$D$32)-$AI38-$AK38,(($AX38-VLOOKUP($AX38,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX38,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX38,TaxBracket2,1),0,1,1)-$AI38-$AK38),IF($AX38<Setup!$C$21,($AX38*Setup!$D$21)-$AI38-$AK38,(($AX38-VLOOKUP($AX38,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX38,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX38,TaxBracket1,1),0,1,1)-$AI38-$AK38))))","v":463948},0,1,0,1440000]
[{"$f":"IF(ROW($A39)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B39,\"yyyy\")&TEXT($B39,\"mm\")&\"-\"&$C39)","v":"202305-EXS003"},{"$f":"IF(ROW($A39)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A39)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A39)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A39)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45071},{"$f":"IF(ROW($A39)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A39)-ROW($A$6)-IF(ROW($A39)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A39)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS003"},{"$f":"IF(ISNA(VLOOKUP($C39,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C39,EmpAll,COLUMN(Emp!$B$4),0))","v":"Wilson PG"},{"$f":"IF(ISNA(VLOOKUP($C39,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C39,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C39,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C39,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC39),MONTH($AC39)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C39,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC39),MONTH($AC39),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F39<>\"Active\",0,IF(COUNTIFS(OverEmp,$C39,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMIFS(OverValue,OverEmp,$C39,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1)),IF(AND($AC39>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C39)>0),SUMIFS(EmpIncrease,EmpCode,$C39),SUMIFS(EmpSalary,EmpCode,$C39))))","v":15000},{"$f":"IF($F39<>\"Active\",0,IF(COUNTIFS(OverEmp,$C39,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMIFS(OverValue,OverEmp,$C39,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1)),0))","v":0},{"$f":"IF($F39<>\"Active\",0,IF(COUNTIFS(OverEmp,$C39,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMIFS(OverValue,OverEmp,$C39,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1)),IF(MONTH(B39)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C39),0)))","v":0},{"$f":"IF($F39<>\"Active\",0,IF(COUNTIFS(OverEmp,$C39,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMIFS(OverValue,OverEmp,$C39,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1)),0))","v":0},{"$f":"IF($F39<>\"Active\",0,IF(COUNTIFS(OverEmp,$C39,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMIFS(OverValue,OverEmp,$C39,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1)),0))","v":0},{"$f":"IF($AA39=0,0,SUM(OFFSET($G39,0,0,1,COLUMN($L$6)-COLUMN($G$6))))","v":15000},{"$f":"IF(COUNTIFS(OverEmp,$C39,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMIFS(OverValue,OverEmp,$C39,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1)),(($BA39/12*$AA39)+(BB39*IF(1-$BC39=0,0,BD39/(1-$BC39))))-IF($F39=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC39,PayEmp,$C39)))","v":899.75},{"$f":"IF($F39=\"Terminated\",0,IF($AA39=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C39,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMIFS(OverValue,OverEmp,$C39,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA39)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA39,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39))))))","v":150},{"$f":"IF($F39=\"Terminated\",0,IF($AA39=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C39,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMIFS(OverValue,OverEmp,$C39,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA39)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA39,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39))))))","v":0},{"$f":"IF($F39=\"Terminated\",0,IF($AA39=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C39,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMIFS(OverValue,OverEmp,$C39,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA39)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA39,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39))))))","v":0},{"$f":"IF($F39=\"Terminated\",0,IF($AA39=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C39,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMIFS(OverValue,OverEmp,$C39,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA39)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA39,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39))))))","v":0},{"$f":"SUM(OFFSET(M39,0,0,1,COLUMN($R$6)-COLUMN($M$6)))","v":1049.75},{"$f":"ROUND(SUM(L39,-R39),2)","v":13950.25},{"$f":"IF($F39=\"Terminated\",0,IF($AA39=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C39,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMIFS(OverValue,OverEmp,$C39,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA39)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA39,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39)))))))","v":150},{"$f":"IF($F39=\"Terminated\",0,IF($AA39=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C39,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMIFS(OverValue,OverEmp,$C39,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA39)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA39,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39)))))))","v":150},{"$f":"IF($F39=\"Terminated\",0,IF($AA39=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C39,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMIFS(OverValue,OverEmp,$C39,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA39)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA39,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39)))))))","v":0},{"$f":"IF($F39=\"Terminated\",0,IF($AA39=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C39,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMIFS(OverValue,OverEmp,$C39,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA39)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA39,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC39,PayEmp,$C39)))))))","v":0},300,{"$f":"L39+X39","v":15300},1349.75,{"$f":"IF(OR($B39<=Setup!$E$12,$B39>=Setup!$D$12+1),0,IF($F39<>\"Active\",0,IF($AE39=\"Yes\",$AB39,((YEAR($AC39)*12)+MONTH($AC39))-((YEAR($AD39)*12)+MONTH($AD39)-1))))","v":3},{"$f":"IF(OR($B39<=Setup!$E$12,$B39>=Setup!$D$12+1),0,((YEAR($AC39)*12)+MONTH($AC39))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":3},45071,{"$f":"IF(ISNA(VLOOKUP($C39,EmpAll,COLUMN(Emp!$E$4),0)),$AC39,IF(VLOOKUP($C39,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C39,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C39,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C39,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C39,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A39=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C39,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMIFS(OverValue,OverEmp,$C39,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1)),IF(ISNA(VLOOKUP($C39,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG39,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C39,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C39,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C39,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C39,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C39,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},180000,{"$f":"-IF($F39=\"Terminated\",0,IF($AA39=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C39,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA39*12)+(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB39/3,0))*4)+(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB39/6,0))*2)+(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F39=\"Terminated\",0,IF($AA39=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C39,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA39*12)+(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB39/3,0))*4)+(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB39/6,0))*2)+(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F39=\"Terminated\",0,IF($AA39=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C39,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA39*12)+(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB39/3,0))*4)+(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB39/6,0))*2)+(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F39=\"Terminated\",0,IF($AA39=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C39,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA39*12)+(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB39/3,0))*4)+(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB39/6,0))*2)+(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},180000,180000,{"$f":"-IF($F39=\"Terminated\",0,IF($AA39=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C39,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA39*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F39=\"Terminated\",0,IF($AA39=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C39,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA39*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F39=\"Terminated\",0,IF($AA39=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C39,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA39*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F39=\"Terminated\",0,IF($AA39=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C39,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC39),MONTH($AC39)+1,1),OverEnd,\">=\"&DATE(YEAR($AC39),MONTH($AC39),1))>0,SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA39*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C39)*(PayDate<=$AC39)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA39*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C39,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C39,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},{"$f":"$AS39+SUM(OFFSET($AT39,0,0,1,COLUMN($AX$2)-COLUMN($AT$2)))","v":180000},{"$f":"AR39-AX39","v":0},{"$f":"IF(ISNUMBER($AL39),($AR39*$AL39)-$AI39-$AK39,MAX(0,IF($AL39=\"B\",IF($AR39<Setup!$C$32,($AR39*Setup!$D$32)-$AI39-$AK39,(($AR39-VLOOKUP($AR39,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR39,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR39,TaxBracket2,1),0,1,1)-$AI39-$AK39),IF($AR39<Setup!$C$21,($AR39*Setup!$D$21)-$AI39-$AK39,(($AR39-VLOOKUP($AR39,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR39,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR39,TaxBracket1,1),0,1,1)-$AI39-$AK39))))","v":10797},{"$f":"IF(ISNUMBER($AL39),($AX39*$AL39)-$AI39-$AK39,MAX(0,IF($AL39=\"B\",IF($AX39<Setup!$C$32,($AX39*Setup!$D$32)-$AI39-$AK39,(($AX39-VLOOKUP($AX39,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX39,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX39,TaxBracket2,1),0,1,1)-$AI39-$AK39),IF($AX39<Setup!$C$21,($AX39*Setup!$D$21)-$AI39-$AK39,(($AX39-VLOOKUP($AX39,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX39,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX39,TaxBracket1,1),0,1,1)-$AI39-$AK39))))","v":10797},0,1,0,180000]
[{"$f":"IF(ROW($A40)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B40,\"yyyy\")&TEXT($B40,\"mm\")&\"-\"&$C40)","v":"202305-EXS004"},{"$f":"IF(ROW($A40)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A40)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A40)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A40)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45071},{"$f":"IF(ROW($A40)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A40)-ROW($A$6)-IF(ROW($A40)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A40)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS004"},{"$f":"IF(ISNA(VLOOKUP($C40,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C40,EmpAll,COLUMN(Emp!$B$4),0))","v":"Osborne S"},{"$f":"IF(ISNA(VLOOKUP($C40,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C40,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C40,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C40,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC40),MONTH($AC40)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C40,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC40),MONTH($AC40),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F40<>\"Active\",0,IF(COUNTIFS(OverEmp,$C40,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMIFS(OverValue,OverEmp,$C40,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1)),IF(AND($AC40>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C40)>0),SUMIFS(EmpIncrease,EmpCode,$C40),SUMIFS(EmpSalary,EmpCode,$C40))))","v":15000},{"$f":"IF($F40<>\"Active\",0,IF(COUNTIFS(OverEmp,$C40,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMIFS(OverValue,OverEmp,$C40,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1)),0))","v":0},{"$f":"IF($F40<>\"Active\",0,IF(COUNTIFS(OverEmp,$C40,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMIFS(OverValue,OverEmp,$C40,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1)),IF(MONTH(B40)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C40),0)))","v":0},{"$f":"IF($F40<>\"Active\",0,IF(COUNTIFS(OverEmp,$C40,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMIFS(OverValue,OverEmp,$C40,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1)),0))","v":0},{"$f":"IF($F40<>\"Active\",0,IF(COUNTIFS(OverEmp,$C40,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMIFS(OverValue,OverEmp,$C40,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1)),0))","v":0},15000,{"$f":"IF(COUNTIFS(OverEmp,$C40,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMIFS(OverValue,OverEmp,$C40,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1)),(($BA40/12*$AA40)+(BB40*IF(1-$BC40=0,0,BD40/(1-$BC40))))-IF($F40=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC40,PayEmp,$C40)))","v":899.75},{"$f":"IF($F40=\"Terminated\",0,IF($AA40=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C40,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMIFS(OverValue,OverEmp,$C40,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA40)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA40,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40))))))","v":150},{"$f":"IF($F40=\"Terminated\",0,IF($AA40=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C40,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMIFS(OverValue,OverEmp,$C40,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA40)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA40,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40))))))","v":0},{"$f":"IF($F40=\"Terminated\",0,IF($AA40=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C40,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMIFS(OverValue,OverEmp,$C40,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA40)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA40,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40))))))","v":500},{"$f":"IF($F40=\"Terminated\",0,IF($AA40=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C40,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMIFS(OverValue,OverEmp,$C40,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA40)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA40,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40))))))","v":0},1549.75,13450.25,{"$f":"IF($F40=\"Terminated\",0,IF($AA40=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C40,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMIFS(OverValue,OverEmp,$C40,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA40)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA40,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40)))))))","v":150},{"$f":"IF($F40=\"Terminated\",0,IF($AA40=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C40,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMIFS(OverValue,OverEmp,$C40,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA40)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA40,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40)))))))","v":150},{"$f":"IF($F40=\"Terminated\",0,IF($AA40=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C40,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMIFS(OverValue,OverEmp,$C40,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA40)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA40,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40)))))))","v":0},{"$f":"IF($F40=\"Terminated\",0,IF($AA40=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C40,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMIFS(OverValue,OverEmp,$C40,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA40)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA40,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC40,PayEmp,$C40)))))))","v":0},300,15300,1849.75,{"$f":"IF(OR($B40<=Setup!$E$12,$B40>=Setup!$D$12+1),0,IF($F40<>\"Active\",0,IF($AE40=\"Yes\",$AB40,((YEAR($AC40)*12)+MONTH($AC40))-((YEAR($AD40)*12)+MONTH($AD40)-1))))","v":3},{"$f":"IF(OR($B40<=Setup!$E$12,$B40>=Setup!$D$12+1),0,((YEAR($AC40)*12)+MONTH($AC40))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":3},45071,{"$f":"IF(ISNA(VLOOKUP($C40,EmpAll,COLUMN(Emp!$E$4),0)),$AC40,IF(VLOOKUP($C40,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C40,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C40,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C40,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C40,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A40=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C40,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMIFS(OverValue,OverEmp,$C40,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1)),IF(ISNA(VLOOKUP($C40,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG40,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C40,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C40,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C40,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C40,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C40,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},183600,{"$f":"-IF($F40=\"Terminated\",0,IF($AA40=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C40,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA40*12)+(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB40/3,0))*4)+(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB40/6,0))*2)+(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F40=\"Terminated\",0,IF($AA40=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C40,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA40*12)+(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB40/3,0))*4)+(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB40/6,0))*2)+(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F40=\"Terminated\",0,IF($AA40=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C40,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA40*12)+(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB40/3,0))*4)+(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB40/6,0))*2)+(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F40=\"Terminated\",0,IF($AA40=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C40,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA40*12)+(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB40/3,0))*4)+(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB40/6,0))*2)+(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},183600,180000,{"$f":"-IF($F40=\"Terminated\",0,IF($AA40=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C40,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA40*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F40=\"Terminated\",0,IF($AA40=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C40,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA40*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F40=\"Terminated\",0,IF($AA40=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C40,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA40*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F40=\"Terminated\",0,IF($AA40=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C40,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC40),MONTH($AC40)+1,1),OverEnd,\">=\"&DATE(YEAR($AC40),MONTH($AC40),1))>0,SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA40*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C40)*(PayDate<=$AC40)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA40*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C40,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C40,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,3600,{"$f":"IF(ISNUMBER($AL40),($AR40*$AL40)-$AI40-$AK40,MAX(0,IF($AL40=\"B\",IF($AR40<Setup!$C$32,($AR40*Setup!$D$32)-$AI40-$AK40,(($AR40-VLOOKUP($AR40,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR40,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR40,TaxBracket2,1),0,1,1)-$AI40-$AK40),IF($AR40<Setup!$C$21,($AR40*Setup!$D$21)-$AI40-$AK40,(($AR40-VLOOKUP($AR40,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR40,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR40,TaxBracket1,1),0,1,1)-$AI40-$AK40))))","v":11445},{"$f":"IF(ISNUMBER($AL40),($AX40*$AL40)-$AI40-$AK40,MAX(0,IF($AL40=\"B\",IF($AX40<Setup!$C$32,($AX40*Setup!$D$32)-$AI40-$AK40,(($AX40-VLOOKUP($AX40,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX40,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX40,TaxBracket2,1),0,1,1)-$AI40-$AK40),IF($AX40<Setup!$C$21,($AX40*Setup!$D$21)-$AI40-$AK40,(($AX40-VLOOKUP($AX40,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX40,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX40,TaxBracket1,1),0,1,1)-$AI40-$AK40))))","v":10797},648,0.98039215686274506,1.9607843137254902E-2,183600]
[{"$f":"IF(ROW($A41)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B41,\"yyyy\")&TEXT($B41,\"mm\")&\"-\"&$C41)","v":"202305-EXS005"},{"$f":"IF(ROW($A41)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A41)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A41)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A41)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45071},{"$f":"IF(ROW($A41)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A41)-ROW($A$6)-IF(ROW($A41)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A41)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS005"},{"$f":"IF(ISNA(VLOOKUP($C41,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C41,EmpAll,COLUMN(Emp!$B$4),0))","v":"Miller R"},{"$f":"IF(ISNA(VLOOKUP($C41,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C41,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C41,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C41,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC41),MONTH($AC41)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C41,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC41),MONTH($AC41),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F41<>\"Active\",0,IF(COUNTIFS(OverEmp,$C41,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMIFS(OverValue,OverEmp,$C41,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1)),IF(AND($AC41>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C41)>0),SUMIFS(EmpIncrease,EmpCode,$C41),SUMIFS(EmpSalary,EmpCode,$C41))))","v":10000},{"$f":"IF($F41<>\"Active\",0,IF(COUNTIFS(OverEmp,$C41,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMIFS(OverValue,OverEmp,$C41,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1)),0))","v":0},{"$f":"IF($F41<>\"Active\",0,IF(COUNTIFS(OverEmp,$C41,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMIFS(OverValue,OverEmp,$C41,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1)),IF(MONTH(B41)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C41),0)))","v":0},{"$f":"IF($F41<>\"Active\",0,IF(COUNTIFS(OverEmp,$C41,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMIFS(OverValue,OverEmp,$C41,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1)),0))","v":0},{"$f":"IF($F41<>\"Active\",0,IF(COUNTIFS(OverEmp,$C41,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMIFS(OverValue,OverEmp,$C41,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C41,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMIFS(OverValue,OverEmp,$C41,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1)),(($BA41/12*$AA41)+(BB41*IF(1-$BC41=0,0,BD41/(1-$BC41))))-IF($F41=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC41,PayEmp,$C41)))","v":0},{"$f":"IF($F41=\"Terminated\",0,IF($AA41=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C41,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMIFS(OverValue,OverEmp,$C41,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA41)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA41,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41))))))","v":100},{"$f":"IF($F41=\"Terminated\",0,IF($AA41=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C41,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMIFS(OverValue,OverEmp,$C41,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA41)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA41,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41))))))","v":0},{"$f":"IF($F41=\"Terminated\",0,IF($AA41=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C41,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMIFS(OverValue,OverEmp,$C41,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA41)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA41,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41))))))","v":0},{"$f":"IF($F41=\"Terminated\",0,IF($AA41=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C41,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMIFS(OverValue,OverEmp,$C41,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA41)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA41,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41))))))","v":0},100,9900,{"$f":"IF($F41=\"Terminated\",0,IF($AA41=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C41,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMIFS(OverValue,OverEmp,$C41,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA41)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA41,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41)))))))","v":100},{"$f":"IF($F41=\"Terminated\",0,IF($AA41=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C41,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMIFS(OverValue,OverEmp,$C41,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA41)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA41,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41)))))))","v":100},{"$f":"IF($F41=\"Terminated\",0,IF($AA41=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C41,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMIFS(OverValue,OverEmp,$C41,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA41)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA41,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41)))))))","v":0},{"$f":"IF($F41=\"Terminated\",0,IF($AA41=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C41,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMIFS(OverValue,OverEmp,$C41,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA41)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA41,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC41,PayEmp,$C41)))))))","v":0},200,10200,300,{"$f":"IF(OR($B41<=Setup!$E$12,$B41>=Setup!$D$12+1),0,IF($F41<>\"Active\",0,IF($AE41=\"Yes\",$AB41,((YEAR($AC41)*12)+MONTH($AC41))-((YEAR($AD41)*12)+MONTH($AD41)-1))))","v":3},{"$f":"IF(OR($B41<=Setup!$E$12,$B41>=Setup!$D$12+1),0,((YEAR($AC41)*12)+MONTH($AC41))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":3},45071,{"$f":"IF(ISNA(VLOOKUP($C41,EmpAll,COLUMN(Emp!$E$4),0)),$AC41,IF(VLOOKUP($C41,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C41,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C41,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C41,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C41,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A41=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C41,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMIFS(OverValue,OverEmp,$C41,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1)),IF(ISNA(VLOOKUP($C41,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG41,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C41,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C41,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C41,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C41,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C41,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},120000,{"$f":"-IF($F41=\"Terminated\",0,IF($AA41=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C41,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA41*12)+(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB41/3,0))*4)+(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB41/6,0))*2)+(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F41=\"Terminated\",0,IF($AA41=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C41,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA41*12)+(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB41/3,0))*4)+(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB41/6,0))*2)+(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F41=\"Terminated\",0,IF($AA41=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C41,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA41*12)+(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB41/3,0))*4)+(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB41/6,0))*2)+(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F41=\"Terminated\",0,IF($AA41=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C41,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA41*12)+(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB41/3,0))*4)+(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB41/6,0))*2)+(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},120000,120000,{"$f":"-IF($F41=\"Terminated\",0,IF($AA41=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C41,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA41*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F41=\"Terminated\",0,IF($AA41=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C41,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA41*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F41=\"Terminated\",0,IF($AA41=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C41,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA41*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F41=\"Terminated\",0,IF($AA41=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C41,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC41),MONTH($AC41)+1,1),OverEnd,\">=\"&DATE(YEAR($AC41),MONTH($AC41),1))>0,SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA41*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C41)*(PayDate<=$AC41)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA41*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C41,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C41,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,0,{"$f":"IF(ISNUMBER($AL41),($AR41*$AL41)-$AI41-$AK41,MAX(0,IF($AL41=\"B\",IF($AR41<Setup!$C$32,($AR41*Setup!$D$32)-$AI41-$AK41,(($AR41-VLOOKUP($AR41,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR41,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR41,TaxBracket2,1),0,1,1)-$AI41-$AK41),IF($AR41<Setup!$C$21,($AR41*Setup!$D$21)-$AI41-$AK41,(($AR41-VLOOKUP($AR41,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR41,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR41,TaxBracket1,1),0,1,1)-$AI41-$AK41))))","v":0},{"$f":"IF(ISNUMBER($AL41),($AX41*$AL41)-$AI41-$AK41,MAX(0,IF($AL41=\"B\",IF($AX41<Setup!$C$32,($AX41*Setup!$D$32)-$AI41-$AK41,(($AX41-VLOOKUP($AX41,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX41,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX41,TaxBracket2,1),0,1,1)-$AI41-$AK41),IF($AX41<Setup!$C$21,($AX41*Setup!$D$21)-$AI41-$AK41,(($AX41-VLOOKUP($AX41,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX41,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX41,TaxBracket1,1),0,1,1)-$AI41-$AK41))))","v":0},0,1,0,120000]
[{"$f":"IF(ROW($A42)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B42,\"yyyy\")&TEXT($B42,\"mm\")&\"-\"&$C42)","v":"202305-EXS006"},{"$f":"IF(ROW($A42)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A42)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A42)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A42)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45071},{"$f":"IF(ROW($A42)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A42)-ROW($A$6)-IF(ROW($A42)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A42)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS006"},{"$f":"IF(ISNA(VLOOKUP($C42,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C42,EmpAll,COLUMN(Emp!$B$4),0))","v":"Andrews MS"},{"$f":"IF(ISNA(VLOOKUP($C42,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C42,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C42,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C42,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC42),MONTH($AC42)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C42,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC42),MONTH($AC42),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F42<>\"Active\",0,IF(COUNTIFS(OverEmp,$C42,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMIFS(OverValue,OverEmp,$C42,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1)),IF(AND($AC42>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C42)>0),SUMIFS(EmpIncrease,EmpCode,$C42),SUMIFS(EmpSalary,EmpCode,$C42))))","v":10000},{"$f":"IF($F42<>\"Active\",0,IF(COUNTIFS(OverEmp,$C42,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMIFS(OverValue,OverEmp,$C42,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1)),0))","v":0},{"$f":"IF($F42<>\"Active\",0,IF(COUNTIFS(OverEmp,$C42,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMIFS(OverValue,OverEmp,$C42,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1)),IF(MONTH(B42)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C42),0)))","v":0},{"$f":"IF($F42<>\"Active\",0,IF(COUNTIFS(OverEmp,$C42,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMIFS(OverValue,OverEmp,$C42,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1)),0))","v":0},{"$f":"IF($F42<>\"Active\",0,IF(COUNTIFS(OverEmp,$C42,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMIFS(OverValue,OverEmp,$C42,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C42,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMIFS(OverValue,OverEmp,$C42,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1)),(($BA42/12*$AA42)+(BB42*IF(1-$BC42=0,0,BD42/(1-$BC42))))-IF($F42=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC42,PayEmp,$C42)))","v":0},{"$f":"IF($F42=\"Terminated\",0,IF($AA42=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C42,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMIFS(OverValue,OverEmp,$C42,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA42)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA42,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42))))))","v":100},{"$f":"IF($F42=\"Terminated\",0,IF($AA42=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C42,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMIFS(OverValue,OverEmp,$C42,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA42)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA42,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42))))))","v":0},{"$f":"IF($F42=\"Terminated\",0,IF($AA42=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C42,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMIFS(OverValue,OverEmp,$C42,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA42)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA42,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42))))))","v":0},{"$f":"IF($F42=\"Terminated\",0,IF($AA42=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C42,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMIFS(OverValue,OverEmp,$C42,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA42)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA42,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42))))))","v":0},100,9900,{"$f":"IF($F42=\"Terminated\",0,IF($AA42=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C42,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMIFS(OverValue,OverEmp,$C42,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA42)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA42,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42)))))))","v":100},{"$f":"IF($F42=\"Terminated\",0,IF($AA42=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C42,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMIFS(OverValue,OverEmp,$C42,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA42)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA42,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42)))))))","v":100},{"$f":"IF($F42=\"Terminated\",0,IF($AA42=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C42,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMIFS(OverValue,OverEmp,$C42,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA42)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA42,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42)))))))","v":0},{"$f":"IF($F42=\"Terminated\",0,IF($AA42=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C42,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMIFS(OverValue,OverEmp,$C42,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA42)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA42,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC42,PayEmp,$C42)))))))","v":0},200,10200,300,{"$f":"IF(OR($B42<=Setup!$E$12,$B42>=Setup!$D$12+1),0,IF($F42<>\"Active\",0,IF($AE42=\"Yes\",$AB42,((YEAR($AC42)*12)+MONTH($AC42))-((YEAR($AD42)*12)+MONTH($AD42)-1))))","v":3},{"$f":"IF(OR($B42<=Setup!$E$12,$B42>=Setup!$D$12+1),0,((YEAR($AC42)*12)+MONTH($AC42))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":3},45071,{"$f":"IF(ISNA(VLOOKUP($C42,EmpAll,COLUMN(Emp!$E$4),0)),$AC42,IF(VLOOKUP($C42,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C42,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C42,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C42,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C42,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A42=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C42,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMIFS(OverValue,OverEmp,$C42,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1)),IF(ISNA(VLOOKUP($C42,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG42,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C42,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C42,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C42,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C42,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C42,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},120000,{"$f":"-IF($F42=\"Terminated\",0,IF($AA42=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C42,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA42*12)+(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB42/3,0))*4)+(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB42/6,0))*2)+(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F42=\"Terminated\",0,IF($AA42=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C42,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA42*12)+(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB42/3,0))*4)+(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB42/6,0))*2)+(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F42=\"Terminated\",0,IF($AA42=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C42,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA42*12)+(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB42/3,0))*4)+(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB42/6,0))*2)+(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F42=\"Terminated\",0,IF($AA42=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C42,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA42*12)+(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB42/3,0))*4)+(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB42/6,0))*2)+(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},120000,120000,{"$f":"-IF($F42=\"Terminated\",0,IF($AA42=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C42,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA42*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F42=\"Terminated\",0,IF($AA42=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C42,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA42*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F42=\"Terminated\",0,IF($AA42=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C42,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA42*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F42=\"Terminated\",0,IF($AA42=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C42,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC42),MONTH($AC42)+1,1),OverEnd,\">=\"&DATE(YEAR($AC42),MONTH($AC42),1))>0,SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA42*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C42)*(PayDate<=$AC42)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA42*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C42,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C42,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,0,{"$f":"IF(ISNUMBER($AL42),($AR42*$AL42)-$AI42-$AK42,MAX(0,IF($AL42=\"B\",IF($AR42<Setup!$C$32,($AR42*Setup!$D$32)-$AI42-$AK42,(($AR42-VLOOKUP($AR42,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR42,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR42,TaxBracket2,1),0,1,1)-$AI42-$AK42),IF($AR42<Setup!$C$21,($AR42*Setup!$D$21)-$AI42-$AK42,(($AR42-VLOOKUP($AR42,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR42,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR42,TaxBracket1,1),0,1,1)-$AI42-$AK42))))","v":0},{"$f":"IF(ISNUMBER($AL42),($AX42*$AL42)-$AI42-$AK42,MAX(0,IF($AL42=\"B\",IF($AX42<Setup!$C$32,($AX42*Setup!$D$32)-$AI42-$AK42,(($AX42-VLOOKUP($AX42,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX42,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX42,TaxBracket2,1),0,1,1)-$AI42-$AK42),IF($AX42<Setup!$C$21,($AX42*Setup!$D$21)-$AI42-$AK42,(($AX42-VLOOKUP($AX42,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX42,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX42,TaxBracket1,1),0,1,1)-$AI42-$AK42))))","v":0},0,1,0,120000]
[{"$f":"IF(ROW($A43)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B43,\"yyyy\")&TEXT($B43,\"mm\")&\"-\"&$C43)","v":"202305-EXS007"},{"$f":"IF(ROW($A43)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A43)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A43)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A43)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45071},{"$f":"IF(ROW($A43)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A43)-ROW($A$6)-IF(ROW($A43)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A43)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS007"},{"$f":"IF(ISNA(VLOOKUP($C43,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C43,EmpAll,COLUMN(Emp!$B$4),0))","v":"Phillips KE"},{"$f":"IF(ISNA(VLOOKUP($C43,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C43,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C43,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C43,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC43),MONTH($AC43)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C43,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC43),MONTH($AC43),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F43<>\"Active\",0,IF(COUNTIFS(OverEmp,$C43,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMIFS(OverValue,OverEmp,$C43,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1)),IF(AND($AC43>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C43)>0),SUMIFS(EmpIncrease,EmpCode,$C43),SUMIFS(EmpSalary,EmpCode,$C43))))","v":25000},{"$f":"IF($F43<>\"Active\",0,IF(COUNTIFS(OverEmp,$C43,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMIFS(OverValue,OverEmp,$C43,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1)),0))","v":0},{"$f":"IF($F43<>\"Active\",0,IF(COUNTIFS(OverEmp,$C43,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMIFS(OverValue,OverEmp,$C43,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1)),IF(MONTH(B43)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C43),0)))","v":0},{"$f":"IF($F43<>\"Active\",0,IF(COUNTIFS(OverEmp,$C43,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMIFS(OverValue,OverEmp,$C43,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1)),0))","v":0},{"$f":"IF($F43<>\"Active\",0,IF(COUNTIFS(OverEmp,$C43,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMIFS(OverValue,OverEmp,$C43,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1)),0))","v":0},25000,{"$f":"IF(COUNTIFS(OverEmp,$C43,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMIFS(OverValue,OverEmp,$C43,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1)),(($BA43/12*$AA43)+(BB43*IF(1-$BC43=0,0,BD43/(1-$BC43))))-IF($F43=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC43,PayEmp,$C43)))","v":3483.083333333333},{"$f":"IF($F43=\"Terminated\",0,IF($AA43=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C43,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMIFS(OverValue,OverEmp,$C43,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA43)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA43,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43))))))","v":177.12},{"$f":"IF($F43=\"Terminated\",0,IF($AA43=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C43,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMIFS(OverValue,OverEmp,$C43,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA43)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA43,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43))))))","v":0},{"$f":"IF($F43=\"Terminated\",0,IF($AA43=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C43,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMIFS(OverValue,OverEmp,$C43,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA43)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA43,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43))))))","v":0},{"$f":"IF($F43=\"Terminated\",0,IF($AA43=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C43,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMIFS(OverValue,OverEmp,$C43,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA43)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA43,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43))))))","v":0},3660.2033333333329,21339.8,{"$f":"IF($F43=\"Terminated\",0,IF($AA43=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C43,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMIFS(OverValue,OverEmp,$C43,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA43)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA43,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43)))))))","v":177.12},{"$f":"IF($F43=\"Terminated\",0,IF($AA43=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C43,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMIFS(OverValue,OverEmp,$C43,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA43)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA43,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43)))))))","v":250},{"$f":"IF($F43=\"Terminated\",0,IF($AA43=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C43,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMIFS(OverValue,OverEmp,$C43,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA43)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA43,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43)))))))","v":0},{"$f":"IF($F43=\"Terminated\",0,IF($AA43=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C43,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMIFS(OverValue,OverEmp,$C43,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA43)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA43,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC43,PayEmp,$C43)))))))","v":0},427.12,25427.119999999999,4087.32,{"$f":"IF(OR($B43<=Setup!$E$12,$B43>=Setup!$D$12+1),0,IF($F43<>\"Active\",0,IF($AE43=\"Yes\",$AB43,((YEAR($AC43)*12)+MONTH($AC43))-((YEAR($AD43)*12)+MONTH($AD43)-1))))","v":3},{"$f":"IF(OR($B43<=Setup!$E$12,$B43>=Setup!$D$12+1),0,((YEAR($AC43)*12)+MONTH($AC43))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":3},45071,{"$f":"IF(ISNA(VLOOKUP($C43,EmpAll,COLUMN(Emp!$E$4),0)),$AC43,IF(VLOOKUP($C43,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C43,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C43,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C43,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C43,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A43=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C43,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMIFS(OverValue,OverEmp,$C43,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1)),IF(ISNA(VLOOKUP($C43,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG43,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C43,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C43,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C43,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C43,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C43,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},300000,{"$f":"-IF($F43=\"Terminated\",0,IF($AA43=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C43,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA43*12)+(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB43/3,0))*4)+(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB43/6,0))*2)+(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F43=\"Terminated\",0,IF($AA43=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C43,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA43*12)+(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB43/3,0))*4)+(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB43/6,0))*2)+(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F43=\"Terminated\",0,IF($AA43=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C43,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA43*12)+(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB43/3,0))*4)+(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB43/6,0))*2)+(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F43=\"Terminated\",0,IF($AA43=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C43,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA43*12)+(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB43/3,0))*4)+(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB43/6,0))*2)+(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},300000,300000,{"$f":"-IF($F43=\"Terminated\",0,IF($AA43=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C43,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA43*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F43=\"Terminated\",0,IF($AA43=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C43,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA43*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F43=\"Terminated\",0,IF($AA43=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C43,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA43*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F43=\"Terminated\",0,IF($AA43=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C43,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC43),MONTH($AC43)+1,1),OverEnd,\">=\"&DATE(YEAR($AC43),MONTH($AC43),1))>0,SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA43*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C43)*(PayDate<=$AC43)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA43*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C43,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C43,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},300000,0,{"$f":"IF(ISNUMBER($AL43),($AR43*$AL43)-$AI43-$AK43,MAX(0,IF($AL43=\"B\",IF($AR43<Setup!$C$32,($AR43*Setup!$D$32)-$AI43-$AK43,(($AR43-VLOOKUP($AR43,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR43,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR43,TaxBracket2,1),0,1,1)-$AI43-$AK43),IF($AR43<Setup!$C$21,($AR43*Setup!$D$21)-$AI43-$AK43,(($AR43-VLOOKUP($AR43,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR43,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR43,TaxBracket1,1),0,1,1)-$AI43-$AK43))))","v":41797},{"$f":"IF(ISNUMBER($AL43),($AX43*$AL43)-$AI43-$AK43,MAX(0,IF($AL43=\"B\",IF($AX43<Setup!$C$32,($AX43*Setup!$D$32)-$AI43-$AK43,(($AX43-VLOOKUP($AX43,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX43,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX43,TaxBracket2,1),0,1,1)-$AI43-$AK43),IF($AX43<Setup!$C$21,($AX43*Setup!$D$21)-$AI43-$AK43,(($AX43-VLOOKUP($AX43,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX43,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX43,TaxBracket1,1),0,1,1)-$AI43-$AK43))))","v":41797},0,1,0,300000]
[{"$f":"IF(ROW($A44)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B44,\"yyyy\")&TEXT($B44,\"mm\")&\"-\"&$C44)","v":"202305-EXS008"},{"$f":"IF(ROW($A44)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A44)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A44)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A44)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45071},{"$f":"IF(ROW($A44)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A44)-ROW($A$6)-IF(ROW($A44)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A44)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS008"},{"$f":"IF(ISNA(VLOOKUP($C44,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C44,EmpAll,COLUMN(Emp!$B$4),0))","v":"Matthews B"},{"$f":"IF(ISNA(VLOOKUP($C44,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C44,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C44,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C44,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC44),MONTH($AC44)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C44,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC44),MONTH($AC44),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F44<>\"Active\",0,IF(COUNTIFS(OverEmp,$C44,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMIFS(OverValue,OverEmp,$C44,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1)),IF(AND($AC44>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C44)>0),SUMIFS(EmpIncrease,EmpCode,$C44),SUMIFS(EmpSalary,EmpCode,$C44))))","v":9000},{"$f":"IF($F44<>\"Active\",0,IF(COUNTIFS(OverEmp,$C44,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMIFS(OverValue,OverEmp,$C44,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1)),0))","v":0},{"$f":"IF($F44<>\"Active\",0,IF(COUNTIFS(OverEmp,$C44,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMIFS(OverValue,OverEmp,$C44,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1)),IF(MONTH(B44)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C44),0)))","v":0},{"$f":"IF($F44<>\"Active\",0,IF(COUNTIFS(OverEmp,$C44,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMIFS(OverValue,OverEmp,$C44,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1)),0))","v":0},{"$f":"IF($F44<>\"Active\",0,IF(COUNTIFS(OverEmp,$C44,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMIFS(OverValue,OverEmp,$C44,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C44,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMIFS(OverValue,OverEmp,$C44,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1)),(($BA44/12*$AA44)+(BB44*IF(1-$BC44=0,0,BD44/(1-$BC44))))-IF($F44=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC44,PayEmp,$C44)))","v":183.75},{"$f":"IF($F44=\"Terminated\",0,IF($AA44=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C44,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMIFS(OverValue,OverEmp,$C44,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA44)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA44,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44))))))","v":90},{"$f":"IF($F44=\"Terminated\",0,IF($AA44=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C44,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMIFS(OverValue,OverEmp,$C44,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA44)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA44,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44))))))","v":0},{"$f":"IF($F44=\"Terminated\",0,IF($AA44=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C44,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMIFS(OverValue,OverEmp,$C44,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA44)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA44,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44))))))","v":0},{"$f":"IF($F44=\"Terminated\",0,IF($AA44=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C44,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMIFS(OverValue,OverEmp,$C44,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA44)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA44,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44))))))","v":0},273.75,8726.25,{"$f":"IF($F44=\"Terminated\",0,IF($AA44=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C44,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMIFS(OverValue,OverEmp,$C44,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA44)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA44,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44)))))))","v":90},{"$f":"IF($F44=\"Terminated\",0,IF($AA44=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C44,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMIFS(OverValue,OverEmp,$C44,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA44)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA44,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44)))))))","v":90},{"$f":"IF($F44=\"Terminated\",0,IF($AA44=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C44,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMIFS(OverValue,OverEmp,$C44,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA44)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA44,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44)))))))","v":0},{"$f":"IF($F44=\"Terminated\",0,IF($AA44=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C44,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMIFS(OverValue,OverEmp,$C44,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA44)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA44,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC44,PayEmp,$C44)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B44<=Setup!$E$12,$B44>=Setup!$D$12+1),0,IF($F44<>\"Active\",0,IF($AE44=\"Yes\",$AB44,((YEAR($AC44)*12)+MONTH($AC44))-((YEAR($AD44)*12)+MONTH($AD44)-1))))","v":3},{"$f":"IF(OR($B44<=Setup!$E$12,$B44>=Setup!$D$12+1),0,((YEAR($AC44)*12)+MONTH($AC44))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":3},45071,{"$f":"IF(ISNA(VLOOKUP($C44,EmpAll,COLUMN(Emp!$E$4),0)),$AC44,IF(VLOOKUP($C44,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C44,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C44,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C44,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C44,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A44=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C44,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMIFS(OverValue,OverEmp,$C44,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1)),IF(ISNA(VLOOKUP($C44,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG44,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C44,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C44,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C44,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C44,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C44,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F44=\"Terminated\",0,IF($AA44=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C44,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA44*12)+(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB44/3,0))*4)+(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB44/6,0))*2)+(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F44=\"Terminated\",0,IF($AA44=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C44,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA44*12)+(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB44/3,0))*4)+(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB44/6,0))*2)+(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F44=\"Terminated\",0,IF($AA44=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C44,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA44*12)+(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB44/3,0))*4)+(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB44/6,0))*2)+(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F44=\"Terminated\",0,IF($AA44=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C44,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA44*12)+(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB44/3,0))*4)+(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB44/6,0))*2)+(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F44=\"Terminated\",0,IF($AA44=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C44,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA44*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F44=\"Terminated\",0,IF($AA44=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C44,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA44*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F44=\"Terminated\",0,IF($AA44=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C44,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA44*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F44=\"Terminated\",0,IF($AA44=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C44,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC44),MONTH($AC44)+1,1),OverEnd,\">=\"&DATE(YEAR($AC44),MONTH($AC44),1))>0,SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA44*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C44)*(PayDate<=$AC44)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA44*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C44,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C44,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL44),($AR44*$AL44)-$AI44-$AK44,MAX(0,IF($AL44=\"B\",IF($AR44<Setup!$C$32,($AR44*Setup!$D$32)-$AI44-$AK44,(($AR44-VLOOKUP($AR44,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR44,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR44,TaxBracket2,1),0,1,1)-$AI44-$AK44),IF($AR44<Setup!$C$21,($AR44*Setup!$D$21)-$AI44-$AK44,(($AR44-VLOOKUP($AR44,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR44,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR44,TaxBracket1,1),0,1,1)-$AI44-$AK44))))","v":2205},{"$f":"IF(ISNUMBER($AL44),($AX44*$AL44)-$AI44-$AK44,MAX(0,IF($AL44=\"B\",IF($AX44<Setup!$C$32,($AX44*Setup!$D$32)-$AI44-$AK44,(($AX44-VLOOKUP($AX44,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX44,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX44,TaxBracket2,1),0,1,1)-$AI44-$AK44),IF($AX44<Setup!$C$21,($AX44*Setup!$D$21)-$AI44-$AK44,(($AX44-VLOOKUP($AX44,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX44,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX44,TaxBracket1,1),0,1,1)-$AI44-$AK44))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A45)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B45,\"yyyy\")&TEXT($B45,\"mm\")&\"-\"&$C45)","v":"202305-EXS009"},{"$f":"IF(ROW($A45)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A45)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A45)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A45)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45071},{"$f":"IF(ROW($A45)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A45)-ROW($A$6)-IF(ROW($A45)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A45)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS009"},{"$f":"IF(ISNA(VLOOKUP($C45,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C45,EmpAll,COLUMN(Emp!$B$4),0))","v":"Brown JT"},{"$f":"IF(ISNA(VLOOKUP($C45,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C45,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C45,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C45,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC45),MONTH($AC45)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C45,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC45),MONTH($AC45),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F45<>\"Active\",0,IF(COUNTIFS(OverEmp,$C45,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMIFS(OverValue,OverEmp,$C45,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1)),IF(AND($AC45>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C45)>0),SUMIFS(EmpIncrease,EmpCode,$C45),SUMIFS(EmpSalary,EmpCode,$C45))))","v":9000},{"$f":"IF($F45<>\"Active\",0,IF(COUNTIFS(OverEmp,$C45,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMIFS(OverValue,OverEmp,$C45,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1)),0))","v":0},{"$f":"IF($F45<>\"Active\",0,IF(COUNTIFS(OverEmp,$C45,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMIFS(OverValue,OverEmp,$C45,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1)),IF(MONTH(B45)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C45),0)))","v":0},{"$f":"IF($F45<>\"Active\",0,IF(COUNTIFS(OverEmp,$C45,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMIFS(OverValue,OverEmp,$C45,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1)),0))","v":0},{"$f":"IF($F45<>\"Active\",0,IF(COUNTIFS(OverEmp,$C45,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMIFS(OverValue,OverEmp,$C45,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C45,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMIFS(OverValue,OverEmp,$C45,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1)),(($BA45/12*$AA45)+(BB45*IF(1-$BC45=0,0,BD45/(1-$BC45))))-IF($F45=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC45,PayEmp,$C45)))","v":183.75},{"$f":"IF($F45=\"Terminated\",0,IF($AA45=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C45,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMIFS(OverValue,OverEmp,$C45,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA45)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA45,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45))))))","v":90},{"$f":"IF($F45=\"Terminated\",0,IF($AA45=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C45,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMIFS(OverValue,OverEmp,$C45,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA45)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA45,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45))))))","v":0},{"$f":"IF($F45=\"Terminated\",0,IF($AA45=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C45,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMIFS(OverValue,OverEmp,$C45,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA45)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA45,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45))))))","v":0},{"$f":"IF($F45=\"Terminated\",0,IF($AA45=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C45,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMIFS(OverValue,OverEmp,$C45,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA45)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA45,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45))))))","v":0},273.75,8726.25,{"$f":"IF($F45=\"Terminated\",0,IF($AA45=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C45,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMIFS(OverValue,OverEmp,$C45,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA45)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA45,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45)))))))","v":90},{"$f":"IF($F45=\"Terminated\",0,IF($AA45=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C45,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMIFS(OverValue,OverEmp,$C45,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA45)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA45,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45)))))))","v":90},{"$f":"IF($F45=\"Terminated\",0,IF($AA45=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C45,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMIFS(OverValue,OverEmp,$C45,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA45)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA45,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45)))))))","v":0},{"$f":"IF($F45=\"Terminated\",0,IF($AA45=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C45,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMIFS(OverValue,OverEmp,$C45,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA45)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA45,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC45,PayEmp,$C45)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B45<=Setup!$E$12,$B45>=Setup!$D$12+1),0,IF($F45<>\"Active\",0,IF($AE45=\"Yes\",$AB45,((YEAR($AC45)*12)+MONTH($AC45))-((YEAR($AD45)*12)+MONTH($AD45)-1))))","v":3},{"$f":"IF(OR($B45<=Setup!$E$12,$B45>=Setup!$D$12+1),0,((YEAR($AC45)*12)+MONTH($AC45))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":3},45071,{"$f":"IF(ISNA(VLOOKUP($C45,EmpAll,COLUMN(Emp!$E$4),0)),$AC45,IF(VLOOKUP($C45,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C45,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C45,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C45,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C45,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A45=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C45,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMIFS(OverValue,OverEmp,$C45,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1)),IF(ISNA(VLOOKUP($C45,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG45,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C45,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C45,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C45,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C45,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C45,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F45=\"Terminated\",0,IF($AA45=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C45,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA45*12)+(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB45/3,0))*4)+(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB45/6,0))*2)+(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F45=\"Terminated\",0,IF($AA45=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C45,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA45*12)+(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB45/3,0))*4)+(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB45/6,0))*2)+(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F45=\"Terminated\",0,IF($AA45=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C45,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA45*12)+(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB45/3,0))*4)+(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB45/6,0))*2)+(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F45=\"Terminated\",0,IF($AA45=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C45,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA45*12)+(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB45/3,0))*4)+(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB45/6,0))*2)+(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F45=\"Terminated\",0,IF($AA45=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C45,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA45*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F45=\"Terminated\",0,IF($AA45=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C45,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA45*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F45=\"Terminated\",0,IF($AA45=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C45,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA45*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F45=\"Terminated\",0,IF($AA45=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C45,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC45),MONTH($AC45)+1,1),OverEnd,\">=\"&DATE(YEAR($AC45),MONTH($AC45),1))>0,SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA45*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C45)*(PayDate<=$AC45)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA45*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C45,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C45,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL45),($AR45*$AL45)-$AI45-$AK45,MAX(0,IF($AL45=\"B\",IF($AR45<Setup!$C$32,($AR45*Setup!$D$32)-$AI45-$AK45,(($AR45-VLOOKUP($AR45,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR45,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR45,TaxBracket2,1),0,1,1)-$AI45-$AK45),IF($AR45<Setup!$C$21,($AR45*Setup!$D$21)-$AI45-$AK45,(($AR45-VLOOKUP($AR45,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR45,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR45,TaxBracket1,1),0,1,1)-$AI45-$AK45))))","v":2205},{"$f":"IF(ISNUMBER($AL45),($AX45*$AL45)-$AI45-$AK45,MAX(0,IF($AL45=\"B\",IF($AX45<Setup!$C$32,($AX45*Setup!$D$32)-$AI45-$AK45,(($AX45-VLOOKUP($AX45,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX45,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX45,TaxBracket2,1),0,1,1)-$AI45-$AK45),IF($AX45<Setup!$C$21,($AX45*Setup!$D$21)-$AI45-$AK45,(($AX45-VLOOKUP($AX45,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX45,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX45,TaxBracket1,1),0,1,1)-$AI45-$AK45))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A46)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B46,\"yyyy\")&TEXT($B46,\"mm\")&\"-\"&$C46)","v":"202305-EXS010"},{"$f":"IF(ROW($A46)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A46)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A46)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A46)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45071},{"$f":"IF(ROW($A46)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A46)-ROW($A$6)-IF(ROW($A46)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A46)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS010"},{"$f":"IF(ISNA(VLOOKUP($C46,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C46,EmpAll,COLUMN(Emp!$B$4),0))","v":"Lewis I"},{"$f":"IF(ISNA(VLOOKUP($C46,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C46,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C46,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C46,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC46),MONTH($AC46)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C46,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC46),MONTH($AC46),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F46<>\"Active\",0,IF(COUNTIFS(OverEmp,$C46,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMIFS(OverValue,OverEmp,$C46,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1)),IF(AND($AC46>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C46)>0),SUMIFS(EmpIncrease,EmpCode,$C46),SUMIFS(EmpSalary,EmpCode,$C46))))","v":9000},{"$f":"IF($F46<>\"Active\",0,IF(COUNTIFS(OverEmp,$C46,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMIFS(OverValue,OverEmp,$C46,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1)),0))","v":0},{"$f":"IF($F46<>\"Active\",0,IF(COUNTIFS(OverEmp,$C46,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMIFS(OverValue,OverEmp,$C46,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1)),IF(MONTH(B46)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C46),0)))","v":0},{"$f":"IF($F46<>\"Active\",0,IF(COUNTIFS(OverEmp,$C46,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMIFS(OverValue,OverEmp,$C46,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1)),0))","v":0},{"$f":"IF($F46<>\"Active\",0,IF(COUNTIFS(OverEmp,$C46,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMIFS(OverValue,OverEmp,$C46,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C46,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMIFS(OverValue,OverEmp,$C46,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1)),(($BA46/12*$AA46)+(BB46*IF(1-$BC46=0,0,BD46/(1-$BC46))))-IF($F46=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC46,PayEmp,$C46)))","v":183.75},{"$f":"IF($F46=\"Terminated\",0,IF($AA46=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C46,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMIFS(OverValue,OverEmp,$C46,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA46)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA46,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46))))))","v":90},{"$f":"IF($F46=\"Terminated\",0,IF($AA46=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C46,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMIFS(OverValue,OverEmp,$C46,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA46)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA46,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46))))))","v":0},{"$f":"IF($F46=\"Terminated\",0,IF($AA46=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C46,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMIFS(OverValue,OverEmp,$C46,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA46)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA46,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46))))))","v":0},{"$f":"IF($F46=\"Terminated\",0,IF($AA46=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C46,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMIFS(OverValue,OverEmp,$C46,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA46)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA46,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46))))))","v":0},273.75,8726.25,{"$f":"IF($F46=\"Terminated\",0,IF($AA46=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C46,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMIFS(OverValue,OverEmp,$C46,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA46)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA46,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46)))))))","v":90},{"$f":"IF($F46=\"Terminated\",0,IF($AA46=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C46,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMIFS(OverValue,OverEmp,$C46,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA46)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA46,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46)))))))","v":90},{"$f":"IF($F46=\"Terminated\",0,IF($AA46=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C46,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMIFS(OverValue,OverEmp,$C46,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA46)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA46,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46)))))))","v":0},{"$f":"IF($F46=\"Terminated\",0,IF($AA46=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C46,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMIFS(OverValue,OverEmp,$C46,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA46)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA46,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC46,PayEmp,$C46)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B46<=Setup!$E$12,$B46>=Setup!$D$12+1),0,IF($F46<>\"Active\",0,IF($AE46=\"Yes\",$AB46,((YEAR($AC46)*12)+MONTH($AC46))-((YEAR($AD46)*12)+MONTH($AD46)-1))))","v":3},{"$f":"IF(OR($B46<=Setup!$E$12,$B46>=Setup!$D$12+1),0,((YEAR($AC46)*12)+MONTH($AC46))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":3},45071,{"$f":"IF(ISNA(VLOOKUP($C46,EmpAll,COLUMN(Emp!$E$4),0)),$AC46,IF(VLOOKUP($C46,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C46,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C46,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C46,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C46,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A46=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C46,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMIFS(OverValue,OverEmp,$C46,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1)),IF(ISNA(VLOOKUP($C46,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG46,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C46,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C46,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C46,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C46,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C46,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F46=\"Terminated\",0,IF($AA46=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C46,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA46*12)+(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB46/3,0))*4)+(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB46/6,0))*2)+(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F46=\"Terminated\",0,IF($AA46=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C46,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA46*12)+(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB46/3,0))*4)+(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB46/6,0))*2)+(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F46=\"Terminated\",0,IF($AA46=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C46,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA46*12)+(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB46/3,0))*4)+(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB46/6,0))*2)+(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F46=\"Terminated\",0,IF($AA46=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C46,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA46*12)+(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB46/3,0))*4)+(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB46/6,0))*2)+(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F46=\"Terminated\",0,IF($AA46=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C46,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA46*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F46=\"Terminated\",0,IF($AA46=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C46,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA46*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F46=\"Terminated\",0,IF($AA46=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C46,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA46*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F46=\"Terminated\",0,IF($AA46=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C46,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC46),MONTH($AC46)+1,1),OverEnd,\">=\"&DATE(YEAR($AC46),MONTH($AC46),1))>0,SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA46*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C46)*(PayDate<=$AC46)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA46*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C46,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C46,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL46),($AR46*$AL46)-$AI46-$AK46,MAX(0,IF($AL46=\"B\",IF($AR46<Setup!$C$32,($AR46*Setup!$D$32)-$AI46-$AK46,(($AR46-VLOOKUP($AR46,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR46,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR46,TaxBracket2,1),0,1,1)-$AI46-$AK46),IF($AR46<Setup!$C$21,($AR46*Setup!$D$21)-$AI46-$AK46,(($AR46-VLOOKUP($AR46,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR46,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR46,TaxBracket1,1),0,1,1)-$AI46-$AK46))))","v":2205},{"$f":"IF(ISNUMBER($AL46),($AX46*$AL46)-$AI46-$AK46,MAX(0,IF($AL46=\"B\",IF($AX46<Setup!$C$32,($AX46*Setup!$D$32)-$AI46-$AK46,(($AX46-VLOOKUP($AX46,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX46,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX46,TaxBracket2,1),0,1,1)-$AI46-$AK46),IF($AX46<Setup!$C$21,($AX46*Setup!$D$21)-$AI46-$AK46,(($AX46-VLOOKUP($AX46,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX46,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX46,TaxBracket1,1),0,1,1)-$AI46-$AK46))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A47)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B47,\"yyyy\")&TEXT($B47,\"mm\")&\"-\"&$C47)","v":"202305-EXS011"},{"$f":"IF(ROW($A47)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A47)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A47)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A47)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45071},{"$f":"IF(ROW($A47)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A47)-ROW($A$6)-IF(ROW($A47)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A47)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS011"},{"$f":"IF(ISNA(VLOOKUP($C47,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C47,EmpAll,COLUMN(Emp!$B$4),0))","v":"Newport GD"},{"$f":"IF(ISNA(VLOOKUP($C47,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C47,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C47,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C47,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC47),MONTH($AC47)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C47,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC47),MONTH($AC47),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F47<>\"Active\",0,IF(COUNTIFS(OverEmp,$C47,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMIFS(OverValue,OverEmp,$C47,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1)),IF(AND($AC47>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C47)>0),SUMIFS(EmpIncrease,EmpCode,$C47),SUMIFS(EmpSalary,EmpCode,$C47))))","v":5000},{"$f":"IF($F47<>\"Active\",0,IF(COUNTIFS(OverEmp,$C47,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMIFS(OverValue,OverEmp,$C47,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1)),0))","v":0},{"$f":"IF($F47<>\"Active\",0,IF(COUNTIFS(OverEmp,$C47,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMIFS(OverValue,OverEmp,$C47,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1)),IF(MONTH(B47)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C47),0)))","v":0},{"$f":"IF($F47<>\"Active\",0,IF(COUNTIFS(OverEmp,$C47,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMIFS(OverValue,OverEmp,$C47,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1)),0))","v":0},{"$f":"IF($F47<>\"Active\",0,IF(COUNTIFS(OverEmp,$C47,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMIFS(OverValue,OverEmp,$C47,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C47,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMIFS(OverValue,OverEmp,$C47,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1)),(($BA47/12*$AA47)+(BB47*IF(1-$BC47=0,0,BD47/(1-$BC47))))-IF($F47=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC47,PayEmp,$C47)))","v":0},{"$f":"IF($F47=\"Terminated\",0,IF($AA47=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C47,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMIFS(OverValue,OverEmp,$C47,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA47)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA47,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47))))))","v":50},{"$f":"IF($F47=\"Terminated\",0,IF($AA47=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C47,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMIFS(OverValue,OverEmp,$C47,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA47)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA47,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47))))))","v":0},{"$f":"IF($F47=\"Terminated\",0,IF($AA47=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C47,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMIFS(OverValue,OverEmp,$C47,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA47)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA47,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47))))))","v":0},{"$f":"IF($F47=\"Terminated\",0,IF($AA47=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C47,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMIFS(OverValue,OverEmp,$C47,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA47)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA47,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47))))))","v":0},50,4950,{"$f":"IF($F47=\"Terminated\",0,IF($AA47=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C47,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMIFS(OverValue,OverEmp,$C47,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA47)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA47,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47)))))))","v":50},{"$f":"IF($F47=\"Terminated\",0,IF($AA47=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C47,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMIFS(OverValue,OverEmp,$C47,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA47)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA47,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47)))))))","v":50},{"$f":"IF($F47=\"Terminated\",0,IF($AA47=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C47,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMIFS(OverValue,OverEmp,$C47,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA47)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA47,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47)))))))","v":0},{"$f":"IF($F47=\"Terminated\",0,IF($AA47=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C47,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMIFS(OverValue,OverEmp,$C47,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA47)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA47,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC47,PayEmp,$C47)))))))","v":0},100,5100,150,{"$f":"IF(OR($B47<=Setup!$E$12,$B47>=Setup!$D$12+1),0,IF($F47<>\"Active\",0,IF($AE47=\"Yes\",$AB47,((YEAR($AC47)*12)+MONTH($AC47))-((YEAR($AD47)*12)+MONTH($AD47)-1))))","v":3},{"$f":"IF(OR($B47<=Setup!$E$12,$B47>=Setup!$D$12+1),0,((YEAR($AC47)*12)+MONTH($AC47))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":3},45071,{"$f":"IF(ISNA(VLOOKUP($C47,EmpAll,COLUMN(Emp!$E$4),0)),$AC47,IF(VLOOKUP($C47,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C47,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C47,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C47,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C47,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A47=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C47,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMIFS(OverValue,OverEmp,$C47,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1)),IF(ISNA(VLOOKUP($C47,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG47,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C47,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C47,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C47,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C47,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C47,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F47=\"Terminated\",0,IF($AA47=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C47,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA47*12)+(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB47/3,0))*4)+(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB47/6,0))*2)+(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F47=\"Terminated\",0,IF($AA47=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C47,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA47*12)+(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB47/3,0))*4)+(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB47/6,0))*2)+(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F47=\"Terminated\",0,IF($AA47=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C47,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA47*12)+(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB47/3,0))*4)+(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB47/6,0))*2)+(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F47=\"Terminated\",0,IF($AA47=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C47,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA47*12)+(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB47/3,0))*4)+(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB47/6,0))*2)+(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F47=\"Terminated\",0,IF($AA47=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C47,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA47*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F47=\"Terminated\",0,IF($AA47=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C47,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA47*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F47=\"Terminated\",0,IF($AA47=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C47,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA47*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F47=\"Terminated\",0,IF($AA47=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C47,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC47),MONTH($AC47)+1,1),OverEnd,\">=\"&DATE(YEAR($AC47),MONTH($AC47),1))>0,SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA47*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C47)*(PayDate<=$AC47)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA47*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C47,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C47,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL47),($AR47*$AL47)-$AI47-$AK47,MAX(0,IF($AL47=\"B\",IF($AR47<Setup!$C$32,($AR47*Setup!$D$32)-$AI47-$AK47,(($AR47-VLOOKUP($AR47,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR47,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR47,TaxBracket2,1),0,1,1)-$AI47-$AK47),IF($AR47<Setup!$C$21,($AR47*Setup!$D$21)-$AI47-$AK47,(($AR47-VLOOKUP($AR47,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR47,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR47,TaxBracket1,1),0,1,1)-$AI47-$AK47))))","v":0},{"$f":"IF(ISNUMBER($AL47),($AX47*$AL47)-$AI47-$AK47,MAX(0,IF($AL47=\"B\",IF($AX47<Setup!$C$32,($AX47*Setup!$D$32)-$AI47-$AK47,(($AX47-VLOOKUP($AX47,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX47,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX47,TaxBracket2,1),0,1,1)-$AI47-$AK47),IF($AX47<Setup!$C$21,($AX47*Setup!$D$21)-$AI47-$AK47,(($AX47-VLOOKUP($AX47,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX47,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX47,TaxBracket1,1),0,1,1)-$AI47-$AK47))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A48)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B48,\"yyyy\")&TEXT($B48,\"mm\")&\"-\"&$C48)","v":"202305-EXS012"},{"$f":"IF(ROW($A48)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A48)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A48)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A48)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45071},{"$f":"IF(ROW($A48)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A48)-ROW($A$6)-IF(ROW($A48)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A48)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS012"},{"$f":"IF(ISNA(VLOOKUP($C48,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C48,EmpAll,COLUMN(Emp!$B$4),0))","v":"Williams VS"},{"$f":"IF(ISNA(VLOOKUP($C48,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C48,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C48,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C48,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC48),MONTH($AC48)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C48,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC48),MONTH($AC48),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F48<>\"Active\",0,IF(COUNTIFS(OverEmp,$C48,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMIFS(OverValue,OverEmp,$C48,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1)),IF(AND($AC48>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C48)>0),SUMIFS(EmpIncrease,EmpCode,$C48),SUMIFS(EmpSalary,EmpCode,$C48))))","v":5000},{"$f":"IF($F48<>\"Active\",0,IF(COUNTIFS(OverEmp,$C48,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMIFS(OverValue,OverEmp,$C48,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1)),0))","v":0},{"$f":"IF($F48<>\"Active\",0,IF(COUNTIFS(OverEmp,$C48,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMIFS(OverValue,OverEmp,$C48,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1)),IF(MONTH(B48)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C48),0)))","v":0},{"$f":"IF($F48<>\"Active\",0,IF(COUNTIFS(OverEmp,$C48,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMIFS(OverValue,OverEmp,$C48,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1)),0))","v":0},{"$f":"IF($F48<>\"Active\",0,IF(COUNTIFS(OverEmp,$C48,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMIFS(OverValue,OverEmp,$C48,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C48,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMIFS(OverValue,OverEmp,$C48,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1)),(($BA48/12*$AA48)+(BB48*IF(1-$BC48=0,0,BD48/(1-$BC48))))-IF($F48=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC48,PayEmp,$C48)))","v":0},{"$f":"IF($F48=\"Terminated\",0,IF($AA48=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C48,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMIFS(OverValue,OverEmp,$C48,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA48)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA48,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48))))))","v":50},{"$f":"IF($F48=\"Terminated\",0,IF($AA48=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C48,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMIFS(OverValue,OverEmp,$C48,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA48)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA48,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48))))))","v":0},{"$f":"IF($F48=\"Terminated\",0,IF($AA48=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C48,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMIFS(OverValue,OverEmp,$C48,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA48)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA48,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48))))))","v":0},{"$f":"IF($F48=\"Terminated\",0,IF($AA48=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C48,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMIFS(OverValue,OverEmp,$C48,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA48)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA48,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48))))))","v":0},50,4950,{"$f":"IF($F48=\"Terminated\",0,IF($AA48=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C48,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMIFS(OverValue,OverEmp,$C48,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA48)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA48,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48)))))))","v":50},{"$f":"IF($F48=\"Terminated\",0,IF($AA48=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C48,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMIFS(OverValue,OverEmp,$C48,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA48)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA48,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48)))))))","v":50},{"$f":"IF($F48=\"Terminated\",0,IF($AA48=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C48,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMIFS(OverValue,OverEmp,$C48,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA48)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA48,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48)))))))","v":0},{"$f":"IF($F48=\"Terminated\",0,IF($AA48=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C48,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMIFS(OverValue,OverEmp,$C48,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA48)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA48,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC48,PayEmp,$C48)))))))","v":0},100,5100,150,{"$f":"IF(OR($B48<=Setup!$E$12,$B48>=Setup!$D$12+1),0,IF($F48<>\"Active\",0,IF($AE48=\"Yes\",$AB48,((YEAR($AC48)*12)+MONTH($AC48))-((YEAR($AD48)*12)+MONTH($AD48)-1))))","v":3},{"$f":"IF(OR($B48<=Setup!$E$12,$B48>=Setup!$D$12+1),0,((YEAR($AC48)*12)+MONTH($AC48))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":3},45071,{"$f":"IF(ISNA(VLOOKUP($C48,EmpAll,COLUMN(Emp!$E$4),0)),$AC48,IF(VLOOKUP($C48,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C48,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C48,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C48,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C48,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A48=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C48,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMIFS(OverValue,OverEmp,$C48,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1)),IF(ISNA(VLOOKUP($C48,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG48,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C48,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C48,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C48,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C48,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C48,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F48=\"Terminated\",0,IF($AA48=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C48,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA48*12)+(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB48/3,0))*4)+(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB48/6,0))*2)+(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F48=\"Terminated\",0,IF($AA48=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C48,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA48*12)+(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB48/3,0))*4)+(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB48/6,0))*2)+(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F48=\"Terminated\",0,IF($AA48=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C48,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA48*12)+(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB48/3,0))*4)+(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB48/6,0))*2)+(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F48=\"Terminated\",0,IF($AA48=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C48,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA48*12)+(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB48/3,0))*4)+(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB48/6,0))*2)+(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F48=\"Terminated\",0,IF($AA48=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C48,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA48*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F48=\"Terminated\",0,IF($AA48=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C48,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA48*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F48=\"Terminated\",0,IF($AA48=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C48,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA48*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F48=\"Terminated\",0,IF($AA48=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C48,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC48),MONTH($AC48)+1,1),OverEnd,\">=\"&DATE(YEAR($AC48),MONTH($AC48),1))>0,SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA48*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C48)*(PayDate<=$AC48)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA48*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C48,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C48,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL48),($AR48*$AL48)-$AI48-$AK48,MAX(0,IF($AL48=\"B\",IF($AR48<Setup!$C$32,($AR48*Setup!$D$32)-$AI48-$AK48,(($AR48-VLOOKUP($AR48,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR48,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR48,TaxBracket2,1),0,1,1)-$AI48-$AK48),IF($AR48<Setup!$C$21,($AR48*Setup!$D$21)-$AI48-$AK48,(($AR48-VLOOKUP($AR48,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR48,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR48,TaxBracket1,1),0,1,1)-$AI48-$AK48))))","v":0},{"$f":"IF(ISNUMBER($AL48),($AX48*$AL48)-$AI48-$AK48,MAX(0,IF($AL48=\"B\",IF($AX48<Setup!$C$32,($AX48*Setup!$D$32)-$AI48-$AK48,(($AX48-VLOOKUP($AX48,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX48,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX48,TaxBracket2,1),0,1,1)-$AI48-$AK48),IF($AX48<Setup!$C$21,($AX48*Setup!$D$21)-$AI48-$AK48,(($AX48-VLOOKUP($AX48,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX48,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX48,TaxBracket1,1),0,1,1)-$AI48-$AK48))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A49)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B49,\"yyyy\")&TEXT($B49,\"mm\")&\"-\"&$C49)","v":"202305-EXS013"},{"$f":"IF(ROW($A49)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A49)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A49)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A49)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45071},{"$f":"IF(ROW($A49)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A49)-ROW($A$6)-IF(ROW($A49)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A49)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS013"},{"$f":"IF(ISNA(VLOOKUP($C49,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C49,EmpAll,COLUMN(Emp!$B$4),0))","v":"East WD"},{"$f":"IF(ISNA(VLOOKUP($C49,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C49,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C49,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C49,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC49),MONTH($AC49)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C49,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC49),MONTH($AC49),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F49<>\"Active\",0,IF(COUNTIFS(OverEmp,$C49,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMIFS(OverValue,OverEmp,$C49,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1)),IF(AND($AC49>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C49)>0),SUMIFS(EmpIncrease,EmpCode,$C49),SUMIFS(EmpSalary,EmpCode,$C49))))","v":5000},{"$f":"IF($F49<>\"Active\",0,IF(COUNTIFS(OverEmp,$C49,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMIFS(OverValue,OverEmp,$C49,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1)),0))","v":0},{"$f":"IF($F49<>\"Active\",0,IF(COUNTIFS(OverEmp,$C49,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMIFS(OverValue,OverEmp,$C49,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1)),IF(MONTH(B49)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C49),0)))","v":0},{"$f":"IF($F49<>\"Active\",0,IF(COUNTIFS(OverEmp,$C49,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMIFS(OverValue,OverEmp,$C49,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1)),0))","v":0},{"$f":"IF($F49<>\"Active\",0,IF(COUNTIFS(OverEmp,$C49,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMIFS(OverValue,OverEmp,$C49,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C49,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMIFS(OverValue,OverEmp,$C49,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1)),(($BA49/12*$AA49)+(BB49*IF(1-$BC49=0,0,BD49/(1-$BC49))))-IF($F49=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC49,PayEmp,$C49)))","v":0},{"$f":"IF($F49=\"Terminated\",0,IF($AA49=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C49,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMIFS(OverValue,OverEmp,$C49,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA49)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA49,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49))))))","v":50},{"$f":"IF($F49=\"Terminated\",0,IF($AA49=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C49,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMIFS(OverValue,OverEmp,$C49,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA49)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA49,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49))))))","v":0},{"$f":"IF($F49=\"Terminated\",0,IF($AA49=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C49,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMIFS(OverValue,OverEmp,$C49,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA49)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA49,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49))))))","v":0},{"$f":"IF($F49=\"Terminated\",0,IF($AA49=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C49,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMIFS(OverValue,OverEmp,$C49,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA49)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA49,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49))))))","v":0},50,4950,{"$f":"IF($F49=\"Terminated\",0,IF($AA49=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C49,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMIFS(OverValue,OverEmp,$C49,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA49)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA49,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49)))))))","v":50},{"$f":"IF($F49=\"Terminated\",0,IF($AA49=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C49,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMIFS(OverValue,OverEmp,$C49,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA49)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA49,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49)))))))","v":50},{"$f":"IF($F49=\"Terminated\",0,IF($AA49=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C49,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMIFS(OverValue,OverEmp,$C49,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA49)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA49,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49)))))))","v":0},{"$f":"IF($F49=\"Terminated\",0,IF($AA49=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C49,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMIFS(OverValue,OverEmp,$C49,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA49)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA49,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC49,PayEmp,$C49)))))))","v":0},100,5100,150,{"$f":"IF(OR($B49<=Setup!$E$12,$B49>=Setup!$D$12+1),0,IF($F49<>\"Active\",0,IF($AE49=\"Yes\",$AB49,((YEAR($AC49)*12)+MONTH($AC49))-((YEAR($AD49)*12)+MONTH($AD49)-1))))","v":3},{"$f":"IF(OR($B49<=Setup!$E$12,$B49>=Setup!$D$12+1),0,((YEAR($AC49)*12)+MONTH($AC49))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":3},45071,{"$f":"IF(ISNA(VLOOKUP($C49,EmpAll,COLUMN(Emp!$E$4),0)),$AC49,IF(VLOOKUP($C49,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C49,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C49,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C49,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C49,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A49=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C49,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMIFS(OverValue,OverEmp,$C49,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1)),IF(ISNA(VLOOKUP($C49,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG49,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C49,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C49,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C49,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C49,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C49,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F49=\"Terminated\",0,IF($AA49=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C49,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA49*12)+(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB49/3,0))*4)+(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB49/6,0))*2)+(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F49=\"Terminated\",0,IF($AA49=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C49,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA49*12)+(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB49/3,0))*4)+(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB49/6,0))*2)+(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F49=\"Terminated\",0,IF($AA49=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C49,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA49*12)+(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB49/3,0))*4)+(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB49/6,0))*2)+(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F49=\"Terminated\",0,IF($AA49=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C49,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA49*12)+(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB49/3,0))*4)+(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB49/6,0))*2)+(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F49=\"Terminated\",0,IF($AA49=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C49,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA49*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F49=\"Terminated\",0,IF($AA49=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C49,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA49*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F49=\"Terminated\",0,IF($AA49=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C49,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA49*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F49=\"Terminated\",0,IF($AA49=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C49,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC49),MONTH($AC49)+1,1),OverEnd,\">=\"&DATE(YEAR($AC49),MONTH($AC49),1))>0,SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA49*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C49)*(PayDate<=$AC49)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA49*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C49,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C49,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL49),($AR49*$AL49)-$AI49-$AK49,MAX(0,IF($AL49=\"B\",IF($AR49<Setup!$C$32,($AR49*Setup!$D$32)-$AI49-$AK49,(($AR49-VLOOKUP($AR49,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR49,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR49,TaxBracket2,1),0,1,1)-$AI49-$AK49),IF($AR49<Setup!$C$21,($AR49*Setup!$D$21)-$AI49-$AK49,(($AR49-VLOOKUP($AR49,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR49,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR49,TaxBracket1,1),0,1,1)-$AI49-$AK49))))","v":0},{"$f":"IF(ISNUMBER($AL49),($AX49*$AL49)-$AI49-$AK49,MAX(0,IF($AL49=\"B\",IF($AX49<Setup!$C$32,($AX49*Setup!$D$32)-$AI49-$AK49,(($AX49-VLOOKUP($AX49,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX49,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX49,TaxBracket2,1),0,1,1)-$AI49-$AK49),IF($AX49<Setup!$C$21,($AX49*Setup!$D$21)-$AI49-$AK49,(($AX49-VLOOKUP($AX49,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX49,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX49,TaxBracket1,1),0,1,1)-$AI49-$AK49))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A50)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B50,\"yyyy\")&TEXT($B50,\"mm\")&\"-\"&$C50)","v":"202305-EXS014"},{"$f":"IF(ROW($A50)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A50)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A50)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A50)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45071},{"$f":"IF(ROW($A50)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A50)-ROW($A$6)-IF(ROW($A50)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A50)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS014"},{"$f":"IF(ISNA(VLOOKUP($C50,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C50,EmpAll,COLUMN(Emp!$B$4),0))","v":"Ross Q"},{"$f":"IF(ISNA(VLOOKUP($C50,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C50,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C50,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C50,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC50),MONTH($AC50)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C50,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC50),MONTH($AC50),0)),\"Terminated\",\"Active\")))","v":"Inactive"},{"$f":"IF($F50<>\"Active\",0,IF(COUNTIFS(OverEmp,$C50,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMIFS(OverValue,OverEmp,$C50,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1)),IF(AND($AC50>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C50)>0),SUMIFS(EmpIncrease,EmpCode,$C50),SUMIFS(EmpSalary,EmpCode,$C50))))","v":0},{"$f":"IF($F50<>\"Active\",0,IF(COUNTIFS(OverEmp,$C50,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMIFS(OverValue,OverEmp,$C50,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1)),0))","v":0},{"$f":"IF($F50<>\"Active\",0,IF(COUNTIFS(OverEmp,$C50,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMIFS(OverValue,OverEmp,$C50,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1)),IF(MONTH(B50)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C50),0)))","v":0},{"$f":"IF($F50<>\"Active\",0,IF(COUNTIFS(OverEmp,$C50,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMIFS(OverValue,OverEmp,$C50,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1)),0))","v":0},{"$f":"IF($F50<>\"Active\",0,IF(COUNTIFS(OverEmp,$C50,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMIFS(OverValue,OverEmp,$C50,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C50,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMIFS(OverValue,OverEmp,$C50,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1)),(($BA50/12*$AA50)+(BB50*IF(1-$BC50=0,0,BD50/(1-$BC50))))-IF($F50=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC50,PayEmp,$C50)))","v":0},{"$f":"IF($F50=\"Terminated\",0,IF($AA50=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C50,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMIFS(OverValue,OverEmp,$C50,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA50)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA50,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50))))))","v":0},{"$f":"IF($F50=\"Terminated\",0,IF($AA50=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C50,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMIFS(OverValue,OverEmp,$C50,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA50)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA50,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50))))))","v":0},{"$f":"IF($F50=\"Terminated\",0,IF($AA50=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C50,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMIFS(OverValue,OverEmp,$C50,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA50)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA50,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50))))))","v":0},{"$f":"IF($F50=\"Terminated\",0,IF($AA50=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C50,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMIFS(OverValue,OverEmp,$C50,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA50)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA50,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50))))))","v":0},0,0,{"$f":"IF($F50=\"Terminated\",0,IF($AA50=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C50,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMIFS(OverValue,OverEmp,$C50,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA50)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA50,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50)))))))","v":0},{"$f":"IF($F50=\"Terminated\",0,IF($AA50=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C50,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMIFS(OverValue,OverEmp,$C50,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA50)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA50,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50)))))))","v":0},{"$f":"IF($F50=\"Terminated\",0,IF($AA50=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C50,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMIFS(OverValue,OverEmp,$C50,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA50)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA50,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50)))))))","v":0},{"$f":"IF($F50=\"Terminated\",0,IF($AA50=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C50,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMIFS(OverValue,OverEmp,$C50,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA50)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA50,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC50,PayEmp,$C50)))))))","v":0},0,0,0,{"$f":"IF(OR($B50<=Setup!$E$12,$B50>=Setup!$D$12+1),0,IF($F50<>\"Active\",0,IF($AE50=\"Yes\",$AB50,((YEAR($AC50)*12)+MONTH($AC50))-((YEAR($AD50)*12)+MONTH($AD50)-1))))","v":0},{"$f":"IF(OR($B50<=Setup!$E$12,$B50>=Setup!$D$12+1),0,((YEAR($AC50)*12)+MONTH($AC50))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":3},45071,{"$f":"IF(ISNA(VLOOKUP($C50,EmpAll,COLUMN(Emp!$E$4),0)),$AC50,IF(VLOOKUP($C50,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C50,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-06-25"},{"$f":"IF(ISNA(VLOOKUP($C50,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C50,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C50,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A50=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C50,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMIFS(OverValue,OverEmp,$C50,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1)),IF(ISNA(VLOOKUP($C50,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG50,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C50,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C50,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C50,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C50,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C50,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F50=\"Terminated\",0,IF($AA50=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C50,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA50*12)+(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB50/3,0))*4)+(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB50/6,0))*2)+(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F50=\"Terminated\",0,IF($AA50=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C50,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA50*12)+(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB50/3,0))*4)+(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB50/6,0))*2)+(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F50=\"Terminated\",0,IF($AA50=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C50,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA50*12)+(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB50/3,0))*4)+(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB50/6,0))*2)+(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F50=\"Terminated\",0,IF($AA50=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C50,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA50*12)+(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB50/3,0))*4)+(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB50/6,0))*2)+(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F50=\"Terminated\",0,IF($AA50=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C50,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA50*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F50=\"Terminated\",0,IF($AA50=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C50,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA50*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F50=\"Terminated\",0,IF($AA50=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C50,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA50*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F50=\"Terminated\",0,IF($AA50=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C50,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC50),MONTH($AC50)+1,1),OverEnd,\">=\"&DATE(YEAR($AC50),MONTH($AC50),1))>0,SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA50*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C50)*(PayDate<=$AC50)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA50*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C50,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C50,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL50),($AR50*$AL50)-$AI50-$AK50,MAX(0,IF($AL50=\"B\",IF($AR50<Setup!$C$32,($AR50*Setup!$D$32)-$AI50-$AK50,(($AR50-VLOOKUP($AR50,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR50,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR50,TaxBracket2,1),0,1,1)-$AI50-$AK50),IF($AR50<Setup!$C$21,($AR50*Setup!$D$21)-$AI50-$AK50,(($AR50-VLOOKUP($AR50,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR50,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR50,TaxBracket1,1),0,1,1)-$AI50-$AK50))))","v":0},{"$f":"IF(ISNUMBER($AL50),($AX50*$AL50)-$AI50-$AK50,MAX(0,IF($AL50=\"B\",IF($AX50<Setup!$C$32,($AX50*Setup!$D$32)-$AI50-$AK50,(($AX50-VLOOKUP($AX50,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX50,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX50,TaxBracket2,1),0,1,1)-$AI50-$AK50),IF($AX50<Setup!$C$21,($AX50*Setup!$D$21)-$AI50-$AK50,(($AX50-VLOOKUP($AX50,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX50,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX50,TaxBracket1,1),0,1,1)-$AI50-$AK50))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A51)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B51,\"yyyy\")&TEXT($B51,\"mm\")&\"-\"&$C51)","v":"202305-EXS015"},{"$f":"IF(ROW($A51)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A51)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A51)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A51)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45071},{"$f":"IF(ROW($A51)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A51)-ROW($A$6)-IF(ROW($A51)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A51)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS015"},{"$f":"IF(ISNA(VLOOKUP($C51,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C51,EmpAll,COLUMN(Emp!$B$4),0))","v":"Graham L"},{"$f":"IF(ISNA(VLOOKUP($C51,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C51,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C51,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C51,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC51),MONTH($AC51)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C51,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC51),MONTH($AC51),0)),\"Terminated\",\"Active\")))","v":"Inactive"},{"$f":"IF($F51<>\"Active\",0,IF(COUNTIFS(OverEmp,$C51,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMIFS(OverValue,OverEmp,$C51,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1)),IF(AND($AC51>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C51)>0),SUMIFS(EmpIncrease,EmpCode,$C51),SUMIFS(EmpSalary,EmpCode,$C51))))","v":0},{"$f":"IF($F51<>\"Active\",0,IF(COUNTIFS(OverEmp,$C51,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMIFS(OverValue,OverEmp,$C51,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1)),0))","v":0},{"$f":"IF($F51<>\"Active\",0,IF(COUNTIFS(OverEmp,$C51,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMIFS(OverValue,OverEmp,$C51,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1)),IF(MONTH(B51)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C51),0)))","v":0},{"$f":"IF($F51<>\"Active\",0,IF(COUNTIFS(OverEmp,$C51,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMIFS(OverValue,OverEmp,$C51,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1)),0))","v":0},{"$f":"IF($F51<>\"Active\",0,IF(COUNTIFS(OverEmp,$C51,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMIFS(OverValue,OverEmp,$C51,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C51,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMIFS(OverValue,OverEmp,$C51,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1)),(($BA51/12*$AA51)+(BB51*IF(1-$BC51=0,0,BD51/(1-$BC51))))-IF($F51=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC51,PayEmp,$C51)))","v":0},{"$f":"IF($F51=\"Terminated\",0,IF($AA51=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C51,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMIFS(OverValue,OverEmp,$C51,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA51)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA51,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51))))))","v":0},{"$f":"IF($F51=\"Terminated\",0,IF($AA51=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C51,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMIFS(OverValue,OverEmp,$C51,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA51)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA51,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51))))))","v":0},{"$f":"IF($F51=\"Terminated\",0,IF($AA51=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C51,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMIFS(OverValue,OverEmp,$C51,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA51)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA51,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51))))))","v":0},{"$f":"IF($F51=\"Terminated\",0,IF($AA51=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C51,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMIFS(OverValue,OverEmp,$C51,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA51)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA51,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51))))))","v":0},0,0,{"$f":"IF($F51=\"Terminated\",0,IF($AA51=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C51,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMIFS(OverValue,OverEmp,$C51,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA51)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA51,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51)))))))","v":0},{"$f":"IF($F51=\"Terminated\",0,IF($AA51=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C51,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMIFS(OverValue,OverEmp,$C51,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA51)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA51,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51)))))))","v":0},{"$f":"IF($F51=\"Terminated\",0,IF($AA51=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C51,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMIFS(OverValue,OverEmp,$C51,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA51)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA51,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51)))))))","v":0},{"$f":"IF($F51=\"Terminated\",0,IF($AA51=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C51,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMIFS(OverValue,OverEmp,$C51,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA51)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA51,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC51,PayEmp,$C51)))))))","v":0},0,0,0,{"$f":"IF(OR($B51<=Setup!$E$12,$B51>=Setup!$D$12+1),0,IF($F51<>\"Active\",0,IF($AE51=\"Yes\",$AB51,((YEAR($AC51)*12)+MONTH($AC51))-((YEAR($AD51)*12)+MONTH($AD51)-1))))","v":0},{"$f":"IF(OR($B51<=Setup!$E$12,$B51>=Setup!$D$12+1),0,((YEAR($AC51)*12)+MONTH($AC51))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":3},45071,{"$f":"IF(ISNA(VLOOKUP($C51,EmpAll,COLUMN(Emp!$E$4),0)),$AC51,IF(VLOOKUP($C51,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C51,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-01-25"},{"$f":"IF(ISNA(VLOOKUP($C51,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C51,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C51,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A51=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C51,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMIFS(OverValue,OverEmp,$C51,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1)),IF(ISNA(VLOOKUP($C51,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG51,MedList,COLUMN(Setup!$C$49),1)","v":364},5460,{"$f":"IF(ISNA(VLOOKUP($C51,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C51,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C51,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C51,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C51,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F51=\"Terminated\",0,IF($AA51=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C51,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA51*12)+(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB51/3,0))*4)+(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB51/6,0))*2)+(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F51=\"Terminated\",0,IF($AA51=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C51,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA51*12)+(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB51/3,0))*4)+(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB51/6,0))*2)+(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F51=\"Terminated\",0,IF($AA51=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C51,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA51*12)+(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB51/3,0))*4)+(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB51/6,0))*2)+(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F51=\"Terminated\",0,IF($AA51=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C51,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA51*12)+(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB51/3,0))*4)+(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB51/6,0))*2)+(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F51=\"Terminated\",0,IF($AA51=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C51,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA51*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F51=\"Terminated\",0,IF($AA51=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C51,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA51*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F51=\"Terminated\",0,IF($AA51=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C51,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA51*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F51=\"Terminated\",0,IF($AA51=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C51,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC51),MONTH($AC51)+1,1),OverEnd,\">=\"&DATE(YEAR($AC51),MONTH($AC51),1))>0,SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA51*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C51)*(PayDate<=$AC51)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA51*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C51,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C51,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL51),($AR51*$AL51)-$AI51-$AK51,MAX(0,IF($AL51=\"B\",IF($AR51<Setup!$C$32,($AR51*Setup!$D$32)-$AI51-$AK51,(($AR51-VLOOKUP($AR51,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR51,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR51,TaxBracket2,1),0,1,1)-$AI51-$AK51),IF($AR51<Setup!$C$21,($AR51*Setup!$D$21)-$AI51-$AK51,(($AR51-VLOOKUP($AR51,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR51,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR51,TaxBracket1,1),0,1,1)-$AI51-$AK51))))","v":0},{"$f":"IF(ISNUMBER($AL51),($AX51*$AL51)-$AI51-$AK51,MAX(0,IF($AL51=\"B\",IF($AX51<Setup!$C$32,($AX51*Setup!$D$32)-$AI51-$AK51,(($AX51-VLOOKUP($AX51,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX51,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX51,TaxBracket2,1),0,1,1)-$AI51-$AK51),IF($AX51<Setup!$C$21,($AX51*Setup!$D$21)-$AI51-$AK51,(($AX51-VLOOKUP($AX51,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX51,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX51,TaxBracket1,1),0,1,1)-$AI51-$AK51))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A52)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B52,\"yyyy\")&TEXT($B52,\"mm\")&\"-\"&$C52)","v":"202306-EXS001"},{"$f":"IF(ROW($A52)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A52)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A52)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A52)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45102},{"$f":"IF(ROW($A52)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A52)-ROW($A$6)-IF(ROW($A52)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A52)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS001"},{"$f":"IF(ISNA(VLOOKUP($C52,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C52,EmpAll,COLUMN(Emp!$B$4),0))","v":"Taylor AE"},{"$f":"IF(ISNA(VLOOKUP($C52,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C52,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C52,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C52,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC52),MONTH($AC52)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C52,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC52),MONTH($AC52),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F52<>\"Active\",0,IF(COUNTIFS(OverEmp,$C52,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMIFS(OverValue,OverEmp,$C52,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1)),IF(AND($AC52>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C52)>0),SUMIFS(EmpIncrease,EmpCode,$C52),SUMIFS(EmpSalary,EmpCode,$C52))))","v":150000},{"$f":"IF($F52<>\"Active\",0,IF(COUNTIFS(OverEmp,$C52,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMIFS(OverValue,OverEmp,$C52,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1)),0))","v":0},{"$f":"IF($F52<>\"Active\",0,IF(COUNTIFS(OverEmp,$C52,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMIFS(OverValue,OverEmp,$C52,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1)),IF(MONTH(B52)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C52),0)))","v":0},{"$f":"IF($F52<>\"Active\",0,IF(COUNTIFS(OverEmp,$C52,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMIFS(OverValue,OverEmp,$C52,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1)),0))","v":0},{"$f":"IF($F52<>\"Active\",0,IF(COUNTIFS(OverEmp,$C52,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMIFS(OverValue,OverEmp,$C52,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1)),0))","v":0},150000,{"$f":"IF(COUNTIFS(OverEmp,$C52,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMIFS(OverValue,OverEmp,$C52,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1)),(($BA52/12*$AA52)+(BB52*IF(1-$BC52=0,0,BD52/(1-$BC52))))-IF($F52=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC52,PayEmp,$C52)))","v":45611.833333333343},{"$f":"IF($F52=\"Terminated\",0,IF($AA52=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C52,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMIFS(OverValue,OverEmp,$C52,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA52)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA52,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52))))))","v":177.12},{"$f":"IF($F52=\"Terminated\",0,IF($AA52=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C52,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMIFS(OverValue,OverEmp,$C52,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA52)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA52,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52))))))","v":11250},{"$f":"IF($F52=\"Terminated\",0,IF($AA52=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C52,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMIFS(OverValue,OverEmp,$C52,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA52)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA52,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52))))))","v":0},{"$f":"IF($F52=\"Terminated\",0,IF($AA52=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C52,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMIFS(OverValue,OverEmp,$C52,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA52)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA52,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52))))))","v":0},57038.953333333346,92961.05,{"$f":"IF($F52=\"Terminated\",0,IF($AA52=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C52,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMIFS(OverValue,OverEmp,$C52,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA52)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA52,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52)))))))","v":177.12},{"$f":"IF($F52=\"Terminated\",0,IF($AA52=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C52,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMIFS(OverValue,OverEmp,$C52,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA52)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA52,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52)))))))","v":1500},{"$f":"IF($F52=\"Terminated\",0,IF($AA52=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C52,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMIFS(OverValue,OverEmp,$C52,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA52)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA52,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52)))))))","v":0},{"$f":"IF($F52=\"Terminated\",0,IF($AA52=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C52,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMIFS(OverValue,OverEmp,$C52,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA52)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA52,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC52,PayEmp,$C52)))))))","v":0},1677.12,151677.12,58716.07,{"$f":"IF(OR($B52<=Setup!$E$12,$B52>=Setup!$D$12+1),0,IF($F52<>\"Active\",0,IF($AE52=\"Yes\",$AB52,((YEAR($AC52)*12)+MONTH($AC52))-((YEAR($AD52)*12)+MONTH($AD52)-1))))","v":4},{"$f":"IF(OR($B52<=Setup!$E$12,$B52>=Setup!$D$12+1),0,((YEAR($AC52)*12)+MONTH($AC52))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":4},45102,{"$f":"IF(ISNA(VLOOKUP($C52,EmpAll,COLUMN(Emp!$E$4),0)),$AC52,IF(VLOOKUP($C52,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C52,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C52,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C52,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C52,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A52=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C52,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMIFS(OverValue,OverEmp,$C52,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1)),IF(ISNA(VLOOKUP($C52,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$N$4),0)))","v":5},{"$f":"VLOOKUP($AG52,MedList,COLUMN(Setup!$C$49),1)","v":1466},17592,{"$f":"IF(ISNA(VLOOKUP($C52,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C52,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C52,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C52,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C52,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1800000,{"$f":"-IF($F52=\"Terminated\",0,IF($AA52=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C52,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA52*12)+(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB52/3,0))*4)+(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB52/6,0))*2)+(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F52=\"Terminated\",0,IF($AA52=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C52,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA52*12)+(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB52/3,0))*4)+(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB52/6,0))*2)+(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F52=\"Terminated\",0,IF($AA52=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C52,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA52*12)+(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB52/3,0))*4)+(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB52/6,0))*2)+(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F52=\"Terminated\",0,IF($AA52=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C52,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA52*12)+(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB52/3,0))*4)+(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB52/6,0))*2)+(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1665000,1800000,{"$f":"-IF($F52=\"Terminated\",0,IF($AA52=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C52,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA52*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F52=\"Terminated\",0,IF($AA52=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C52,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA52*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F52=\"Terminated\",0,IF($AA52=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C52,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA52*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F52=\"Terminated\",0,IF($AA52=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C52,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC52),MONTH($AC52)+1,1),OverEnd,\">=\"&DATE(YEAR($AC52),MONTH($AC52),1))>0,SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA52*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C52)*(PayDate<=$AC52)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA52*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C52,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C52,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1665000,0,{"$f":"IF(ISNUMBER($AL52),($AR52*$AL52)-$AI52-$AK52,MAX(0,IF($AL52=\"B\",IF($AR52<Setup!$C$32,($AR52*Setup!$D$32)-$AI52-$AK52,(($AR52-VLOOKUP($AR52,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR52,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR52,TaxBracket2,1),0,1,1)-$AI52-$AK52),IF($AR52<Setup!$C$21,($AR52*Setup!$D$21)-$AI52-$AK52,(($AR52-VLOOKUP($AR52,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR52,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR52,TaxBracket1,1),0,1,1)-$AI52-$AK52))))","v":547342},{"$f":"IF(ISNUMBER($AL52),($AX52*$AL52)-$AI52-$AK52,MAX(0,IF($AL52=\"B\",IF($AX52<Setup!$C$32,($AX52*Setup!$D$32)-$AI52-$AK52,(($AX52-VLOOKUP($AX52,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX52,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX52,TaxBracket2,1),0,1,1)-$AI52-$AK52),IF($AX52<Setup!$C$21,($AX52*Setup!$D$21)-$AI52-$AK52,(($AX52-VLOOKUP($AX52,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX52,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX52,TaxBracket1,1),0,1,1)-$AI52-$AK52))))","v":547342},0,1,0,1800000]
[{"$f":"IF(ROW($A53)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B53,\"yyyy\")&TEXT($B53,\"mm\")&\"-\"&$C53)","v":"202306-EXS002"},{"$f":"IF(ROW($A53)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A53)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A53)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A53)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45102},{"$f":"IF(ROW($A53)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A53)-ROW($A$6)-IF(ROW($A53)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A53)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS002"},{"$f":"IF(ISNA(VLOOKUP($C53,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C53,EmpAll,COLUMN(Emp!$B$4),0))","v":"Smith F"},{"$f":"IF(ISNA(VLOOKUP($C53,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C53,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C53,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C53,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC53),MONTH($AC53)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C53,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC53),MONTH($AC53),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F53<>\"Active\",0,IF(COUNTIFS(OverEmp,$C53,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMIFS(OverValue,OverEmp,$C53,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1)),IF(AND($AC53>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C53)>0),SUMIFS(EmpIncrease,EmpCode,$C53),SUMIFS(EmpSalary,EmpCode,$C53))))","v":120000},{"$f":"IF($F53<>\"Active\",0,IF(COUNTIFS(OverEmp,$C53,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMIFS(OverValue,OverEmp,$C53,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1)),0))","v":0},{"$f":"IF($F53<>\"Active\",0,IF(COUNTIFS(OverEmp,$C53,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMIFS(OverValue,OverEmp,$C53,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1)),IF(MONTH(B53)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C53),0)))","v":0},{"$f":"IF($F53<>\"Active\",0,IF(COUNTIFS(OverEmp,$C53,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMIFS(OverValue,OverEmp,$C53,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1)),0))","v":0},{"$f":"IF($F53<>\"Active\",0,IF(COUNTIFS(OverEmp,$C53,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMIFS(OverValue,OverEmp,$C53,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1)),0))","v":0},120000,{"$f":"IF(COUNTIFS(OverEmp,$C53,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMIFS(OverValue,OverEmp,$C53,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1)),(($BA53/12*$AA53)+(BB53*IF(1-$BC53=0,0,BD53/(1-$BC53))))-IF($F53=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC53,PayEmp,$C53)))","v":38662.333333333343},{"$f":"IF($F53=\"Terminated\",0,IF($AA53=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C53,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMIFS(OverValue,OverEmp,$C53,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA53)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA53,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53))))))","v":177.12},{"$f":"IF($F53=\"Terminated\",0,IF($AA53=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C53,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMIFS(OverValue,OverEmp,$C53,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA53)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA53,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53))))))","v":0},{"$f":"IF($F53=\"Terminated\",0,IF($AA53=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C53,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMIFS(OverValue,OverEmp,$C53,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA53)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA53,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53))))))","v":0},{"$f":"IF($F53=\"Terminated\",0,IF($AA53=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C53,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMIFS(OverValue,OverEmp,$C53,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA53)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA53,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53))))))","v":0},38839.453333333346,81160.55,{"$f":"IF($F53=\"Terminated\",0,IF($AA53=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C53,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMIFS(OverValue,OverEmp,$C53,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA53)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA53,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53)))))))","v":177.12},{"$f":"IF($F53=\"Terminated\",0,IF($AA53=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C53,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMIFS(OverValue,OverEmp,$C53,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA53)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA53,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53)))))))","v":1200},{"$f":"IF($F53=\"Terminated\",0,IF($AA53=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C53,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMIFS(OverValue,OverEmp,$C53,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA53)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA53,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53)))))))","v":0},{"$f":"IF($F53=\"Terminated\",0,IF($AA53=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C53,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMIFS(OverValue,OverEmp,$C53,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA53)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA53,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC53,PayEmp,$C53)))))))","v":0},1377.12,121377.12,40216.57,{"$f":"IF(OR($B53<=Setup!$E$12,$B53>=Setup!$D$12+1),0,IF($F53<>\"Active\",0,IF($AE53=\"Yes\",$AB53,((YEAR($AC53)*12)+MONTH($AC53))-((YEAR($AD53)*12)+MONTH($AD53)-1))))","v":4},{"$f":"IF(OR($B53<=Setup!$E$12,$B53>=Setup!$D$12+1),0,((YEAR($AC53)*12)+MONTH($AC53))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":4},45102,{"$f":"IF(ISNA(VLOOKUP($C53,EmpAll,COLUMN(Emp!$E$4),0)),$AC53,IF(VLOOKUP($C53,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C53,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C53,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C53,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C53,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A53=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C53,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMIFS(OverValue,OverEmp,$C53,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1)),IF(ISNA(VLOOKUP($C53,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$N$4),0)))","v":2},{"$f":"VLOOKUP($AG53,MedList,COLUMN(Setup!$C$49),1)","v":728},8736,{"$f":"IF(ISNA(VLOOKUP($C53,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C53,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C53,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C53,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C53,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1440000,{"$f":"-IF($F53=\"Terminated\",0,IF($AA53=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C53,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA53*12)+(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB53/3,0))*4)+(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB53/6,0))*2)+(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F53=\"Terminated\",0,IF($AA53=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C53,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA53*12)+(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB53/3,0))*4)+(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB53/6,0))*2)+(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F53=\"Terminated\",0,IF($AA53=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C53,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA53*12)+(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB53/3,0))*4)+(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB53/6,0))*2)+(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F53=\"Terminated\",0,IF($AA53=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C53,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA53*12)+(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB53/3,0))*4)+(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB53/6,0))*2)+(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1440000,1440000,{"$f":"-IF($F53=\"Terminated\",0,IF($AA53=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C53,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA53*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F53=\"Terminated\",0,IF($AA53=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C53,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA53*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F53=\"Terminated\",0,IF($AA53=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C53,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA53*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F53=\"Terminated\",0,IF($AA53=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C53,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC53),MONTH($AC53)+1,1),OverEnd,\">=\"&DATE(YEAR($AC53),MONTH($AC53),1))>0,SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA53*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C53)*(PayDate<=$AC53)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA53*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C53,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C53,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1440000,0,{"$f":"IF(ISNUMBER($AL53),($AR53*$AL53)-$AI53-$AK53,MAX(0,IF($AL53=\"B\",IF($AR53<Setup!$C$32,($AR53*Setup!$D$32)-$AI53-$AK53,(($AR53-VLOOKUP($AR53,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR53,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR53,TaxBracket2,1),0,1,1)-$AI53-$AK53),IF($AR53<Setup!$C$21,($AR53*Setup!$D$21)-$AI53-$AK53,(($AR53-VLOOKUP($AR53,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR53,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR53,TaxBracket1,1),0,1,1)-$AI53-$AK53))))","v":463948},{"$f":"IF(ISNUMBER($AL53),($AX53*$AL53)-$AI53-$AK53,MAX(0,IF($AL53=\"B\",IF($AX53<Setup!$C$32,($AX53*Setup!$D$32)-$AI53-$AK53,(($AX53-VLOOKUP($AX53,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX53,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX53,TaxBracket2,1),0,1,1)-$AI53-$AK53),IF($AX53<Setup!$C$21,($AX53*Setup!$D$21)-$AI53-$AK53,(($AX53-VLOOKUP($AX53,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX53,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX53,TaxBracket1,1),0,1,1)-$AI53-$AK53))))","v":463948},0,1,0,1440000]
[{"$f":"IF(ROW($A54)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B54,\"yyyy\")&TEXT($B54,\"mm\")&\"-\"&$C54)","v":"202306-EXS003"},{"$f":"IF(ROW($A54)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A54)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A54)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A54)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45102},{"$f":"IF(ROW($A54)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A54)-ROW($A$6)-IF(ROW($A54)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A54)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS003"},{"$f":"IF(ISNA(VLOOKUP($C54,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C54,EmpAll,COLUMN(Emp!$B$4),0))","v":"Wilson PG"},{"$f":"IF(ISNA(VLOOKUP($C54,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C54,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C54,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C54,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC54),MONTH($AC54)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C54,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC54),MONTH($AC54),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F54<>\"Active\",0,IF(COUNTIFS(OverEmp,$C54,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMIFS(OverValue,OverEmp,$C54,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1)),IF(AND($AC54>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C54)>0),SUMIFS(EmpIncrease,EmpCode,$C54),SUMIFS(EmpSalary,EmpCode,$C54))))","v":15000},{"$f":"IF($F54<>\"Active\",0,IF(COUNTIFS(OverEmp,$C54,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMIFS(OverValue,OverEmp,$C54,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1)),0))","v":0},{"$f":"IF($F54<>\"Active\",0,IF(COUNTIFS(OverEmp,$C54,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMIFS(OverValue,OverEmp,$C54,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1)),IF(MONTH(B54)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C54),0)))","v":0},{"$f":"IF($F54<>\"Active\",0,IF(COUNTIFS(OverEmp,$C54,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMIFS(OverValue,OverEmp,$C54,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1)),0))","v":0},{"$f":"IF($F54<>\"Active\",0,IF(COUNTIFS(OverEmp,$C54,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMIFS(OverValue,OverEmp,$C54,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1)),0))","v":0},15000,{"$f":"IF(COUNTIFS(OverEmp,$C54,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMIFS(OverValue,OverEmp,$C54,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1)),(($BA54/12*$AA54)+(BB54*IF(1-$BC54=0,0,BD54/(1-$BC54))))-IF($F54=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC54,PayEmp,$C54)))","v":899.75},{"$f":"IF($F54=\"Terminated\",0,IF($AA54=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C54,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMIFS(OverValue,OverEmp,$C54,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA54)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA54,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54))))))","v":150},{"$f":"IF($F54=\"Terminated\",0,IF($AA54=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C54,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMIFS(OverValue,OverEmp,$C54,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA54)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA54,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54))))))","v":0},{"$f":"IF($F54=\"Terminated\",0,IF($AA54=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C54,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMIFS(OverValue,OverEmp,$C54,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA54)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA54,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54))))))","v":0},{"$f":"IF($F54=\"Terminated\",0,IF($AA54=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C54,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMIFS(OverValue,OverEmp,$C54,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA54)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA54,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54))))))","v":0},1049.75,13950.25,{"$f":"IF($F54=\"Terminated\",0,IF($AA54=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C54,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMIFS(OverValue,OverEmp,$C54,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA54)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA54,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54)))))))","v":150},{"$f":"IF($F54=\"Terminated\",0,IF($AA54=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C54,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMIFS(OverValue,OverEmp,$C54,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA54)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA54,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54)))))))","v":150},{"$f":"IF($F54=\"Terminated\",0,IF($AA54=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C54,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMIFS(OverValue,OverEmp,$C54,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA54)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA54,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54)))))))","v":0},{"$f":"IF($F54=\"Terminated\",0,IF($AA54=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C54,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMIFS(OverValue,OverEmp,$C54,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA54)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA54,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC54,PayEmp,$C54)))))))","v":0},300,15300,1349.75,{"$f":"IF(OR($B54<=Setup!$E$12,$B54>=Setup!$D$12+1),0,IF($F54<>\"Active\",0,IF($AE54=\"Yes\",$AB54,((YEAR($AC54)*12)+MONTH($AC54))-((YEAR($AD54)*12)+MONTH($AD54)-1))))","v":4},{"$f":"IF(OR($B54<=Setup!$E$12,$B54>=Setup!$D$12+1),0,((YEAR($AC54)*12)+MONTH($AC54))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":4},45102,{"$f":"IF(ISNA(VLOOKUP($C54,EmpAll,COLUMN(Emp!$E$4),0)),$AC54,IF(VLOOKUP($C54,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C54,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C54,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C54,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C54,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A54=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C54,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMIFS(OverValue,OverEmp,$C54,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1)),IF(ISNA(VLOOKUP($C54,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG54,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C54,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C54,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C54,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C54,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C54,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},180000,{"$f":"-IF($F54=\"Terminated\",0,IF($AA54=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C54,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA54*12)+(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB54/3,0))*4)+(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB54/6,0))*2)+(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F54=\"Terminated\",0,IF($AA54=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C54,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA54*12)+(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB54/3,0))*4)+(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB54/6,0))*2)+(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F54=\"Terminated\",0,IF($AA54=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C54,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA54*12)+(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB54/3,0))*4)+(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB54/6,0))*2)+(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F54=\"Terminated\",0,IF($AA54=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C54,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA54*12)+(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB54/3,0))*4)+(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB54/6,0))*2)+(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},180000,180000,{"$f":"-IF($F54=\"Terminated\",0,IF($AA54=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C54,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA54*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F54=\"Terminated\",0,IF($AA54=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C54,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA54*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F54=\"Terminated\",0,IF($AA54=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C54,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA54*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F54=\"Terminated\",0,IF($AA54=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C54,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC54),MONTH($AC54)+1,1),OverEnd,\">=\"&DATE(YEAR($AC54),MONTH($AC54),1))>0,SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA54*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C54)*(PayDate<=$AC54)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA54*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C54,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C54,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,0,{"$f":"IF(ISNUMBER($AL54),($AR54*$AL54)-$AI54-$AK54,MAX(0,IF($AL54=\"B\",IF($AR54<Setup!$C$32,($AR54*Setup!$D$32)-$AI54-$AK54,(($AR54-VLOOKUP($AR54,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR54,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR54,TaxBracket2,1),0,1,1)-$AI54-$AK54),IF($AR54<Setup!$C$21,($AR54*Setup!$D$21)-$AI54-$AK54,(($AR54-VLOOKUP($AR54,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR54,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR54,TaxBracket1,1),0,1,1)-$AI54-$AK54))))","v":10797},{"$f":"IF(ISNUMBER($AL54),($AX54*$AL54)-$AI54-$AK54,MAX(0,IF($AL54=\"B\",IF($AX54<Setup!$C$32,($AX54*Setup!$D$32)-$AI54-$AK54,(($AX54-VLOOKUP($AX54,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX54,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX54,TaxBracket2,1),0,1,1)-$AI54-$AK54),IF($AX54<Setup!$C$21,($AX54*Setup!$D$21)-$AI54-$AK54,(($AX54-VLOOKUP($AX54,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX54,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX54,TaxBracket1,1),0,1,1)-$AI54-$AK54))))","v":10797},0,1,0,180000]
[{"$f":"IF(ROW($A55)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B55,\"yyyy\")&TEXT($B55,\"mm\")&\"-\"&$C55)","v":"202306-EXS004"},{"$f":"IF(ROW($A55)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A55)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A55)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A55)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45102},{"$f":"IF(ROW($A55)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A55)-ROW($A$6)-IF(ROW($A55)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A55)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS004"},{"$f":"IF(ISNA(VLOOKUP($C55,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C55,EmpAll,COLUMN(Emp!$B$4),0))","v":"Osborne S"},{"$f":"IF(ISNA(VLOOKUP($C55,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C55,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C55,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C55,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC55),MONTH($AC55)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C55,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC55),MONTH($AC55),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F55<>\"Active\",0,IF(COUNTIFS(OverEmp,$C55,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMIFS(OverValue,OverEmp,$C55,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1)),IF(AND($AC55>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C55)>0),SUMIFS(EmpIncrease,EmpCode,$C55),SUMIFS(EmpSalary,EmpCode,$C55))))","v":15000},{"$f":"IF($F55<>\"Active\",0,IF(COUNTIFS(OverEmp,$C55,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMIFS(OverValue,OverEmp,$C55,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1)),0))","v":0},{"$f":"IF($F55<>\"Active\",0,IF(COUNTIFS(OverEmp,$C55,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMIFS(OverValue,OverEmp,$C55,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1)),IF(MONTH(B55)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C55),0)))","v":0},{"$f":"IF($F55<>\"Active\",0,IF(COUNTIFS(OverEmp,$C55,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMIFS(OverValue,OverEmp,$C55,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1)),0))","v":0},{"$f":"IF($F55<>\"Active\",0,IF(COUNTIFS(OverEmp,$C55,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMIFS(OverValue,OverEmp,$C55,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1)),0))","v":0},15000,{"$f":"IF(COUNTIFS(OverEmp,$C55,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMIFS(OverValue,OverEmp,$C55,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1)),(($BA55/12*$AA55)+(BB55*IF(1-$BC55=0,0,BD55/(1-$BC55))))-IF($F55=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC55,PayEmp,$C55)))","v":899.74999999999955},{"$f":"IF($F55=\"Terminated\",0,IF($AA55=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C55,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMIFS(OverValue,OverEmp,$C55,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA55)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA55,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55))))))","v":150},{"$f":"IF($F55=\"Terminated\",0,IF($AA55=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C55,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMIFS(OverValue,OverEmp,$C55,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA55)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA55,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55))))))","v":0},{"$f":"IF($F55=\"Terminated\",0,IF($AA55=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C55,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMIFS(OverValue,OverEmp,$C55,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA55)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA55,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55))))))","v":500},{"$f":"IF($F55=\"Terminated\",0,IF($AA55=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C55,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMIFS(OverValue,OverEmp,$C55,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA55)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA55,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55))))))","v":0},1549.7499999999995,13450.25,{"$f":"IF($F55=\"Terminated\",0,IF($AA55=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C55,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMIFS(OverValue,OverEmp,$C55,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA55)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA55,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55)))))))","v":150},{"$f":"IF($F55=\"Terminated\",0,IF($AA55=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C55,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMIFS(OverValue,OverEmp,$C55,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA55)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA55,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55)))))))","v":150},{"$f":"IF($F55=\"Terminated\",0,IF($AA55=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C55,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMIFS(OverValue,OverEmp,$C55,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA55)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA55,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55)))))))","v":0},{"$f":"IF($F55=\"Terminated\",0,IF($AA55=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C55,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMIFS(OverValue,OverEmp,$C55,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA55)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA55,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC55,PayEmp,$C55)))))))","v":0},300,15300,1849.75,{"$f":"IF(OR($B55<=Setup!$E$12,$B55>=Setup!$D$12+1),0,IF($F55<>\"Active\",0,IF($AE55=\"Yes\",$AB55,((YEAR($AC55)*12)+MONTH($AC55))-((YEAR($AD55)*12)+MONTH($AD55)-1))))","v":4},{"$f":"IF(OR($B55<=Setup!$E$12,$B55>=Setup!$D$12+1),0,((YEAR($AC55)*12)+MONTH($AC55))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":4},45102,{"$f":"IF(ISNA(VLOOKUP($C55,EmpAll,COLUMN(Emp!$E$4),0)),$AC55,IF(VLOOKUP($C55,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C55,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C55,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C55,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C55,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A55=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C55,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMIFS(OverValue,OverEmp,$C55,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1)),IF(ISNA(VLOOKUP($C55,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG55,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C55,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C55,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C55,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C55,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C55,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},183600,{"$f":"-IF($F55=\"Terminated\",0,IF($AA55=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C55,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA55*12)+(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB55/3,0))*4)+(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB55/6,0))*2)+(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F55=\"Terminated\",0,IF($AA55=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C55,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA55*12)+(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB55/3,0))*4)+(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB55/6,0))*2)+(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F55=\"Terminated\",0,IF($AA55=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C55,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA55*12)+(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB55/3,0))*4)+(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB55/6,0))*2)+(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F55=\"Terminated\",0,IF($AA55=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C55,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA55*12)+(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB55/3,0))*4)+(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB55/6,0))*2)+(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},183600,180000,{"$f":"-IF($F55=\"Terminated\",0,IF($AA55=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C55,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA55*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F55=\"Terminated\",0,IF($AA55=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C55,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA55*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F55=\"Terminated\",0,IF($AA55=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C55,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA55*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F55=\"Terminated\",0,IF($AA55=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C55,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC55),MONTH($AC55)+1,1),OverEnd,\">=\"&DATE(YEAR($AC55),MONTH($AC55),1))>0,SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA55*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C55)*(PayDate<=$AC55)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA55*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C55,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C55,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,3600,{"$f":"IF(ISNUMBER($AL55),($AR55*$AL55)-$AI55-$AK55,MAX(0,IF($AL55=\"B\",IF($AR55<Setup!$C$32,($AR55*Setup!$D$32)-$AI55-$AK55,(($AR55-VLOOKUP($AR55,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR55,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR55,TaxBracket2,1),0,1,1)-$AI55-$AK55),IF($AR55<Setup!$C$21,($AR55*Setup!$D$21)-$AI55-$AK55,(($AR55-VLOOKUP($AR55,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR55,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR55,TaxBracket1,1),0,1,1)-$AI55-$AK55))))","v":11445},{"$f":"IF(ISNUMBER($AL55),($AX55*$AL55)-$AI55-$AK55,MAX(0,IF($AL55=\"B\",IF($AX55<Setup!$C$32,($AX55*Setup!$D$32)-$AI55-$AK55,(($AX55-VLOOKUP($AX55,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX55,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX55,TaxBracket2,1),0,1,1)-$AI55-$AK55),IF($AX55<Setup!$C$21,($AX55*Setup!$D$21)-$AI55-$AK55,(($AX55-VLOOKUP($AX55,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX55,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX55,TaxBracket1,1),0,1,1)-$AI55-$AK55))))","v":10797},648,0.98039215686274506,1.9607843137254902E-2,183600]
[{"$f":"IF(ROW($A56)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B56,\"yyyy\")&TEXT($B56,\"mm\")&\"-\"&$C56)","v":"202306-EXS005"},{"$f":"IF(ROW($A56)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A56)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A56)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A56)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45102},{"$f":"IF(ROW($A56)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A56)-ROW($A$6)-IF(ROW($A56)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A56)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS005"},{"$f":"IF(ISNA(VLOOKUP($C56,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C56,EmpAll,COLUMN(Emp!$B$4),0))","v":"Miller R"},{"$f":"IF(ISNA(VLOOKUP($C56,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C56,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C56,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C56,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC56),MONTH($AC56)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C56,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC56),MONTH($AC56),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F56<>\"Active\",0,IF(COUNTIFS(OverEmp,$C56,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMIFS(OverValue,OverEmp,$C56,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1)),IF(AND($AC56>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C56)>0),SUMIFS(EmpIncrease,EmpCode,$C56),SUMIFS(EmpSalary,EmpCode,$C56))))","v":10000},{"$f":"IF($F56<>\"Active\",0,IF(COUNTIFS(OverEmp,$C56,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMIFS(OverValue,OverEmp,$C56,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1)),0))","v":0},{"$f":"IF($F56<>\"Active\",0,IF(COUNTIFS(OverEmp,$C56,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMIFS(OverValue,OverEmp,$C56,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1)),IF(MONTH(B56)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C56),0)))","v":0},{"$f":"IF($F56<>\"Active\",0,IF(COUNTIFS(OverEmp,$C56,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMIFS(OverValue,OverEmp,$C56,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1)),0))","v":0},{"$f":"IF($F56<>\"Active\",0,IF(COUNTIFS(OverEmp,$C56,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMIFS(OverValue,OverEmp,$C56,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C56,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMIFS(OverValue,OverEmp,$C56,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1)),(($BA56/12*$AA56)+(BB56*IF(1-$BC56=0,0,BD56/(1-$BC56))))-IF($F56=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC56,PayEmp,$C56)))","v":0},{"$f":"IF($F56=\"Terminated\",0,IF($AA56=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C56,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMIFS(OverValue,OverEmp,$C56,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA56)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA56,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56))))))","v":100},{"$f":"IF($F56=\"Terminated\",0,IF($AA56=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C56,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMIFS(OverValue,OverEmp,$C56,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA56)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA56,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56))))))","v":0},{"$f":"IF($F56=\"Terminated\",0,IF($AA56=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C56,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMIFS(OverValue,OverEmp,$C56,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA56)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA56,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56))))))","v":0},{"$f":"IF($F56=\"Terminated\",0,IF($AA56=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C56,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMIFS(OverValue,OverEmp,$C56,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA56)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA56,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56))))))","v":0},100,9900,{"$f":"IF($F56=\"Terminated\",0,IF($AA56=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C56,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMIFS(OverValue,OverEmp,$C56,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA56)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA56,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56)))))))","v":100},{"$f":"IF($F56=\"Terminated\",0,IF($AA56=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C56,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMIFS(OverValue,OverEmp,$C56,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA56)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA56,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56)))))))","v":100},{"$f":"IF($F56=\"Terminated\",0,IF($AA56=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C56,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMIFS(OverValue,OverEmp,$C56,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA56)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA56,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56)))))))","v":0},{"$f":"IF($F56=\"Terminated\",0,IF($AA56=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C56,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMIFS(OverValue,OverEmp,$C56,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA56)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA56,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC56,PayEmp,$C56)))))))","v":0},200,10200,300,{"$f":"IF(OR($B56<=Setup!$E$12,$B56>=Setup!$D$12+1),0,IF($F56<>\"Active\",0,IF($AE56=\"Yes\",$AB56,((YEAR($AC56)*12)+MONTH($AC56))-((YEAR($AD56)*12)+MONTH($AD56)-1))))","v":4},{"$f":"IF(OR($B56<=Setup!$E$12,$B56>=Setup!$D$12+1),0,((YEAR($AC56)*12)+MONTH($AC56))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":4},45102,{"$f":"IF(ISNA(VLOOKUP($C56,EmpAll,COLUMN(Emp!$E$4),0)),$AC56,IF(VLOOKUP($C56,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C56,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C56,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C56,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C56,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A56=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C56,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMIFS(OverValue,OverEmp,$C56,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1)),IF(ISNA(VLOOKUP($C56,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG56,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C56,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C56,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C56,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C56,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C56,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},120000,{"$f":"-IF($F56=\"Terminated\",0,IF($AA56=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C56,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA56*12)+(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB56/3,0))*4)+(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB56/6,0))*2)+(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F56=\"Terminated\",0,IF($AA56=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C56,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA56*12)+(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB56/3,0))*4)+(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB56/6,0))*2)+(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F56=\"Terminated\",0,IF($AA56=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C56,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA56*12)+(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB56/3,0))*4)+(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB56/6,0))*2)+(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F56=\"Terminated\",0,IF($AA56=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C56,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA56*12)+(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB56/3,0))*4)+(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB56/6,0))*2)+(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},120000,120000,{"$f":"-IF($F56=\"Terminated\",0,IF($AA56=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C56,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA56*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F56=\"Terminated\",0,IF($AA56=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C56,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA56*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F56=\"Terminated\",0,IF($AA56=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C56,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA56*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F56=\"Terminated\",0,IF($AA56=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C56,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC56),MONTH($AC56)+1,1),OverEnd,\">=\"&DATE(YEAR($AC56),MONTH($AC56),1))>0,SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA56*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C56)*(PayDate<=$AC56)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA56*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C56,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C56,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,0,{"$f":"IF(ISNUMBER($AL56),($AR56*$AL56)-$AI56-$AK56,MAX(0,IF($AL56=\"B\",IF($AR56<Setup!$C$32,($AR56*Setup!$D$32)-$AI56-$AK56,(($AR56-VLOOKUP($AR56,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR56,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR56,TaxBracket2,1),0,1,1)-$AI56-$AK56),IF($AR56<Setup!$C$21,($AR56*Setup!$D$21)-$AI56-$AK56,(($AR56-VLOOKUP($AR56,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR56,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR56,TaxBracket1,1),0,1,1)-$AI56-$AK56))))","v":0},{"$f":"IF(ISNUMBER($AL56),($AX56*$AL56)-$AI56-$AK56,MAX(0,IF($AL56=\"B\",IF($AX56<Setup!$C$32,($AX56*Setup!$D$32)-$AI56-$AK56,(($AX56-VLOOKUP($AX56,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX56,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX56,TaxBracket2,1),0,1,1)-$AI56-$AK56),IF($AX56<Setup!$C$21,($AX56*Setup!$D$21)-$AI56-$AK56,(($AX56-VLOOKUP($AX56,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX56,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX56,TaxBracket1,1),0,1,1)-$AI56-$AK56))))","v":0},0,1,0,120000]
[{"$f":"IF(ROW($A57)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B57,\"yyyy\")&TEXT($B57,\"mm\")&\"-\"&$C57)","v":"202306-EXS006"},{"$f":"IF(ROW($A57)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A57)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A57)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A57)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45102},{"$f":"IF(ROW($A57)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A57)-ROW($A$6)-IF(ROW($A57)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A57)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS006"},{"$f":"IF(ISNA(VLOOKUP($C57,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C57,EmpAll,COLUMN(Emp!$B$4),0))","v":"Andrews MS"},{"$f":"IF(ISNA(VLOOKUP($C57,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C57,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C57,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C57,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC57),MONTH($AC57)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C57,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC57),MONTH($AC57),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F57<>\"Active\",0,IF(COUNTIFS(OverEmp,$C57,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMIFS(OverValue,OverEmp,$C57,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1)),IF(AND($AC57>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C57)>0),SUMIFS(EmpIncrease,EmpCode,$C57),SUMIFS(EmpSalary,EmpCode,$C57))))","v":10000},{"$f":"IF($F57<>\"Active\",0,IF(COUNTIFS(OverEmp,$C57,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMIFS(OverValue,OverEmp,$C57,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1)),0))","v":0},{"$f":"IF($F57<>\"Active\",0,IF(COUNTIFS(OverEmp,$C57,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMIFS(OverValue,OverEmp,$C57,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1)),IF(MONTH(B57)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C57),0)))","v":0},{"$f":"IF($F57<>\"Active\",0,IF(COUNTIFS(OverEmp,$C57,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMIFS(OverValue,OverEmp,$C57,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1)),0))","v":0},{"$f":"IF($F57<>\"Active\",0,IF(COUNTIFS(OverEmp,$C57,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMIFS(OverValue,OverEmp,$C57,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C57,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMIFS(OverValue,OverEmp,$C57,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1)),(($BA57/12*$AA57)+(BB57*IF(1-$BC57=0,0,BD57/(1-$BC57))))-IF($F57=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC57,PayEmp,$C57)))","v":0},{"$f":"IF($F57=\"Terminated\",0,IF($AA57=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C57,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMIFS(OverValue,OverEmp,$C57,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA57)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA57,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57))))))","v":100},{"$f":"IF($F57=\"Terminated\",0,IF($AA57=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C57,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMIFS(OverValue,OverEmp,$C57,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA57)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA57,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57))))))","v":0},{"$f":"IF($F57=\"Terminated\",0,IF($AA57=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C57,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMIFS(OverValue,OverEmp,$C57,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA57)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA57,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57))))))","v":0},{"$f":"IF($F57=\"Terminated\",0,IF($AA57=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C57,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMIFS(OverValue,OverEmp,$C57,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA57)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA57,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57))))))","v":0},100,9900,{"$f":"IF($F57=\"Terminated\",0,IF($AA57=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C57,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMIFS(OverValue,OverEmp,$C57,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA57)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA57,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57)))))))","v":100},{"$f":"IF($F57=\"Terminated\",0,IF($AA57=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C57,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMIFS(OverValue,OverEmp,$C57,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA57)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA57,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57)))))))","v":100},{"$f":"IF($F57=\"Terminated\",0,IF($AA57=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C57,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMIFS(OverValue,OverEmp,$C57,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA57)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA57,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57)))))))","v":0},{"$f":"IF($F57=\"Terminated\",0,IF($AA57=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C57,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMIFS(OverValue,OverEmp,$C57,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA57)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA57,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC57,PayEmp,$C57)))))))","v":0},200,10200,300,{"$f":"IF(OR($B57<=Setup!$E$12,$B57>=Setup!$D$12+1),0,IF($F57<>\"Active\",0,IF($AE57=\"Yes\",$AB57,((YEAR($AC57)*12)+MONTH($AC57))-((YEAR($AD57)*12)+MONTH($AD57)-1))))","v":4},{"$f":"IF(OR($B57<=Setup!$E$12,$B57>=Setup!$D$12+1),0,((YEAR($AC57)*12)+MONTH($AC57))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":4},45102,{"$f":"IF(ISNA(VLOOKUP($C57,EmpAll,COLUMN(Emp!$E$4),0)),$AC57,IF(VLOOKUP($C57,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C57,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C57,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C57,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C57,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A57=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C57,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMIFS(OverValue,OverEmp,$C57,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1)),IF(ISNA(VLOOKUP($C57,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG57,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C57,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C57,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C57,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C57,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C57,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},120000,{"$f":"-IF($F57=\"Terminated\",0,IF($AA57=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C57,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA57*12)+(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB57/3,0))*4)+(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB57/6,0))*2)+(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F57=\"Terminated\",0,IF($AA57=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C57,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA57*12)+(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB57/3,0))*4)+(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB57/6,0))*2)+(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F57=\"Terminated\",0,IF($AA57=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C57,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA57*12)+(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB57/3,0))*4)+(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB57/6,0))*2)+(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F57=\"Terminated\",0,IF($AA57=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C57,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA57*12)+(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB57/3,0))*4)+(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB57/6,0))*2)+(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},120000,120000,{"$f":"-IF($F57=\"Terminated\",0,IF($AA57=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C57,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA57*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F57=\"Terminated\",0,IF($AA57=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C57,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA57*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F57=\"Terminated\",0,IF($AA57=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C57,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA57*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F57=\"Terminated\",0,IF($AA57=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C57,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC57),MONTH($AC57)+1,1),OverEnd,\">=\"&DATE(YEAR($AC57),MONTH($AC57),1))>0,SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA57*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C57)*(PayDate<=$AC57)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA57*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C57,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C57,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,0,{"$f":"IF(ISNUMBER($AL57),($AR57*$AL57)-$AI57-$AK57,MAX(0,IF($AL57=\"B\",IF($AR57<Setup!$C$32,($AR57*Setup!$D$32)-$AI57-$AK57,(($AR57-VLOOKUP($AR57,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR57,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR57,TaxBracket2,1),0,1,1)-$AI57-$AK57),IF($AR57<Setup!$C$21,($AR57*Setup!$D$21)-$AI57-$AK57,(($AR57-VLOOKUP($AR57,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR57,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR57,TaxBracket1,1),0,1,1)-$AI57-$AK57))))","v":0},{"$f":"IF(ISNUMBER($AL57),($AX57*$AL57)-$AI57-$AK57,MAX(0,IF($AL57=\"B\",IF($AX57<Setup!$C$32,($AX57*Setup!$D$32)-$AI57-$AK57,(($AX57-VLOOKUP($AX57,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX57,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX57,TaxBracket2,1),0,1,1)-$AI57-$AK57),IF($AX57<Setup!$C$21,($AX57*Setup!$D$21)-$AI57-$AK57,(($AX57-VLOOKUP($AX57,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX57,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX57,TaxBracket1,1),0,1,1)-$AI57-$AK57))))","v":0},0,1,0,120000]
[{"$f":"IF(ROW($A58)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B58,\"yyyy\")&TEXT($B58,\"mm\")&\"-\"&$C58)","v":"202306-EXS007"},{"$f":"IF(ROW($A58)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A58)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A58)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A58)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45102},{"$f":"IF(ROW($A58)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A58)-ROW($A$6)-IF(ROW($A58)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A58)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS007"},{"$f":"IF(ISNA(VLOOKUP($C58,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C58,EmpAll,COLUMN(Emp!$B$4),0))","v":"Phillips KE"},{"$f":"IF(ISNA(VLOOKUP($C58,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C58,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C58,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C58,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC58),MONTH($AC58)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C58,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC58),MONTH($AC58),0)),\"Terminated\",\"Active\")))","v":"Terminated"},{"$f":"IF($F58<>\"Active\",0,IF(COUNTIFS(OverEmp,$C58,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMIFS(OverValue,OverEmp,$C58,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1)),IF(AND($AC58>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C58)>0),SUMIFS(EmpIncrease,EmpCode,$C58),SUMIFS(EmpSalary,EmpCode,$C58))))","v":0},{"$f":"IF($F58<>\"Active\",0,IF(COUNTIFS(OverEmp,$C58,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMIFS(OverValue,OverEmp,$C58,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1)),0))","v":0},{"$f":"IF($F58<>\"Active\",0,IF(COUNTIFS(OverEmp,$C58,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMIFS(OverValue,OverEmp,$C58,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1)),IF(MONTH(B58)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C58),0)))","v":0},{"$f":"IF($F58<>\"Active\",0,IF(COUNTIFS(OverEmp,$C58,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMIFS(OverValue,OverEmp,$C58,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1)),0))","v":0},{"$f":"IF($F58<>\"Active\",0,IF(COUNTIFS(OverEmp,$C58,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMIFS(OverValue,OverEmp,$C58,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C58,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMIFS(OverValue,OverEmp,$C58,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1)),(($BA58/12*$AA58)+(BB58*IF(1-$BC58=0,0,BD58/(1-$BC58))))-IF($F58=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC58,PayEmp,$C58)))","v":0},{"$f":"IF($F58=\"Terminated\",0,IF($AA58=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C58,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMIFS(OverValue,OverEmp,$C58,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA58)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA58,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58))))))","v":0},{"$f":"IF($F58=\"Terminated\",0,IF($AA58=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C58,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMIFS(OverValue,OverEmp,$C58,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA58)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA58,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58))))))","v":0},{"$f":"IF($F58=\"Terminated\",0,IF($AA58=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C58,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMIFS(OverValue,OverEmp,$C58,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA58)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA58,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58))))))","v":0},{"$f":"IF($F58=\"Terminated\",0,IF($AA58=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C58,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMIFS(OverValue,OverEmp,$C58,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA58)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA58,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58))))))","v":0},0,0,{"$f":"IF($F58=\"Terminated\",0,IF($AA58=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C58,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMIFS(OverValue,OverEmp,$C58,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA58)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA58,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58)))))))","v":0},{"$f":"IF($F58=\"Terminated\",0,IF($AA58=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C58,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMIFS(OverValue,OverEmp,$C58,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA58)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA58,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58)))))))","v":0},{"$f":"IF($F58=\"Terminated\",0,IF($AA58=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C58,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMIFS(OverValue,OverEmp,$C58,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA58)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA58,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58)))))))","v":0},{"$f":"IF($F58=\"Terminated\",0,IF($AA58=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C58,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMIFS(OverValue,OverEmp,$C58,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA58)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA58,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC58,PayEmp,$C58)))))))","v":0},0,0,0,{"$f":"IF(OR($B58<=Setup!$E$12,$B58>=Setup!$D$12+1),0,IF($F58<>\"Active\",0,IF($AE58=\"Yes\",$AB58,((YEAR($AC58)*12)+MONTH($AC58))-((YEAR($AD58)*12)+MONTH($AD58)-1))))","v":0},{"$f":"IF(OR($B58<=Setup!$E$12,$B58>=Setup!$D$12+1),0,((YEAR($AC58)*12)+MONTH($AC58))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":4},45102,{"$f":"IF(ISNA(VLOOKUP($C58,EmpAll,COLUMN(Emp!$E$4),0)),$AC58,IF(VLOOKUP($C58,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C58,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C58,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C58,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C58,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A58=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C58,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMIFS(OverValue,OverEmp,$C58,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1)),IF(ISNA(VLOOKUP($C58,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG58,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C58,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C58,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C58,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C58,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C58,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F58=\"Terminated\",0,IF($AA58=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C58,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA58*12)+(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB58/3,0))*4)+(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB58/6,0))*2)+(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F58=\"Terminated\",0,IF($AA58=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C58,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA58*12)+(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB58/3,0))*4)+(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB58/6,0))*2)+(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F58=\"Terminated\",0,IF($AA58=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C58,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA58*12)+(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB58/3,0))*4)+(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB58/6,0))*2)+(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F58=\"Terminated\",0,IF($AA58=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C58,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA58*12)+(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB58/3,0))*4)+(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB58/6,0))*2)+(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F58=\"Terminated\",0,IF($AA58=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C58,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA58*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F58=\"Terminated\",0,IF($AA58=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C58,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA58*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F58=\"Terminated\",0,IF($AA58=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C58,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA58*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F58=\"Terminated\",0,IF($AA58=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C58,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC58),MONTH($AC58)+1,1),OverEnd,\">=\"&DATE(YEAR($AC58),MONTH($AC58),1))>0,SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA58*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C58)*(PayDate<=$AC58)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA58*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C58,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C58,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL58),($AR58*$AL58)-$AI58-$AK58,MAX(0,IF($AL58=\"B\",IF($AR58<Setup!$C$32,($AR58*Setup!$D$32)-$AI58-$AK58,(($AR58-VLOOKUP($AR58,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR58,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR58,TaxBracket2,1),0,1,1)-$AI58-$AK58),IF($AR58<Setup!$C$21,($AR58*Setup!$D$21)-$AI58-$AK58,(($AR58-VLOOKUP($AR58,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR58,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR58,TaxBracket1,1),0,1,1)-$AI58-$AK58))))","v":0},{"$f":"IF(ISNUMBER($AL58),($AX58*$AL58)-$AI58-$AK58,MAX(0,IF($AL58=\"B\",IF($AX58<Setup!$C$32,($AX58*Setup!$D$32)-$AI58-$AK58,(($AX58-VLOOKUP($AX58,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX58,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX58,TaxBracket2,1),0,1,1)-$AI58-$AK58),IF($AX58<Setup!$C$21,($AX58*Setup!$D$21)-$AI58-$AK58,(($AX58-VLOOKUP($AX58,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX58,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX58,TaxBracket1,1),0,1,1)-$AI58-$AK58))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A59)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B59,\"yyyy\")&TEXT($B59,\"mm\")&\"-\"&$C59)","v":"202306-EXS008"},{"$f":"IF(ROW($A59)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A59)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A59)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A59)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45102},{"$f":"IF(ROW($A59)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A59)-ROW($A$6)-IF(ROW($A59)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A59)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS008"},{"$f":"IF(ISNA(VLOOKUP($C59,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C59,EmpAll,COLUMN(Emp!$B$4),0))","v":"Matthews B"},{"$f":"IF(ISNA(VLOOKUP($C59,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C59,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C59,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C59,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC59),MONTH($AC59)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C59,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC59),MONTH($AC59),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F59<>\"Active\",0,IF(COUNTIFS(OverEmp,$C59,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMIFS(OverValue,OverEmp,$C59,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1)),IF(AND($AC59>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C59)>0),SUMIFS(EmpIncrease,EmpCode,$C59),SUMIFS(EmpSalary,EmpCode,$C59))))","v":9000},{"$f":"IF($F59<>\"Active\",0,IF(COUNTIFS(OverEmp,$C59,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMIFS(OverValue,OverEmp,$C59,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1)),0))","v":0},{"$f":"IF($F59<>\"Active\",0,IF(COUNTIFS(OverEmp,$C59,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMIFS(OverValue,OverEmp,$C59,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1)),IF(MONTH(B59)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C59),0)))","v":0},{"$f":"IF($F59<>\"Active\",0,IF(COUNTIFS(OverEmp,$C59,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMIFS(OverValue,OverEmp,$C59,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1)),0))","v":0},{"$f":"IF($F59<>\"Active\",0,IF(COUNTIFS(OverEmp,$C59,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMIFS(OverValue,OverEmp,$C59,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C59,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMIFS(OverValue,OverEmp,$C59,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1)),(($BA59/12*$AA59)+(BB59*IF(1-$BC59=0,0,BD59/(1-$BC59))))-IF($F59=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC59,PayEmp,$C59)))","v":183.75},{"$f":"IF($F59=\"Terminated\",0,IF($AA59=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C59,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMIFS(OverValue,OverEmp,$C59,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA59)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA59,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59))))))","v":90},{"$f":"IF($F59=\"Terminated\",0,IF($AA59=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C59,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMIFS(OverValue,OverEmp,$C59,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA59)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA59,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59))))))","v":0},{"$f":"IF($F59=\"Terminated\",0,IF($AA59=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C59,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMIFS(OverValue,OverEmp,$C59,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA59)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA59,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59))))))","v":0},{"$f":"IF($F59=\"Terminated\",0,IF($AA59=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C59,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMIFS(OverValue,OverEmp,$C59,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA59)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA59,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59))))))","v":0},273.75,8726.25,{"$f":"IF($F59=\"Terminated\",0,IF($AA59=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C59,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMIFS(OverValue,OverEmp,$C59,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA59)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA59,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59)))))))","v":90},{"$f":"IF($F59=\"Terminated\",0,IF($AA59=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C59,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMIFS(OverValue,OverEmp,$C59,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA59)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA59,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59)))))))","v":90},{"$f":"IF($F59=\"Terminated\",0,IF($AA59=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C59,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMIFS(OverValue,OverEmp,$C59,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA59)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA59,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59)))))))","v":0},{"$f":"IF($F59=\"Terminated\",0,IF($AA59=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C59,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMIFS(OverValue,OverEmp,$C59,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA59)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA59,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC59,PayEmp,$C59)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B59<=Setup!$E$12,$B59>=Setup!$D$12+1),0,IF($F59<>\"Active\",0,IF($AE59=\"Yes\",$AB59,((YEAR($AC59)*12)+MONTH($AC59))-((YEAR($AD59)*12)+MONTH($AD59)-1))))","v":4},{"$f":"IF(OR($B59<=Setup!$E$12,$B59>=Setup!$D$12+1),0,((YEAR($AC59)*12)+MONTH($AC59))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":4},45102,{"$f":"IF(ISNA(VLOOKUP($C59,EmpAll,COLUMN(Emp!$E$4),0)),$AC59,IF(VLOOKUP($C59,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C59,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C59,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C59,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C59,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A59=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C59,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMIFS(OverValue,OverEmp,$C59,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1)),IF(ISNA(VLOOKUP($C59,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG59,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C59,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C59,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C59,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C59,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C59,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F59=\"Terminated\",0,IF($AA59=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C59,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA59*12)+(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB59/3,0))*4)+(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB59/6,0))*2)+(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F59=\"Terminated\",0,IF($AA59=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C59,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA59*12)+(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB59/3,0))*4)+(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB59/6,0))*2)+(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F59=\"Terminated\",0,IF($AA59=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C59,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA59*12)+(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB59/3,0))*4)+(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB59/6,0))*2)+(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F59=\"Terminated\",0,IF($AA59=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C59,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA59*12)+(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB59/3,0))*4)+(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB59/6,0))*2)+(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F59=\"Terminated\",0,IF($AA59=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C59,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA59*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F59=\"Terminated\",0,IF($AA59=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C59,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA59*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F59=\"Terminated\",0,IF($AA59=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C59,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA59*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F59=\"Terminated\",0,IF($AA59=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C59,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC59),MONTH($AC59)+1,1),OverEnd,\">=\"&DATE(YEAR($AC59),MONTH($AC59),1))>0,SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA59*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C59)*(PayDate<=$AC59)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA59*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C59,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C59,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL59),($AR59*$AL59)-$AI59-$AK59,MAX(0,IF($AL59=\"B\",IF($AR59<Setup!$C$32,($AR59*Setup!$D$32)-$AI59-$AK59,(($AR59-VLOOKUP($AR59,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR59,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR59,TaxBracket2,1),0,1,1)-$AI59-$AK59),IF($AR59<Setup!$C$21,($AR59*Setup!$D$21)-$AI59-$AK59,(($AR59-VLOOKUP($AR59,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR59,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR59,TaxBracket1,1),0,1,1)-$AI59-$AK59))))","v":2205},{"$f":"IF(ISNUMBER($AL59),($AX59*$AL59)-$AI59-$AK59,MAX(0,IF($AL59=\"B\",IF($AX59<Setup!$C$32,($AX59*Setup!$D$32)-$AI59-$AK59,(($AX59-VLOOKUP($AX59,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX59,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX59,TaxBracket2,1),0,1,1)-$AI59-$AK59),IF($AX59<Setup!$C$21,($AX59*Setup!$D$21)-$AI59-$AK59,(($AX59-VLOOKUP($AX59,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX59,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX59,TaxBracket1,1),0,1,1)-$AI59-$AK59))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A60)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B60,\"yyyy\")&TEXT($B60,\"mm\")&\"-\"&$C60)","v":"202306-EXS009"},{"$f":"IF(ROW($A60)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A60)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A60)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A60)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45102},{"$f":"IF(ROW($A60)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A60)-ROW($A$6)-IF(ROW($A60)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A60)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS009"},{"$f":"IF(ISNA(VLOOKUP($C60,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C60,EmpAll,COLUMN(Emp!$B$4),0))","v":"Brown JT"},{"$f":"IF(ISNA(VLOOKUP($C60,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C60,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C60,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C60,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC60),MONTH($AC60)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C60,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC60),MONTH($AC60),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F60<>\"Active\",0,IF(COUNTIFS(OverEmp,$C60,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMIFS(OverValue,OverEmp,$C60,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1)),IF(AND($AC60>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C60)>0),SUMIFS(EmpIncrease,EmpCode,$C60),SUMIFS(EmpSalary,EmpCode,$C60))))","v":9000},{"$f":"IF($F60<>\"Active\",0,IF(COUNTIFS(OverEmp,$C60,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMIFS(OverValue,OverEmp,$C60,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1)),0))","v":0},{"$f":"IF($F60<>\"Active\",0,IF(COUNTIFS(OverEmp,$C60,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMIFS(OverValue,OverEmp,$C60,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1)),IF(MONTH(B60)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C60),0)))","v":0},{"$f":"IF($F60<>\"Active\",0,IF(COUNTIFS(OverEmp,$C60,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMIFS(OverValue,OverEmp,$C60,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1)),0))","v":0},{"$f":"IF($F60<>\"Active\",0,IF(COUNTIFS(OverEmp,$C60,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMIFS(OverValue,OverEmp,$C60,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C60,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMIFS(OverValue,OverEmp,$C60,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1)),(($BA60/12*$AA60)+(BB60*IF(1-$BC60=0,0,BD60/(1-$BC60))))-IF($F60=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC60,PayEmp,$C60)))","v":183.75},{"$f":"IF($F60=\"Terminated\",0,IF($AA60=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C60,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMIFS(OverValue,OverEmp,$C60,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA60)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA60,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60))))))","v":90},{"$f":"IF($F60=\"Terminated\",0,IF($AA60=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C60,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMIFS(OverValue,OverEmp,$C60,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA60)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA60,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60))))))","v":0},{"$f":"IF($F60=\"Terminated\",0,IF($AA60=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C60,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMIFS(OverValue,OverEmp,$C60,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA60)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA60,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60))))))","v":0},{"$f":"IF($F60=\"Terminated\",0,IF($AA60=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C60,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMIFS(OverValue,OverEmp,$C60,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA60)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA60,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60))))))","v":0},273.75,8726.25,{"$f":"IF($F60=\"Terminated\",0,IF($AA60=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C60,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMIFS(OverValue,OverEmp,$C60,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA60)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA60,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60)))))))","v":90},{"$f":"IF($F60=\"Terminated\",0,IF($AA60=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C60,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMIFS(OverValue,OverEmp,$C60,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA60)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA60,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60)))))))","v":90},{"$f":"IF($F60=\"Terminated\",0,IF($AA60=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C60,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMIFS(OverValue,OverEmp,$C60,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA60)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA60,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60)))))))","v":0},{"$f":"IF($F60=\"Terminated\",0,IF($AA60=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C60,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMIFS(OverValue,OverEmp,$C60,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA60)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA60,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC60,PayEmp,$C60)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B60<=Setup!$E$12,$B60>=Setup!$D$12+1),0,IF($F60<>\"Active\",0,IF($AE60=\"Yes\",$AB60,((YEAR($AC60)*12)+MONTH($AC60))-((YEAR($AD60)*12)+MONTH($AD60)-1))))","v":4},{"$f":"IF(OR($B60<=Setup!$E$12,$B60>=Setup!$D$12+1),0,((YEAR($AC60)*12)+MONTH($AC60))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":4},45102,{"$f":"IF(ISNA(VLOOKUP($C60,EmpAll,COLUMN(Emp!$E$4),0)),$AC60,IF(VLOOKUP($C60,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C60,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C60,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C60,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C60,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A60=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C60,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMIFS(OverValue,OverEmp,$C60,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1)),IF(ISNA(VLOOKUP($C60,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG60,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C60,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C60,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C60,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C60,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C60,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F60=\"Terminated\",0,IF($AA60=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C60,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA60*12)+(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB60/3,0))*4)+(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB60/6,0))*2)+(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F60=\"Terminated\",0,IF($AA60=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C60,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA60*12)+(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB60/3,0))*4)+(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB60/6,0))*2)+(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F60=\"Terminated\",0,IF($AA60=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C60,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA60*12)+(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB60/3,0))*4)+(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB60/6,0))*2)+(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F60=\"Terminated\",0,IF($AA60=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C60,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA60*12)+(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB60/3,0))*4)+(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB60/6,0))*2)+(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F60=\"Terminated\",0,IF($AA60=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C60,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA60*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F60=\"Terminated\",0,IF($AA60=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C60,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA60*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F60=\"Terminated\",0,IF($AA60=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C60,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA60*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F60=\"Terminated\",0,IF($AA60=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C60,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC60),MONTH($AC60)+1,1),OverEnd,\">=\"&DATE(YEAR($AC60),MONTH($AC60),1))>0,SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA60*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C60)*(PayDate<=$AC60)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA60*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C60,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C60,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL60),($AR60*$AL60)-$AI60-$AK60,MAX(0,IF($AL60=\"B\",IF($AR60<Setup!$C$32,($AR60*Setup!$D$32)-$AI60-$AK60,(($AR60-VLOOKUP($AR60,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR60,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR60,TaxBracket2,1),0,1,1)-$AI60-$AK60),IF($AR60<Setup!$C$21,($AR60*Setup!$D$21)-$AI60-$AK60,(($AR60-VLOOKUP($AR60,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR60,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR60,TaxBracket1,1),0,1,1)-$AI60-$AK60))))","v":2205},{"$f":"IF(ISNUMBER($AL60),($AX60*$AL60)-$AI60-$AK60,MAX(0,IF($AL60=\"B\",IF($AX60<Setup!$C$32,($AX60*Setup!$D$32)-$AI60-$AK60,(($AX60-VLOOKUP($AX60,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX60,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX60,TaxBracket2,1),0,1,1)-$AI60-$AK60),IF($AX60<Setup!$C$21,($AX60*Setup!$D$21)-$AI60-$AK60,(($AX60-VLOOKUP($AX60,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX60,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX60,TaxBracket1,1),0,1,1)-$AI60-$AK60))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A61)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B61,\"yyyy\")&TEXT($B61,\"mm\")&\"-\"&$C61)","v":"202306-EXS010"},{"$f":"IF(ROW($A61)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A61)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A61)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A61)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45102},{"$f":"IF(ROW($A61)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A61)-ROW($A$6)-IF(ROW($A61)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A61)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS010"},{"$f":"IF(ISNA(VLOOKUP($C61,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C61,EmpAll,COLUMN(Emp!$B$4),0))","v":"Lewis I"},{"$f":"IF(ISNA(VLOOKUP($C61,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C61,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C61,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C61,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC61),MONTH($AC61)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C61,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC61),MONTH($AC61),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F61<>\"Active\",0,IF(COUNTIFS(OverEmp,$C61,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMIFS(OverValue,OverEmp,$C61,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1)),IF(AND($AC61>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C61)>0),SUMIFS(EmpIncrease,EmpCode,$C61),SUMIFS(EmpSalary,EmpCode,$C61))))","v":9000},{"$f":"IF($F61<>\"Active\",0,IF(COUNTIFS(OverEmp,$C61,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMIFS(OverValue,OverEmp,$C61,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1)),0))","v":0},{"$f":"IF($F61<>\"Active\",0,IF(COUNTIFS(OverEmp,$C61,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMIFS(OverValue,OverEmp,$C61,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1)),IF(MONTH(B61)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C61),0)))","v":0},{"$f":"IF($F61<>\"Active\",0,IF(COUNTIFS(OverEmp,$C61,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMIFS(OverValue,OverEmp,$C61,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1)),0))","v":0},{"$f":"IF($F61<>\"Active\",0,IF(COUNTIFS(OverEmp,$C61,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMIFS(OverValue,OverEmp,$C61,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C61,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMIFS(OverValue,OverEmp,$C61,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1)),(($BA61/12*$AA61)+(BB61*IF(1-$BC61=0,0,BD61/(1-$BC61))))-IF($F61=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC61,PayEmp,$C61)))","v":183.75},{"$f":"IF($F61=\"Terminated\",0,IF($AA61=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C61,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMIFS(OverValue,OverEmp,$C61,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA61)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA61,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61))))))","v":90},{"$f":"IF($F61=\"Terminated\",0,IF($AA61=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C61,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMIFS(OverValue,OverEmp,$C61,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA61)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA61,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61))))))","v":0},{"$f":"IF($F61=\"Terminated\",0,IF($AA61=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C61,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMIFS(OverValue,OverEmp,$C61,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA61)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA61,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61))))))","v":0},{"$f":"IF($F61=\"Terminated\",0,IF($AA61=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C61,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMIFS(OverValue,OverEmp,$C61,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA61)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA61,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61))))))","v":0},273.75,8726.25,{"$f":"IF($F61=\"Terminated\",0,IF($AA61=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C61,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMIFS(OverValue,OverEmp,$C61,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA61)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA61,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61)))))))","v":90},{"$f":"IF($F61=\"Terminated\",0,IF($AA61=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C61,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMIFS(OverValue,OverEmp,$C61,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA61)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA61,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61)))))))","v":90},{"$f":"IF($F61=\"Terminated\",0,IF($AA61=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C61,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMIFS(OverValue,OverEmp,$C61,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA61)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA61,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61)))))))","v":0},{"$f":"IF($F61=\"Terminated\",0,IF($AA61=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C61,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMIFS(OverValue,OverEmp,$C61,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA61)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA61,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC61,PayEmp,$C61)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B61<=Setup!$E$12,$B61>=Setup!$D$12+1),0,IF($F61<>\"Active\",0,IF($AE61=\"Yes\",$AB61,((YEAR($AC61)*12)+MONTH($AC61))-((YEAR($AD61)*12)+MONTH($AD61)-1))))","v":4},{"$f":"IF(OR($B61<=Setup!$E$12,$B61>=Setup!$D$12+1),0,((YEAR($AC61)*12)+MONTH($AC61))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":4},45102,{"$f":"IF(ISNA(VLOOKUP($C61,EmpAll,COLUMN(Emp!$E$4),0)),$AC61,IF(VLOOKUP($C61,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C61,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C61,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C61,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C61,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A61=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C61,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMIFS(OverValue,OverEmp,$C61,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1)),IF(ISNA(VLOOKUP($C61,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG61,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C61,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C61,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C61,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C61,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C61,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F61=\"Terminated\",0,IF($AA61=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C61,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA61*12)+(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB61/3,0))*4)+(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB61/6,0))*2)+(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F61=\"Terminated\",0,IF($AA61=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C61,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA61*12)+(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB61/3,0))*4)+(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB61/6,0))*2)+(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F61=\"Terminated\",0,IF($AA61=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C61,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA61*12)+(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB61/3,0))*4)+(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB61/6,0))*2)+(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F61=\"Terminated\",0,IF($AA61=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C61,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA61*12)+(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB61/3,0))*4)+(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB61/6,0))*2)+(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F61=\"Terminated\",0,IF($AA61=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C61,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA61*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F61=\"Terminated\",0,IF($AA61=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C61,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA61*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F61=\"Terminated\",0,IF($AA61=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C61,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA61*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F61=\"Terminated\",0,IF($AA61=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C61,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC61),MONTH($AC61)+1,1),OverEnd,\">=\"&DATE(YEAR($AC61),MONTH($AC61),1))>0,SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA61*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C61)*(PayDate<=$AC61)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA61*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C61,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C61,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL61),($AR61*$AL61)-$AI61-$AK61,MAX(0,IF($AL61=\"B\",IF($AR61<Setup!$C$32,($AR61*Setup!$D$32)-$AI61-$AK61,(($AR61-VLOOKUP($AR61,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR61,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR61,TaxBracket2,1),0,1,1)-$AI61-$AK61),IF($AR61<Setup!$C$21,($AR61*Setup!$D$21)-$AI61-$AK61,(($AR61-VLOOKUP($AR61,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR61,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR61,TaxBracket1,1),0,1,1)-$AI61-$AK61))))","v":2205},{"$f":"IF(ISNUMBER($AL61),($AX61*$AL61)-$AI61-$AK61,MAX(0,IF($AL61=\"B\",IF($AX61<Setup!$C$32,($AX61*Setup!$D$32)-$AI61-$AK61,(($AX61-VLOOKUP($AX61,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX61,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX61,TaxBracket2,1),0,1,1)-$AI61-$AK61),IF($AX61<Setup!$C$21,($AX61*Setup!$D$21)-$AI61-$AK61,(($AX61-VLOOKUP($AX61,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX61,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX61,TaxBracket1,1),0,1,1)-$AI61-$AK61))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A62)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B62,\"yyyy\")&TEXT($B62,\"mm\")&\"-\"&$C62)","v":"202306-EXS011"},{"$f":"IF(ROW($A62)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A62)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A62)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A62)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45102},{"$f":"IF(ROW($A62)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A62)-ROW($A$6)-IF(ROW($A62)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A62)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS011"},{"$f":"IF(ISNA(VLOOKUP($C62,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C62,EmpAll,COLUMN(Emp!$B$4),0))","v":"Newport GD"},{"$f":"IF(ISNA(VLOOKUP($C62,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C62,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C62,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C62,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC62),MONTH($AC62)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C62,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC62),MONTH($AC62),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F62<>\"Active\",0,IF(COUNTIFS(OverEmp,$C62,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMIFS(OverValue,OverEmp,$C62,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1)),IF(AND($AC62>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C62)>0),SUMIFS(EmpIncrease,EmpCode,$C62),SUMIFS(EmpSalary,EmpCode,$C62))))","v":5000},{"$f":"IF($F62<>\"Active\",0,IF(COUNTIFS(OverEmp,$C62,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMIFS(OverValue,OverEmp,$C62,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1)),0))","v":0},{"$f":"IF($F62<>\"Active\",0,IF(COUNTIFS(OverEmp,$C62,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMIFS(OverValue,OverEmp,$C62,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1)),IF(MONTH(B62)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C62),0)))","v":0},{"$f":"IF($F62<>\"Active\",0,IF(COUNTIFS(OverEmp,$C62,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMIFS(OverValue,OverEmp,$C62,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1)),0))","v":0},{"$f":"IF($F62<>\"Active\",0,IF(COUNTIFS(OverEmp,$C62,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMIFS(OverValue,OverEmp,$C62,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C62,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMIFS(OverValue,OverEmp,$C62,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1)),(($BA62/12*$AA62)+(BB62*IF(1-$BC62=0,0,BD62/(1-$BC62))))-IF($F62=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC62,PayEmp,$C62)))","v":0},{"$f":"IF($F62=\"Terminated\",0,IF($AA62=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C62,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMIFS(OverValue,OverEmp,$C62,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA62)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA62,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62))))))","v":50},{"$f":"IF($F62=\"Terminated\",0,IF($AA62=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C62,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMIFS(OverValue,OverEmp,$C62,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA62)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA62,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62))))))","v":0},{"$f":"IF($F62=\"Terminated\",0,IF($AA62=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C62,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMIFS(OverValue,OverEmp,$C62,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA62)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA62,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62))))))","v":0},{"$f":"IF($F62=\"Terminated\",0,IF($AA62=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C62,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMIFS(OverValue,OverEmp,$C62,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA62)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA62,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62))))))","v":0},50,4950,{"$f":"IF($F62=\"Terminated\",0,IF($AA62=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C62,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMIFS(OverValue,OverEmp,$C62,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA62)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA62,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62)))))))","v":50},{"$f":"IF($F62=\"Terminated\",0,IF($AA62=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C62,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMIFS(OverValue,OverEmp,$C62,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA62)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA62,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62)))))))","v":50},{"$f":"IF($F62=\"Terminated\",0,IF($AA62=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C62,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMIFS(OverValue,OverEmp,$C62,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA62)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA62,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62)))))))","v":0},{"$f":"IF($F62=\"Terminated\",0,IF($AA62=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C62,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMIFS(OverValue,OverEmp,$C62,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA62)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA62,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC62,PayEmp,$C62)))))))","v":0},100,5100,150,{"$f":"IF(OR($B62<=Setup!$E$12,$B62>=Setup!$D$12+1),0,IF($F62<>\"Active\",0,IF($AE62=\"Yes\",$AB62,((YEAR($AC62)*12)+MONTH($AC62))-((YEAR($AD62)*12)+MONTH($AD62)-1))))","v":4},{"$f":"IF(OR($B62<=Setup!$E$12,$B62>=Setup!$D$12+1),0,((YEAR($AC62)*12)+MONTH($AC62))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":4},45102,{"$f":"IF(ISNA(VLOOKUP($C62,EmpAll,COLUMN(Emp!$E$4),0)),$AC62,IF(VLOOKUP($C62,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C62,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C62,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C62,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C62,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A62=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C62,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMIFS(OverValue,OverEmp,$C62,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1)),IF(ISNA(VLOOKUP($C62,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG62,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C62,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C62,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C62,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C62,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C62,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F62=\"Terminated\",0,IF($AA62=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C62,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA62*12)+(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB62/3,0))*4)+(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB62/6,0))*2)+(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F62=\"Terminated\",0,IF($AA62=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C62,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA62*12)+(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB62/3,0))*4)+(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB62/6,0))*2)+(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F62=\"Terminated\",0,IF($AA62=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C62,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA62*12)+(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB62/3,0))*4)+(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB62/6,0))*2)+(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F62=\"Terminated\",0,IF($AA62=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C62,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA62*12)+(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB62/3,0))*4)+(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB62/6,0))*2)+(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F62=\"Terminated\",0,IF($AA62=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C62,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA62*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F62=\"Terminated\",0,IF($AA62=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C62,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA62*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F62=\"Terminated\",0,IF($AA62=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C62,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA62*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F62=\"Terminated\",0,IF($AA62=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C62,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC62),MONTH($AC62)+1,1),OverEnd,\">=\"&DATE(YEAR($AC62),MONTH($AC62),1))>0,SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA62*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C62)*(PayDate<=$AC62)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA62*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C62,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C62,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL62),($AR62*$AL62)-$AI62-$AK62,MAX(0,IF($AL62=\"B\",IF($AR62<Setup!$C$32,($AR62*Setup!$D$32)-$AI62-$AK62,(($AR62-VLOOKUP($AR62,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR62,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR62,TaxBracket2,1),0,1,1)-$AI62-$AK62),IF($AR62<Setup!$C$21,($AR62*Setup!$D$21)-$AI62-$AK62,(($AR62-VLOOKUP($AR62,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR62,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR62,TaxBracket1,1),0,1,1)-$AI62-$AK62))))","v":0},{"$f":"IF(ISNUMBER($AL62),($AX62*$AL62)-$AI62-$AK62,MAX(0,IF($AL62=\"B\",IF($AX62<Setup!$C$32,($AX62*Setup!$D$32)-$AI62-$AK62,(($AX62-VLOOKUP($AX62,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX62,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX62,TaxBracket2,1),0,1,1)-$AI62-$AK62),IF($AX62<Setup!$C$21,($AX62*Setup!$D$21)-$AI62-$AK62,(($AX62-VLOOKUP($AX62,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX62,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX62,TaxBracket1,1),0,1,1)-$AI62-$AK62))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A63)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B63,\"yyyy\")&TEXT($B63,\"mm\")&\"-\"&$C63)","v":"202306-EXS012"},{"$f":"IF(ROW($A63)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A63)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A63)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A63)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45102},{"$f":"IF(ROW($A63)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A63)-ROW($A$6)-IF(ROW($A63)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A63)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS012"},{"$f":"IF(ISNA(VLOOKUP($C63,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C63,EmpAll,COLUMN(Emp!$B$4),0))","v":"Williams VS"},{"$f":"IF(ISNA(VLOOKUP($C63,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C63,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C63,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C63,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC63),MONTH($AC63)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C63,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC63),MONTH($AC63),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F63<>\"Active\",0,IF(COUNTIFS(OverEmp,$C63,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMIFS(OverValue,OverEmp,$C63,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1)),IF(AND($AC63>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C63)>0),SUMIFS(EmpIncrease,EmpCode,$C63),SUMIFS(EmpSalary,EmpCode,$C63))))","v":5000},{"$f":"IF($F63<>\"Active\",0,IF(COUNTIFS(OverEmp,$C63,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMIFS(OverValue,OverEmp,$C63,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1)),0))","v":0},{"$f":"IF($F63<>\"Active\",0,IF(COUNTIFS(OverEmp,$C63,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMIFS(OverValue,OverEmp,$C63,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1)),IF(MONTH(B63)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C63),0)))","v":0},{"$f":"IF($F63<>\"Active\",0,IF(COUNTIFS(OverEmp,$C63,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMIFS(OverValue,OverEmp,$C63,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1)),0))","v":0},{"$f":"IF($F63<>\"Active\",0,IF(COUNTIFS(OverEmp,$C63,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMIFS(OverValue,OverEmp,$C63,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C63,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMIFS(OverValue,OverEmp,$C63,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1)),(($BA63/12*$AA63)+(BB63*IF(1-$BC63=0,0,BD63/(1-$BC63))))-IF($F63=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC63,PayEmp,$C63)))","v":0},{"$f":"IF($F63=\"Terminated\",0,IF($AA63=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C63,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMIFS(OverValue,OverEmp,$C63,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA63)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA63,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63))))))","v":50},{"$f":"IF($F63=\"Terminated\",0,IF($AA63=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C63,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMIFS(OverValue,OverEmp,$C63,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA63)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA63,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63))))))","v":0},{"$f":"IF($F63=\"Terminated\",0,IF($AA63=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C63,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMIFS(OverValue,OverEmp,$C63,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA63)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA63,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63))))))","v":0},{"$f":"IF($F63=\"Terminated\",0,IF($AA63=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C63,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMIFS(OverValue,OverEmp,$C63,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA63)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA63,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63))))))","v":0},50,4950,{"$f":"IF($F63=\"Terminated\",0,IF($AA63=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C63,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMIFS(OverValue,OverEmp,$C63,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA63)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA63,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63)))))))","v":50},{"$f":"IF($F63=\"Terminated\",0,IF($AA63=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C63,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMIFS(OverValue,OverEmp,$C63,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA63)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA63,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63)))))))","v":50},{"$f":"IF($F63=\"Terminated\",0,IF($AA63=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C63,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMIFS(OverValue,OverEmp,$C63,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA63)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA63,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63)))))))","v":0},{"$f":"IF($F63=\"Terminated\",0,IF($AA63=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C63,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMIFS(OverValue,OverEmp,$C63,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA63)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA63,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC63,PayEmp,$C63)))))))","v":0},100,5100,150,{"$f":"IF(OR($B63<=Setup!$E$12,$B63>=Setup!$D$12+1),0,IF($F63<>\"Active\",0,IF($AE63=\"Yes\",$AB63,((YEAR($AC63)*12)+MONTH($AC63))-((YEAR($AD63)*12)+MONTH($AD63)-1))))","v":4},{"$f":"IF(OR($B63<=Setup!$E$12,$B63>=Setup!$D$12+1),0,((YEAR($AC63)*12)+MONTH($AC63))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":4},45102,{"$f":"IF(ISNA(VLOOKUP($C63,EmpAll,COLUMN(Emp!$E$4),0)),$AC63,IF(VLOOKUP($C63,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C63,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C63,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C63,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C63,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A63=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C63,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMIFS(OverValue,OverEmp,$C63,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1)),IF(ISNA(VLOOKUP($C63,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG63,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C63,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C63,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C63,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C63,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C63,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F63=\"Terminated\",0,IF($AA63=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C63,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA63*12)+(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB63/3,0))*4)+(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB63/6,0))*2)+(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F63=\"Terminated\",0,IF($AA63=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C63,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA63*12)+(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB63/3,0))*4)+(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB63/6,0))*2)+(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F63=\"Terminated\",0,IF($AA63=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C63,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA63*12)+(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB63/3,0))*4)+(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB63/6,0))*2)+(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F63=\"Terminated\",0,IF($AA63=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C63,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA63*12)+(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB63/3,0))*4)+(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB63/6,0))*2)+(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F63=\"Terminated\",0,IF($AA63=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C63,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA63*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F63=\"Terminated\",0,IF($AA63=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C63,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA63*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F63=\"Terminated\",0,IF($AA63=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C63,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA63*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F63=\"Terminated\",0,IF($AA63=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C63,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC63),MONTH($AC63)+1,1),OverEnd,\">=\"&DATE(YEAR($AC63),MONTH($AC63),1))>0,SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA63*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C63)*(PayDate<=$AC63)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA63*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C63,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C63,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL63),($AR63*$AL63)-$AI63-$AK63,MAX(0,IF($AL63=\"B\",IF($AR63<Setup!$C$32,($AR63*Setup!$D$32)-$AI63-$AK63,(($AR63-VLOOKUP($AR63,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR63,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR63,TaxBracket2,1),0,1,1)-$AI63-$AK63),IF($AR63<Setup!$C$21,($AR63*Setup!$D$21)-$AI63-$AK63,(($AR63-VLOOKUP($AR63,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR63,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR63,TaxBracket1,1),0,1,1)-$AI63-$AK63))))","v":0},{"$f":"IF(ISNUMBER($AL63),($AX63*$AL63)-$AI63-$AK63,MAX(0,IF($AL63=\"B\",IF($AX63<Setup!$C$32,($AX63*Setup!$D$32)-$AI63-$AK63,(($AX63-VLOOKUP($AX63,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX63,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX63,TaxBracket2,1),0,1,1)-$AI63-$AK63),IF($AX63<Setup!$C$21,($AX63*Setup!$D$21)-$AI63-$AK63,(($AX63-VLOOKUP($AX63,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX63,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX63,TaxBracket1,1),0,1,1)-$AI63-$AK63))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A64)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B64,\"yyyy\")&TEXT($B64,\"mm\")&\"-\"&$C64)","v":"202306-EXS013"},{"$f":"IF(ROW($A64)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A64)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A64)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A64)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45102},{"$f":"IF(ROW($A64)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A64)-ROW($A$6)-IF(ROW($A64)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A64)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS013"},{"$f":"IF(ISNA(VLOOKUP($C64,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C64,EmpAll,COLUMN(Emp!$B$4),0))","v":"East WD"},{"$f":"IF(ISNA(VLOOKUP($C64,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C64,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C64,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C64,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC64),MONTH($AC64)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C64,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC64),MONTH($AC64),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F64<>\"Active\",0,IF(COUNTIFS(OverEmp,$C64,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMIFS(OverValue,OverEmp,$C64,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1)),IF(AND($AC64>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C64)>0),SUMIFS(EmpIncrease,EmpCode,$C64),SUMIFS(EmpSalary,EmpCode,$C64))))","v":5000},{"$f":"IF($F64<>\"Active\",0,IF(COUNTIFS(OverEmp,$C64,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMIFS(OverValue,OverEmp,$C64,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1)),0))","v":0},{"$f":"IF($F64<>\"Active\",0,IF(COUNTIFS(OverEmp,$C64,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMIFS(OverValue,OverEmp,$C64,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1)),IF(MONTH(B64)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C64),0)))","v":0},{"$f":"IF($F64<>\"Active\",0,IF(COUNTIFS(OverEmp,$C64,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMIFS(OverValue,OverEmp,$C64,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1)),0))","v":0},{"$f":"IF($F64<>\"Active\",0,IF(COUNTIFS(OverEmp,$C64,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMIFS(OverValue,OverEmp,$C64,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C64,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMIFS(OverValue,OverEmp,$C64,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1)),(($BA64/12*$AA64)+(BB64*IF(1-$BC64=0,0,BD64/(1-$BC64))))-IF($F64=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC64,PayEmp,$C64)))","v":0},{"$f":"IF($F64=\"Terminated\",0,IF($AA64=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C64,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMIFS(OverValue,OverEmp,$C64,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA64)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA64,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64))))))","v":50},{"$f":"IF($F64=\"Terminated\",0,IF($AA64=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C64,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMIFS(OverValue,OverEmp,$C64,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA64)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA64,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64))))))","v":0},{"$f":"IF($F64=\"Terminated\",0,IF($AA64=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C64,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMIFS(OverValue,OverEmp,$C64,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA64)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA64,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64))))))","v":0},{"$f":"IF($F64=\"Terminated\",0,IF($AA64=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C64,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMIFS(OverValue,OverEmp,$C64,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA64)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA64,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64))))))","v":0},50,4950,{"$f":"IF($F64=\"Terminated\",0,IF($AA64=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C64,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMIFS(OverValue,OverEmp,$C64,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA64)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA64,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64)))))))","v":50},{"$f":"IF($F64=\"Terminated\",0,IF($AA64=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C64,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMIFS(OverValue,OverEmp,$C64,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA64)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA64,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64)))))))","v":50},{"$f":"IF($F64=\"Terminated\",0,IF($AA64=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C64,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMIFS(OverValue,OverEmp,$C64,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA64)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA64,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64)))))))","v":0},{"$f":"IF($F64=\"Terminated\",0,IF($AA64=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C64,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMIFS(OverValue,OverEmp,$C64,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA64)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA64,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC64,PayEmp,$C64)))))))","v":0},100,5100,150,{"$f":"IF(OR($B64<=Setup!$E$12,$B64>=Setup!$D$12+1),0,IF($F64<>\"Active\",0,IF($AE64=\"Yes\",$AB64,((YEAR($AC64)*12)+MONTH($AC64))-((YEAR($AD64)*12)+MONTH($AD64)-1))))","v":4},{"$f":"IF(OR($B64<=Setup!$E$12,$B64>=Setup!$D$12+1),0,((YEAR($AC64)*12)+MONTH($AC64))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":4},45102,{"$f":"IF(ISNA(VLOOKUP($C64,EmpAll,COLUMN(Emp!$E$4),0)),$AC64,IF(VLOOKUP($C64,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C64,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C64,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C64,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C64,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A64=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C64,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMIFS(OverValue,OverEmp,$C64,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1)),IF(ISNA(VLOOKUP($C64,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG64,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C64,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C64,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C64,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C64,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C64,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F64=\"Terminated\",0,IF($AA64=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C64,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA64*12)+(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB64/3,0))*4)+(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB64/6,0))*2)+(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F64=\"Terminated\",0,IF($AA64=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C64,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA64*12)+(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB64/3,0))*4)+(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB64/6,0))*2)+(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F64=\"Terminated\",0,IF($AA64=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C64,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA64*12)+(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB64/3,0))*4)+(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB64/6,0))*2)+(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F64=\"Terminated\",0,IF($AA64=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C64,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA64*12)+(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB64/3,0))*4)+(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB64/6,0))*2)+(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F64=\"Terminated\",0,IF($AA64=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C64,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA64*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F64=\"Terminated\",0,IF($AA64=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C64,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA64*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F64=\"Terminated\",0,IF($AA64=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C64,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA64*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F64=\"Terminated\",0,IF($AA64=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C64,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC64),MONTH($AC64)+1,1),OverEnd,\">=\"&DATE(YEAR($AC64),MONTH($AC64),1))>0,SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA64*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C64)*(PayDate<=$AC64)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA64*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C64,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C64,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL64),($AR64*$AL64)-$AI64-$AK64,MAX(0,IF($AL64=\"B\",IF($AR64<Setup!$C$32,($AR64*Setup!$D$32)-$AI64-$AK64,(($AR64-VLOOKUP($AR64,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR64,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR64,TaxBracket2,1),0,1,1)-$AI64-$AK64),IF($AR64<Setup!$C$21,($AR64*Setup!$D$21)-$AI64-$AK64,(($AR64-VLOOKUP($AR64,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR64,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR64,TaxBracket1,1),0,1,1)-$AI64-$AK64))))","v":0},{"$f":"IF(ISNUMBER($AL64),($AX64*$AL64)-$AI64-$AK64,MAX(0,IF($AL64=\"B\",IF($AX64<Setup!$C$32,($AX64*Setup!$D$32)-$AI64-$AK64,(($AX64-VLOOKUP($AX64,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX64,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX64,TaxBracket2,1),0,1,1)-$AI64-$AK64),IF($AX64<Setup!$C$21,($AX64*Setup!$D$21)-$AI64-$AK64,(($AX64-VLOOKUP($AX64,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX64,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX64,TaxBracket1,1),0,1,1)-$AI64-$AK64))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A65)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B65,\"yyyy\")&TEXT($B65,\"mm\")&\"-\"&$C65)","v":"202306-EXS014"},{"$f":"IF(ROW($A65)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A65)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A65)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A65)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45102},{"$f":"IF(ROW($A65)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A65)-ROW($A$6)-IF(ROW($A65)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A65)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS014"},{"$f":"IF(ISNA(VLOOKUP($C65,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C65,EmpAll,COLUMN(Emp!$B$4),0))","v":"Ross Q"},{"$f":"IF(ISNA(VLOOKUP($C65,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C65,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C65,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C65,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC65),MONTH($AC65)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C65,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC65),MONTH($AC65),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F65<>\"Active\",0,IF(COUNTIFS(OverEmp,$C65,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMIFS(OverValue,OverEmp,$C65,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1)),IF(AND($AC65>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C65)>0),SUMIFS(EmpIncrease,EmpCode,$C65),SUMIFS(EmpSalary,EmpCode,$C65))))","v":29150},{"$f":"IF($F65<>\"Active\",0,IF(COUNTIFS(OverEmp,$C65,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMIFS(OverValue,OverEmp,$C65,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1)),0))","v":0},{"$f":"IF($F65<>\"Active\",0,IF(COUNTIFS(OverEmp,$C65,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMIFS(OverValue,OverEmp,$C65,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1)),IF(MONTH(B65)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C65),0)))","v":0},{"$f":"IF($F65<>\"Active\",0,IF(COUNTIFS(OverEmp,$C65,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMIFS(OverValue,OverEmp,$C65,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1)),0))","v":0},{"$f":"IF($F65<>\"Active\",0,IF(COUNTIFS(OverEmp,$C65,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMIFS(OverValue,OverEmp,$C65,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1)),0))","v":0},29150,{"$f":"IF(COUNTIFS(OverEmp,$C65,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMIFS(OverValue,OverEmp,$C65,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1)),(($BA65/12*$AA65)+(BB65*IF(1-$BC65=0,0,BD65/(1-$BC65))))-IF($F65=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC65,PayEmp,$C65)))","v":4562.083333333333},{"$f":"IF($F65=\"Terminated\",0,IF($AA65=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C65,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMIFS(OverValue,OverEmp,$C65,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA65)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA65,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65))))))","v":177.12},{"$f":"IF($F65=\"Terminated\",0,IF($AA65=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C65,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMIFS(OverValue,OverEmp,$C65,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA65)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA65,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65))))))","v":0},{"$f":"IF($F65=\"Terminated\",0,IF($AA65=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C65,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMIFS(OverValue,OverEmp,$C65,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA65)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA65,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65))))))","v":0},{"$f":"IF($F65=\"Terminated\",0,IF($AA65=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C65,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMIFS(OverValue,OverEmp,$C65,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA65)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA65,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65))))))","v":0},4739.2033333333329,24410.799999999999,{"$f":"IF($F65=\"Terminated\",0,IF($AA65=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C65,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMIFS(OverValue,OverEmp,$C65,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA65)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA65,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65)))))))","v":177.12},{"$f":"IF($F65=\"Terminated\",0,IF($AA65=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C65,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMIFS(OverValue,OverEmp,$C65,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA65)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA65,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65)))))))","v":291.5},{"$f":"IF($F65=\"Terminated\",0,IF($AA65=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C65,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMIFS(OverValue,OverEmp,$C65,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA65)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA65,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65)))))))","v":0},{"$f":"IF($F65=\"Terminated\",0,IF($AA65=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C65,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMIFS(OverValue,OverEmp,$C65,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA65)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA65,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC65,PayEmp,$C65)))))))","v":0},468.62,29618.62,5207.82,{"$f":"IF(OR($B65<=Setup!$E$12,$B65>=Setup!$D$12+1),0,IF($F65<>\"Active\",0,IF($AE65=\"Yes\",$AB65,((YEAR($AC65)*12)+MONTH($AC65))-((YEAR($AD65)*12)+MONTH($AD65)-1))))","v":1},{"$f":"IF(OR($B65<=Setup!$E$12,$B65>=Setup!$D$12+1),0,((YEAR($AC65)*12)+MONTH($AC65))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":4},45102,{"$f":"IF(ISNA(VLOOKUP($C65,EmpAll,COLUMN(Emp!$E$4),0)),$AC65,IF(VLOOKUP($C65,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C65,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-06-25"},{"$f":"IF(ISNA(VLOOKUP($C65,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C65,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C65,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A65=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C65,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMIFS(OverValue,OverEmp,$C65,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1)),IF(ISNA(VLOOKUP($C65,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG65,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C65,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C65,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C65,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C65,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C65,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},349800,{"$f":"-IF($F65=\"Terminated\",0,IF($AA65=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C65,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA65*12)+(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB65/3,0))*4)+(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB65/6,0))*2)+(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F65=\"Terminated\",0,IF($AA65=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C65,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA65*12)+(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB65/3,0))*4)+(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB65/6,0))*2)+(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F65=\"Terminated\",0,IF($AA65=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C65,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA65*12)+(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB65/3,0))*4)+(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB65/6,0))*2)+(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F65=\"Terminated\",0,IF($AA65=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C65,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA65*12)+(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB65/3,0))*4)+(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB65/6,0))*2)+(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},349800,349800,{"$f":"-IF($F65=\"Terminated\",0,IF($AA65=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C65,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA65*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F65=\"Terminated\",0,IF($AA65=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C65,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA65*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F65=\"Terminated\",0,IF($AA65=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C65,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA65*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F65=\"Terminated\",0,IF($AA65=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C65,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC65),MONTH($AC65)+1,1),OverEnd,\">=\"&DATE(YEAR($AC65),MONTH($AC65),1))>0,SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA65*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C65)*(PayDate<=$AC65)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA65*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C65,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C65,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},349800,0,{"$f":"IF(ISNUMBER($AL65),($AR65*$AL65)-$AI65-$AK65,MAX(0,IF($AL65=\"B\",IF($AR65<Setup!$C$32,($AR65*Setup!$D$32)-$AI65-$AK65,(($AR65-VLOOKUP($AR65,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR65,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR65,TaxBracket2,1),0,1,1)-$AI65-$AK65),IF($AR65<Setup!$C$21,($AR65*Setup!$D$21)-$AI65-$AK65,(($AR65-VLOOKUP($AR65,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR65,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR65,TaxBracket1,1),0,1,1)-$AI65-$AK65))))","v":54745},{"$f":"IF(ISNUMBER($AL65),($AX65*$AL65)-$AI65-$AK65,MAX(0,IF($AL65=\"B\",IF($AX65<Setup!$C$32,($AX65*Setup!$D$32)-$AI65-$AK65,(($AX65-VLOOKUP($AX65,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX65,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX65,TaxBracket2,1),0,1,1)-$AI65-$AK65),IF($AX65<Setup!$C$21,($AX65*Setup!$D$21)-$AI65-$AK65,(($AX65-VLOOKUP($AX65,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX65,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX65,TaxBracket1,1),0,1,1)-$AI65-$AK65))))","v":54745},0,1,0,349800]
[{"$f":"IF(ROW($A66)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B66,\"yyyy\")&TEXT($B66,\"mm\")&\"-\"&$C66)","v":"202306-EXS015"},{"$f":"IF(ROW($A66)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A66)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A66)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A66)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45102},{"$f":"IF(ROW($A66)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A66)-ROW($A$6)-IF(ROW($A66)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A66)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS015"},{"$f":"IF(ISNA(VLOOKUP($C66,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C66,EmpAll,COLUMN(Emp!$B$4),0))","v":"Graham L"},{"$f":"IF(ISNA(VLOOKUP($C66,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C66,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C66,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C66,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC66),MONTH($AC66)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C66,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC66),MONTH($AC66),0)),\"Terminated\",\"Active\")))","v":"Inactive"},{"$f":"IF($F66<>\"Active\",0,IF(COUNTIFS(OverEmp,$C66,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMIFS(OverValue,OverEmp,$C66,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1)),IF(AND($AC66>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C66)>0),SUMIFS(EmpIncrease,EmpCode,$C66),SUMIFS(EmpSalary,EmpCode,$C66))))","v":0},{"$f":"IF($F66<>\"Active\",0,IF(COUNTIFS(OverEmp,$C66,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMIFS(OverValue,OverEmp,$C66,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1)),0))","v":0},{"$f":"IF($F66<>\"Active\",0,IF(COUNTIFS(OverEmp,$C66,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMIFS(OverValue,OverEmp,$C66,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1)),IF(MONTH(B66)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C66),0)))","v":0},{"$f":"IF($F66<>\"Active\",0,IF(COUNTIFS(OverEmp,$C66,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMIFS(OverValue,OverEmp,$C66,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1)),0))","v":0},{"$f":"IF($F66<>\"Active\",0,IF(COUNTIFS(OverEmp,$C66,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMIFS(OverValue,OverEmp,$C66,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C66,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMIFS(OverValue,OverEmp,$C66,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1)),(($BA66/12*$AA66)+(BB66*IF(1-$BC66=0,0,BD66/(1-$BC66))))-IF($F66=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC66,PayEmp,$C66)))","v":0},{"$f":"IF($F66=\"Terminated\",0,IF($AA66=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C66,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMIFS(OverValue,OverEmp,$C66,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA66)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA66,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66))))))","v":0},{"$f":"IF($F66=\"Terminated\",0,IF($AA66=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C66,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMIFS(OverValue,OverEmp,$C66,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA66)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA66,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66))))))","v":0},{"$f":"IF($F66=\"Terminated\",0,IF($AA66=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C66,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMIFS(OverValue,OverEmp,$C66,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA66)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA66,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66))))))","v":0},{"$f":"IF($F66=\"Terminated\",0,IF($AA66=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C66,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMIFS(OverValue,OverEmp,$C66,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA66)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA66,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66))))))","v":0},0,0,{"$f":"IF($F66=\"Terminated\",0,IF($AA66=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C66,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMIFS(OverValue,OverEmp,$C66,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA66)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA66,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66)))))))","v":0},{"$f":"IF($F66=\"Terminated\",0,IF($AA66=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C66,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMIFS(OverValue,OverEmp,$C66,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA66)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA66,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66)))))))","v":0},{"$f":"IF($F66=\"Terminated\",0,IF($AA66=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C66,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMIFS(OverValue,OverEmp,$C66,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA66)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA66,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66)))))))","v":0},{"$f":"IF($F66=\"Terminated\",0,IF($AA66=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C66,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMIFS(OverValue,OverEmp,$C66,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA66)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA66,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC66,PayEmp,$C66)))))))","v":0},0,0,0,{"$f":"IF(OR($B66<=Setup!$E$12,$B66>=Setup!$D$12+1),0,IF($F66<>\"Active\",0,IF($AE66=\"Yes\",$AB66,((YEAR($AC66)*12)+MONTH($AC66))-((YEAR($AD66)*12)+MONTH($AD66)-1))))","v":0},{"$f":"IF(OR($B66<=Setup!$E$12,$B66>=Setup!$D$12+1),0,((YEAR($AC66)*12)+MONTH($AC66))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":4},45102,{"$f":"IF(ISNA(VLOOKUP($C66,EmpAll,COLUMN(Emp!$E$4),0)),$AC66,IF(VLOOKUP($C66,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C66,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-01-25"},{"$f":"IF(ISNA(VLOOKUP($C66,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C66,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C66,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A66=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C66,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMIFS(OverValue,OverEmp,$C66,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1)),IF(ISNA(VLOOKUP($C66,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG66,MedList,COLUMN(Setup!$C$49),1)","v":364},5824,{"$f":"IF(ISNA(VLOOKUP($C66,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C66,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C66,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C66,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C66,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F66=\"Terminated\",0,IF($AA66=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C66,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA66*12)+(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB66/3,0))*4)+(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB66/6,0))*2)+(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F66=\"Terminated\",0,IF($AA66=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C66,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA66*12)+(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB66/3,0))*4)+(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB66/6,0))*2)+(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F66=\"Terminated\",0,IF($AA66=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C66,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA66*12)+(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB66/3,0))*4)+(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB66/6,0))*2)+(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F66=\"Terminated\",0,IF($AA66=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C66,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA66*12)+(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB66/3,0))*4)+(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB66/6,0))*2)+(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F66=\"Terminated\",0,IF($AA66=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C66,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA66*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F66=\"Terminated\",0,IF($AA66=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C66,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA66*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F66=\"Terminated\",0,IF($AA66=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C66,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA66*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F66=\"Terminated\",0,IF($AA66=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C66,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC66),MONTH($AC66)+1,1),OverEnd,\">=\"&DATE(YEAR($AC66),MONTH($AC66),1))>0,SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA66*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C66)*(PayDate<=$AC66)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA66*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C66,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C66,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL66),($AR66*$AL66)-$AI66-$AK66,MAX(0,IF($AL66=\"B\",IF($AR66<Setup!$C$32,($AR66*Setup!$D$32)-$AI66-$AK66,(($AR66-VLOOKUP($AR66,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR66,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR66,TaxBracket2,1),0,1,1)-$AI66-$AK66),IF($AR66<Setup!$C$21,($AR66*Setup!$D$21)-$AI66-$AK66,(($AR66-VLOOKUP($AR66,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR66,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR66,TaxBracket1,1),0,1,1)-$AI66-$AK66))))","v":0},{"$f":"IF(ISNUMBER($AL66),($AX66*$AL66)-$AI66-$AK66,MAX(0,IF($AL66=\"B\",IF($AX66<Setup!$C$32,($AX66*Setup!$D$32)-$AI66-$AK66,(($AX66-VLOOKUP($AX66,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX66,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX66,TaxBracket2,1),0,1,1)-$AI66-$AK66),IF($AX66<Setup!$C$21,($AX66*Setup!$D$21)-$AI66-$AK66,(($AX66-VLOOKUP($AX66,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX66,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX66,TaxBracket1,1),0,1,1)-$AI66-$AK66))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A67)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B67,\"yyyy\")&TEXT($B67,\"mm\")&\"-\"&$C67)","v":"202307-EXS001"},{"$f":"IF(ROW($A67)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A67)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A67)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A67)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45132},{"$f":"IF(ROW($A67)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A67)-ROW($A$6)-IF(ROW($A67)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A67)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS001"},{"$f":"IF(ISNA(VLOOKUP($C67,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C67,EmpAll,COLUMN(Emp!$B$4),0))","v":"Taylor AE"},{"$f":"IF(ISNA(VLOOKUP($C67,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C67,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C67,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C67,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC67),MONTH($AC67)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C67,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC67),MONTH($AC67),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F67<>\"Active\",0,IF(COUNTIFS(OverEmp,$C67,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMIFS(OverValue,OverEmp,$C67,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1)),IF(AND($AC67>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C67)>0),SUMIFS(EmpIncrease,EmpCode,$C67),SUMIFS(EmpSalary,EmpCode,$C67))))","v":150000},{"$f":"IF($F67<>\"Active\",0,IF(COUNTIFS(OverEmp,$C67,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMIFS(OverValue,OverEmp,$C67,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1)),0))","v":0},{"$f":"IF($F67<>\"Active\",0,IF(COUNTIFS(OverEmp,$C67,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMIFS(OverValue,OverEmp,$C67,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1)),IF(MONTH(B67)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C67),0)))","v":0},{"$f":"IF($F67<>\"Active\",0,IF(COUNTIFS(OverEmp,$C67,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMIFS(OverValue,OverEmp,$C67,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1)),0))","v":0},{"$f":"IF($F67<>\"Active\",0,IF(COUNTIFS(OverEmp,$C67,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMIFS(OverValue,OverEmp,$C67,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1)),0))","v":0},150000,{"$f":"IF(COUNTIFS(OverEmp,$C67,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMIFS(OverValue,OverEmp,$C67,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1)),(($BA67/12*$AA67)+(BB67*IF(1-$BC67=0,0,BD67/(1-$BC67))))-IF($F67=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC67,PayEmp,$C67)))","v":45611.833333333343},{"$f":"IF($F67=\"Terminated\",0,IF($AA67=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C67,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMIFS(OverValue,OverEmp,$C67,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA67)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA67,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67))))))","v":177.12},{"$f":"IF($F67=\"Terminated\",0,IF($AA67=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C67,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMIFS(OverValue,OverEmp,$C67,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA67)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA67,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67))))))","v":11250},{"$f":"IF($F67=\"Terminated\",0,IF($AA67=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C67,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMIFS(OverValue,OverEmp,$C67,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA67)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA67,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67))))))","v":0},{"$f":"IF($F67=\"Terminated\",0,IF($AA67=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C67,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMIFS(OverValue,OverEmp,$C67,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA67)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA67,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67))))))","v":0},57038.953333333346,92961.05,{"$f":"IF($F67=\"Terminated\",0,IF($AA67=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C67,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMIFS(OverValue,OverEmp,$C67,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA67)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA67,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67)))))))","v":177.12},{"$f":"IF($F67=\"Terminated\",0,IF($AA67=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C67,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMIFS(OverValue,OverEmp,$C67,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA67)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA67,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67)))))))","v":1500},{"$f":"IF($F67=\"Terminated\",0,IF($AA67=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C67,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMIFS(OverValue,OverEmp,$C67,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA67)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA67,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67)))))))","v":0},{"$f":"IF($F67=\"Terminated\",0,IF($AA67=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C67,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMIFS(OverValue,OverEmp,$C67,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA67)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA67,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC67,PayEmp,$C67)))))))","v":0},1677.12,151677.12,58716.07,{"$f":"IF(OR($B67<=Setup!$E$12,$B67>=Setup!$D$12+1),0,IF($F67<>\"Active\",0,IF($AE67=\"Yes\",$AB67,((YEAR($AC67)*12)+MONTH($AC67))-((YEAR($AD67)*12)+MONTH($AD67)-1))))","v":5},{"$f":"IF(OR($B67<=Setup!$E$12,$B67>=Setup!$D$12+1),0,((YEAR($AC67)*12)+MONTH($AC67))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":5},45132,{"$f":"IF(ISNA(VLOOKUP($C67,EmpAll,COLUMN(Emp!$E$4),0)),$AC67,IF(VLOOKUP($C67,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C67,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C67,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C67,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C67,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A67=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C67,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMIFS(OverValue,OverEmp,$C67,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1)),IF(ISNA(VLOOKUP($C67,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$N$4),0)))","v":5},{"$f":"VLOOKUP($AG67,MedList,COLUMN(Setup!$C$49),1)","v":1466},17592,{"$f":"IF(ISNA(VLOOKUP($C67,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C67,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C67,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C67,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C67,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1800000,{"$f":"-IF($F67=\"Terminated\",0,IF($AA67=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C67,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA67*12)+(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB67/3,0))*4)+(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB67/6,0))*2)+(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F67=\"Terminated\",0,IF($AA67=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C67,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA67*12)+(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB67/3,0))*4)+(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB67/6,0))*2)+(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F67=\"Terminated\",0,IF($AA67=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C67,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA67*12)+(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB67/3,0))*4)+(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB67/6,0))*2)+(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F67=\"Terminated\",0,IF($AA67=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C67,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA67*12)+(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB67/3,0))*4)+(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB67/6,0))*2)+(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1665000,1800000,{"$f":"-IF($F67=\"Terminated\",0,IF($AA67=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C67,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA67*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F67=\"Terminated\",0,IF($AA67=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C67,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA67*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F67=\"Terminated\",0,IF($AA67=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C67,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA67*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F67=\"Terminated\",0,IF($AA67=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C67,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC67),MONTH($AC67)+1,1),OverEnd,\">=\"&DATE(YEAR($AC67),MONTH($AC67),1))>0,SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA67*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C67)*(PayDate<=$AC67)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA67*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C67,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C67,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1665000,0,{"$f":"IF(ISNUMBER($AL67),($AR67*$AL67)-$AI67-$AK67,MAX(0,IF($AL67=\"B\",IF($AR67<Setup!$C$32,($AR67*Setup!$D$32)-$AI67-$AK67,(($AR67-VLOOKUP($AR67,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR67,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR67,TaxBracket2,1),0,1,1)-$AI67-$AK67),IF($AR67<Setup!$C$21,($AR67*Setup!$D$21)-$AI67-$AK67,(($AR67-VLOOKUP($AR67,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR67,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR67,TaxBracket1,1),0,1,1)-$AI67-$AK67))))","v":547342},{"$f":"IF(ISNUMBER($AL67),($AX67*$AL67)-$AI67-$AK67,MAX(0,IF($AL67=\"B\",IF($AX67<Setup!$C$32,($AX67*Setup!$D$32)-$AI67-$AK67,(($AX67-VLOOKUP($AX67,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX67,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX67,TaxBracket2,1),0,1,1)-$AI67-$AK67),IF($AX67<Setup!$C$21,($AX67*Setup!$D$21)-$AI67-$AK67,(($AX67-VLOOKUP($AX67,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX67,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX67,TaxBracket1,1),0,1,1)-$AI67-$AK67))))","v":547342},0,1,0,1800000]
[{"$f":"IF(ROW($A68)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B68,\"yyyy\")&TEXT($B68,\"mm\")&\"-\"&$C68)","v":"202307-EXS002"},{"$f":"IF(ROW($A68)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A68)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A68)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A68)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45132},{"$f":"IF(ROW($A68)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A68)-ROW($A$6)-IF(ROW($A68)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A68)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS002"},{"$f":"IF(ISNA(VLOOKUP($C68,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C68,EmpAll,COLUMN(Emp!$B$4),0))","v":"Smith F"},{"$f":"IF(ISNA(VLOOKUP($C68,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C68,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C68,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C68,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC68),MONTH($AC68)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C68,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC68),MONTH($AC68),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F68<>\"Active\",0,IF(COUNTIFS(OverEmp,$C68,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMIFS(OverValue,OverEmp,$C68,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1)),IF(AND($AC68>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C68)>0),SUMIFS(EmpIncrease,EmpCode,$C68),SUMIFS(EmpSalary,EmpCode,$C68))))","v":120000},{"$f":"IF($F68<>\"Active\",0,IF(COUNTIFS(OverEmp,$C68,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMIFS(OverValue,OverEmp,$C68,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1)),0))","v":0},{"$f":"IF($F68<>\"Active\",0,IF(COUNTIFS(OverEmp,$C68,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMIFS(OverValue,OverEmp,$C68,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1)),IF(MONTH(B68)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C68),0)))","v":0},{"$f":"IF($F68<>\"Active\",0,IF(COUNTIFS(OverEmp,$C68,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMIFS(OverValue,OverEmp,$C68,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1)),0))","v":0},{"$f":"IF($F68<>\"Active\",0,IF(COUNTIFS(OverEmp,$C68,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMIFS(OverValue,OverEmp,$C68,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1)),0))","v":0},120000,{"$f":"IF(COUNTIFS(OverEmp,$C68,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMIFS(OverValue,OverEmp,$C68,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1)),(($BA68/12*$AA68)+(BB68*IF(1-$BC68=0,0,BD68/(1-$BC68))))-IF($F68=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC68,PayEmp,$C68)))","v":37842.333333333343},{"$f":"IF($F68=\"Terminated\",0,IF($AA68=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C68,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMIFS(OverValue,OverEmp,$C68,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA68)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA68,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68))))))","v":177.12},{"$f":"IF($F68=\"Terminated\",0,IF($AA68=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C68,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMIFS(OverValue,OverEmp,$C68,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA68)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA68,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68))))))","v":0},{"$f":"IF($F68=\"Terminated\",0,IF($AA68=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C68,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMIFS(OverValue,OverEmp,$C68,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA68)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA68,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68))))))","v":0},{"$f":"IF($F68=\"Terminated\",0,IF($AA68=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C68,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMIFS(OverValue,OverEmp,$C68,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA68)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA68,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68))))))","v":0},38019.453333333346,81980.55,{"$f":"IF($F68=\"Terminated\",0,IF($AA68=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C68,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMIFS(OverValue,OverEmp,$C68,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA68)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA68,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68)))))))","v":177.12},{"$f":"IF($F68=\"Terminated\",0,IF($AA68=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C68,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMIFS(OverValue,OverEmp,$C68,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA68)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA68,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68)))))))","v":1200},{"$f":"IF($F68=\"Terminated\",0,IF($AA68=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C68,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMIFS(OverValue,OverEmp,$C68,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA68)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA68,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68)))))))","v":0},{"$f":"IF($F68=\"Terminated\",0,IF($AA68=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C68,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMIFS(OverValue,OverEmp,$C68,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA68)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA68,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC68,PayEmp,$C68)))))))","v":0},1377.12,121377.12,39396.57,{"$f":"IF(OR($B68<=Setup!$E$12,$B68>=Setup!$D$12+1),0,IF($F68<>\"Active\",0,IF($AE68=\"Yes\",$AB68,((YEAR($AC68)*12)+MONTH($AC68))-((YEAR($AD68)*12)+MONTH($AD68)-1))))","v":5},{"$f":"IF(OR($B68<=Setup!$E$12,$B68>=Setup!$D$12+1),0,((YEAR($AC68)*12)+MONTH($AC68))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":5},45132,{"$f":"IF(ISNA(VLOOKUP($C68,EmpAll,COLUMN(Emp!$E$4),0)),$AC68,IF(VLOOKUP($C68,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C68,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C68,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C68,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C68,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A68=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C68,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMIFS(OverValue,OverEmp,$C68,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1)),IF(ISNA(VLOOKUP($C68,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$N$4),0)))","v":3},{"$f":"VLOOKUP($AG68,MedList,COLUMN(Setup!$C$49),1)","v":974},10704,{"$f":"IF(ISNA(VLOOKUP($C68,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C68,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C68,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C68,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C68,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1440000,{"$f":"-IF($F68=\"Terminated\",0,IF($AA68=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C68,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA68*12)+(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB68/3,0))*4)+(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB68/6,0))*2)+(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F68=\"Terminated\",0,IF($AA68=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C68,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA68*12)+(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB68/3,0))*4)+(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB68/6,0))*2)+(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F68=\"Terminated\",0,IF($AA68=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C68,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA68*12)+(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB68/3,0))*4)+(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB68/6,0))*2)+(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F68=\"Terminated\",0,IF($AA68=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C68,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA68*12)+(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB68/3,0))*4)+(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB68/6,0))*2)+(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1440000,1440000,{"$f":"-IF($F68=\"Terminated\",0,IF($AA68=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C68,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA68*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F68=\"Terminated\",0,IF($AA68=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C68,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA68*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F68=\"Terminated\",0,IF($AA68=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C68,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA68*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F68=\"Terminated\",0,IF($AA68=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C68,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC68),MONTH($AC68)+1,1),OverEnd,\">=\"&DATE(YEAR($AC68),MONTH($AC68),1))>0,SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA68*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C68)*(PayDate<=$AC68)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA68*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C68,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C68,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1440000,0,{"$f":"IF(ISNUMBER($AL68),($AR68*$AL68)-$AI68-$AK68,MAX(0,IF($AL68=\"B\",IF($AR68<Setup!$C$32,($AR68*Setup!$D$32)-$AI68-$AK68,(($AR68-VLOOKUP($AR68,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR68,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR68,TaxBracket2,1),0,1,1)-$AI68-$AK68),IF($AR68<Setup!$C$21,($AR68*Setup!$D$21)-$AI68-$AK68,(($AR68-VLOOKUP($AR68,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR68,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR68,TaxBracket1,1),0,1,1)-$AI68-$AK68))))","v":461980},{"$f":"IF(ISNUMBER($AL68),($AX68*$AL68)-$AI68-$AK68,MAX(0,IF($AL68=\"B\",IF($AX68<Setup!$C$32,($AX68*Setup!$D$32)-$AI68-$AK68,(($AX68-VLOOKUP($AX68,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX68,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX68,TaxBracket2,1),0,1,1)-$AI68-$AK68),IF($AX68<Setup!$C$21,($AX68*Setup!$D$21)-$AI68-$AK68,(($AX68-VLOOKUP($AX68,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX68,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX68,TaxBracket1,1),0,1,1)-$AI68-$AK68))))","v":461980},0,1,0,1440000]
[{"$f":"IF(ROW($A69)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B69,\"yyyy\")&TEXT($B69,\"mm\")&\"-\"&$C69)","v":"202307-EXS003"},{"$f":"IF(ROW($A69)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A69)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A69)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A69)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45132},{"$f":"IF(ROW($A69)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A69)-ROW($A$6)-IF(ROW($A69)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A69)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS003"},{"$f":"IF(ISNA(VLOOKUP($C69,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C69,EmpAll,COLUMN(Emp!$B$4),0))","v":"Wilson PG"},{"$f":"IF(ISNA(VLOOKUP($C69,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C69,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C69,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C69,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC69),MONTH($AC69)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C69,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC69),MONTH($AC69),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F69<>\"Active\",0,IF(COUNTIFS(OverEmp,$C69,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMIFS(OverValue,OverEmp,$C69,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1)),IF(AND($AC69>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C69)>0),SUMIFS(EmpIncrease,EmpCode,$C69),SUMIFS(EmpSalary,EmpCode,$C69))))","v":15000},{"$f":"IF($F69<>\"Active\",0,IF(COUNTIFS(OverEmp,$C69,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMIFS(OverValue,OverEmp,$C69,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1)),0))","v":0},{"$f":"IF($F69<>\"Active\",0,IF(COUNTIFS(OverEmp,$C69,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMIFS(OverValue,OverEmp,$C69,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1)),IF(MONTH(B69)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C69),0)))","v":0},{"$f":"IF($F69<>\"Active\",0,IF(COUNTIFS(OverEmp,$C69,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMIFS(OverValue,OverEmp,$C69,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1)),0))","v":0},{"$f":"IF($F69<>\"Active\",0,IF(COUNTIFS(OverEmp,$C69,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMIFS(OverValue,OverEmp,$C69,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1)),0))","v":0},15000,{"$f":"IF(COUNTIFS(OverEmp,$C69,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMIFS(OverValue,OverEmp,$C69,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1)),(($BA69/12*$AA69)+(BB69*IF(1-$BC69=0,0,BD69/(1-$BC69))))-IF($F69=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC69,PayEmp,$C69)))","v":899.75},{"$f":"IF($F69=\"Terminated\",0,IF($AA69=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C69,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMIFS(OverValue,OverEmp,$C69,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA69)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA69,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69))))))","v":150},{"$f":"IF($F69=\"Terminated\",0,IF($AA69=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C69,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMIFS(OverValue,OverEmp,$C69,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA69)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA69,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69))))))","v":0},{"$f":"IF($F69=\"Terminated\",0,IF($AA69=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C69,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMIFS(OverValue,OverEmp,$C69,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA69)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA69,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69))))))","v":0},{"$f":"IF($F69=\"Terminated\",0,IF($AA69=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C69,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMIFS(OverValue,OverEmp,$C69,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA69)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA69,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69))))))","v":0},1049.75,13950.25,{"$f":"IF($F69=\"Terminated\",0,IF($AA69=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C69,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMIFS(OverValue,OverEmp,$C69,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA69)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA69,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69)))))))","v":150},{"$f":"IF($F69=\"Terminated\",0,IF($AA69=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C69,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMIFS(OverValue,OverEmp,$C69,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA69)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA69,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69)))))))","v":150},{"$f":"IF($F69=\"Terminated\",0,IF($AA69=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C69,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMIFS(OverValue,OverEmp,$C69,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA69)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA69,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69)))))))","v":0},{"$f":"IF($F69=\"Terminated\",0,IF($AA69=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C69,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMIFS(OverValue,OverEmp,$C69,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA69)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA69,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC69,PayEmp,$C69)))))))","v":0},{"$f":"SUM(OFFSET($T69,0,0,1,COLUMN($X$6)-COLUMN($T$7)))","v":300},15300,{"$f":"ROUND(SUM(R69,X69),2)","v":1349.75},{"$f":"IF(OR($B69<=Setup!$E$12,$B69>=Setup!$D$12+1),0,IF($F69<>\"Active\",0,IF($AE69=\"Yes\",$AB69,((YEAR($AC69)*12)+MONTH($AC69))-((YEAR($AD69)*12)+MONTH($AD69)-1))))","v":5},{"$f":"IF(OR($B69<=Setup!$E$12,$B69>=Setup!$D$12+1),0,((YEAR($AC69)*12)+MONTH($AC69))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":5},{"$f":"DATE(YEAR($B69),MONTH($B69),DAY($B69))","v":45132},{"$f":"IF(ISNA(VLOOKUP($C69,EmpAll,COLUMN(Emp!$E$4),0)),$AC69,IF(VLOOKUP($C69,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C69,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C69,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C69,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C69,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A69=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C69,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMIFS(OverValue,OverEmp,$C69,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1)),IF(ISNA(VLOOKUP($C69,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG69,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C69,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C69,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($AJ69,RebateList,4,0)),VLOOKUP(\"A\",RebateList,3,0),VLOOKUP($AJ69,RebateList,4,0))","v":17235},{"$f":"IF(ISNA(VLOOKUP($C69,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C69,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C69,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},180000,{"$f":"-IF($F69=\"Terminated\",0,IF($AA69=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C69,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA69*12)+(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB69/3,0))*4)+(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB69/6,0))*2)+(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F69=\"Terminated\",0,IF($AA69=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C69,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA69*12)+(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB69/3,0))*4)+(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB69/6,0))*2)+(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F69=\"Terminated\",0,IF($AA69=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C69,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA69*12)+(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB69/3,0))*4)+(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB69/6,0))*2)+(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F69=\"Terminated\",0,IF($AA69=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C69,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA69*12)+(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB69/3,0))*4)+(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB69/6,0))*2)+(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},{"$f":"$AM69+SUM(OFFSET($AM69,0,1,1,COLUMN($AR$2)-COLUMN($AM$2)-1))","v":180000},180000,{"$f":"-IF($F69=\"Terminated\",0,IF($AA69=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C69,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA69*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F69=\"Terminated\",0,IF($AA69=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C69,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA69*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F69=\"Terminated\",0,IF($AA69=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C69,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA69*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F69=\"Terminated\",0,IF($AA69=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C69,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC69),MONTH($AC69)+1,1),OverEnd,\">=\"&DATE(YEAR($AC69),MONTH($AC69),1))>0,SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA69*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C69)*(PayDate<=$AC69)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA69*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C69,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C69,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,0,{"$f":"IF(ISNUMBER($AL69),($AR69*$AL69)-$AI69-$AK69,MAX(0,IF($AL69=\"B\",IF($AR69<Setup!$C$32,($AR69*Setup!$D$32)-$AI69-$AK69,(($AR69-VLOOKUP($AR69,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR69,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR69,TaxBracket2,1),0,1,1)-$AI69-$AK69),IF($AR69<Setup!$C$21,($AR69*Setup!$D$21)-$AI69-$AK69,(($AR69-VLOOKUP($AR69,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR69,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR69,TaxBracket1,1),0,1,1)-$AI69-$AK69))))","v":10797},{"$f":"IF(ISNUMBER($AL69),($AX69*$AL69)-$AI69-$AK69,MAX(0,IF($AL69=\"B\",IF($AX69<Setup!$C$32,($AX69*Setup!$D$32)-$AI69-$AK69,(($AX69-VLOOKUP($AX69,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX69,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX69,TaxBracket2,1),0,1,1)-$AI69-$AK69),IF($AX69<Setup!$C$21,($AX69*Setup!$D$21)-$AI69-$AK69,(($AX69-VLOOKUP($AX69,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX69,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX69,TaxBracket1,1),0,1,1)-$AI69-$AK69))))","v":10797},{"$f":"AZ69-BA69","v":0},1,0,180000]
[{"$f":"IF(ROW($A70)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B70,\"yyyy\")&TEXT($B70,\"mm\")&\"-\"&$C70)","v":"202307-EXS004"},{"$f":"IF(ROW($A70)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A70)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A70)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A70)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45132},{"$f":"IF(ROW($A70)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A70)-ROW($A$6)-IF(ROW($A70)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A70)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS004"},{"$f":"IF(ISNA(VLOOKUP($C70,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C70,EmpAll,COLUMN(Emp!$B$4),0))","v":"Osborne S"},{"$f":"IF(ISNA(VLOOKUP($C70,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C70,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C70,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C70,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC70),MONTH($AC70)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C70,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC70),MONTH($AC70),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F70<>\"Active\",0,IF(COUNTIFS(OverEmp,$C70,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMIFS(OverValue,OverEmp,$C70,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1)),IF(AND($AC70>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C70)>0),SUMIFS(EmpIncrease,EmpCode,$C70),SUMIFS(EmpSalary,EmpCode,$C70))))","v":15000},{"$f":"IF($F70<>\"Active\",0,IF(COUNTIFS(OverEmp,$C70,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMIFS(OverValue,OverEmp,$C70,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1)),0))","v":0},{"$f":"IF($F70<>\"Active\",0,IF(COUNTIFS(OverEmp,$C70,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMIFS(OverValue,OverEmp,$C70,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1)),IF(MONTH(B70)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C70),0)))","v":0},{"$f":"IF($F70<>\"Active\",0,IF(COUNTIFS(OverEmp,$C70,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMIFS(OverValue,OverEmp,$C70,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1)),0))","v":0},{"$f":"IF($F70<>\"Active\",0,IF(COUNTIFS(OverEmp,$C70,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMIFS(OverValue,OverEmp,$C70,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1)),0))","v":0},15000,{"$f":"IF(COUNTIFS(OverEmp,$C70,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMIFS(OverValue,OverEmp,$C70,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1)),(($BA70/12*$AA70)+(BB70*IF(1-$BC70=0,0,BD70/(1-$BC70))))-IF($F70=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC70,PayEmp,$C70)))","v":899.75},{"$f":"IF($F70=\"Terminated\",0,IF($AA70=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C70,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMIFS(OverValue,OverEmp,$C70,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA70)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA70,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70))))))","v":150},{"$f":"IF($F70=\"Terminated\",0,IF($AA70=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C70,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMIFS(OverValue,OverEmp,$C70,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA70)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA70,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70))))))","v":0},{"$f":"IF($F70=\"Terminated\",0,IF($AA70=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C70,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMIFS(OverValue,OverEmp,$C70,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA70)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA70,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70))))))","v":500},{"$f":"IF($F70=\"Terminated\",0,IF($AA70=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C70,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMIFS(OverValue,OverEmp,$C70,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA70)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA70,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70))))))","v":0},1549.75,13450.25,{"$f":"IF($F70=\"Terminated\",0,IF($AA70=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C70,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMIFS(OverValue,OverEmp,$C70,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA70)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA70,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70)))))))","v":150},{"$f":"IF($F70=\"Terminated\",0,IF($AA70=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C70,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMIFS(OverValue,OverEmp,$C70,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA70)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA70,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70)))))))","v":150},{"$f":"IF($F70=\"Terminated\",0,IF($AA70=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C70,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMIFS(OverValue,OverEmp,$C70,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA70)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA70,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70)))))))","v":0},{"$f":"IF($F70=\"Terminated\",0,IF($AA70=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C70,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMIFS(OverValue,OverEmp,$C70,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA70)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA70,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC70,PayEmp,$C70)))))))","v":0},300,15300,1849.75,{"$f":"IF(OR($B70<=Setup!$E$12,$B70>=Setup!$D$12+1),0,IF($F70<>\"Active\",0,IF($AE70=\"Yes\",$AB70,((YEAR($AC70)*12)+MONTH($AC70))-((YEAR($AD70)*12)+MONTH($AD70)-1))))","v":5},{"$f":"IF(OR($B70<=Setup!$E$12,$B70>=Setup!$D$12+1),0,((YEAR($AC70)*12)+MONTH($AC70))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":5},45132,{"$f":"IF(ISNA(VLOOKUP($C70,EmpAll,COLUMN(Emp!$E$4),0)),$AC70,IF(VLOOKUP($C70,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C70,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C70,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C70,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C70,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A70=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C70,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMIFS(OverValue,OverEmp,$C70,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1)),IF(ISNA(VLOOKUP($C70,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG70,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C70,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C70,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C70,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C70,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C70,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},183600,{"$f":"-IF($F70=\"Terminated\",0,IF($AA70=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C70,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA70*12)+(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB70/3,0))*4)+(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB70/6,0))*2)+(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F70=\"Terminated\",0,IF($AA70=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C70,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA70*12)+(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB70/3,0))*4)+(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB70/6,0))*2)+(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F70=\"Terminated\",0,IF($AA70=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C70,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA70*12)+(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB70/3,0))*4)+(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB70/6,0))*2)+(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F70=\"Terminated\",0,IF($AA70=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C70,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA70*12)+(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB70/3,0))*4)+(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB70/6,0))*2)+(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},183600,180000,{"$f":"-IF($F70=\"Terminated\",0,IF($AA70=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C70,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA70*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F70=\"Terminated\",0,IF($AA70=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C70,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA70*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F70=\"Terminated\",0,IF($AA70=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C70,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA70*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F70=\"Terminated\",0,IF($AA70=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C70,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC70),MONTH($AC70)+1,1),OverEnd,\">=\"&DATE(YEAR($AC70),MONTH($AC70),1))>0,SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA70*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C70)*(PayDate<=$AC70)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA70*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C70,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C70,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,3600,{"$f":"IF(ISNUMBER($AL70),($AR70*$AL70)-$AI70-$AK70,MAX(0,IF($AL70=\"B\",IF($AR70<Setup!$C$32,($AR70*Setup!$D$32)-$AI70-$AK70,(($AR70-VLOOKUP($AR70,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR70,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR70,TaxBracket2,1),0,1,1)-$AI70-$AK70),IF($AR70<Setup!$C$21,($AR70*Setup!$D$21)-$AI70-$AK70,(($AR70-VLOOKUP($AR70,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR70,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR70,TaxBracket1,1),0,1,1)-$AI70-$AK70))))","v":11445},{"$f":"IF(ISNUMBER($AL70),($AX70*$AL70)-$AI70-$AK70,MAX(0,IF($AL70=\"B\",IF($AX70<Setup!$C$32,($AX70*Setup!$D$32)-$AI70-$AK70,(($AX70-VLOOKUP($AX70,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX70,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX70,TaxBracket2,1),0,1,1)-$AI70-$AK70),IF($AX70<Setup!$C$21,($AX70*Setup!$D$21)-$AI70-$AK70,(($AX70-VLOOKUP($AX70,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX70,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX70,TaxBracket1,1),0,1,1)-$AI70-$AK70))))","v":10797},648,0.98039215686274506,1.9607843137254902E-2,183600]
[{"$f":"IF(ROW($A71)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B71,\"yyyy\")&TEXT($B71,\"mm\")&\"-\"&$C71)","v":"202307-EXS005"},{"$f":"IF(ROW($A71)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A71)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A71)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A71)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45132},{"$f":"IF(ROW($A71)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A71)-ROW($A$6)-IF(ROW($A71)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A71)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS005"},{"$f":"IF(ISNA(VLOOKUP($C71,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C71,EmpAll,COLUMN(Emp!$B$4),0))","v":"Miller R"},{"$f":"IF(ISNA(VLOOKUP($C71,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C71,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C71,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C71,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC71),MONTH($AC71)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C71,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC71),MONTH($AC71),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F71<>\"Active\",0,IF(COUNTIFS(OverEmp,$C71,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMIFS(OverValue,OverEmp,$C71,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1)),IF(AND($AC71>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C71)>0),SUMIFS(EmpIncrease,EmpCode,$C71),SUMIFS(EmpSalary,EmpCode,$C71))))","v":10000},{"$f":"IF($F71<>\"Active\",0,IF(COUNTIFS(OverEmp,$C71,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMIFS(OverValue,OverEmp,$C71,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1)),0))","v":0},{"$f":"IF($F71<>\"Active\",0,IF(COUNTIFS(OverEmp,$C71,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMIFS(OverValue,OverEmp,$C71,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1)),IF(MONTH(B71)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C71),0)))","v":0},{"$f":"IF($F71<>\"Active\",0,IF(COUNTIFS(OverEmp,$C71,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMIFS(OverValue,OverEmp,$C71,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1)),0))","v":0},{"$f":"IF($F71<>\"Active\",0,IF(COUNTIFS(OverEmp,$C71,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMIFS(OverValue,OverEmp,$C71,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1)),0))","v":0},{"$f":"IF($AA71=0,0,SUM(OFFSET($G71,0,0,1,COLUMN($L$6)-COLUMN($G$6))))","v":10000},{"$f":"IF(COUNTIFS(OverEmp,$C71,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMIFS(OverValue,OverEmp,$C71,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1)),(($BA71/12*$AA71)+(BB71*IF(1-$BC71=0,0,BD71/(1-$BC71))))-IF($F71=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC71,PayEmp,$C71)))","v":0},{"$f":"IF($F71=\"Terminated\",0,IF($AA71=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C71,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMIFS(OverValue,OverEmp,$C71,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA71)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA71,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71))))))","v":100},{"$f":"IF($F71=\"Terminated\",0,IF($AA71=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C71,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMIFS(OverValue,OverEmp,$C71,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA71)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA71,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71))))))","v":0},{"$f":"IF($F71=\"Terminated\",0,IF($AA71=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C71,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMIFS(OverValue,OverEmp,$C71,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA71)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA71,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71))))))","v":0},{"$f":"IF($F71=\"Terminated\",0,IF($AA71=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C71,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMIFS(OverValue,OverEmp,$C71,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA71)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA71,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71))))))","v":0},{"$f":"SUM(OFFSET(M71,0,0,1,COLUMN($R$6)-COLUMN($M$6)))","v":100},{"$f":"ROUND(SUM(L71,-R71),2)","v":9900},{"$f":"IF($F71=\"Terminated\",0,IF($AA71=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C71,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMIFS(OverValue,OverEmp,$C71,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA71)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA71,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71)))))))","v":100},{"$f":"IF($F71=\"Terminated\",0,IF($AA71=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C71,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMIFS(OverValue,OverEmp,$C71,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA71)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA71,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71)))))))","v":100},{"$f":"IF($F71=\"Terminated\",0,IF($AA71=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C71,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMIFS(OverValue,OverEmp,$C71,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA71)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA71,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71)))))))","v":0},{"$f":"IF($F71=\"Terminated\",0,IF($AA71=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C71,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMIFS(OverValue,OverEmp,$C71,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA71)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA71,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC71,PayEmp,$C71)))))))","v":0},200,{"$f":"L71+X71","v":10200},300,{"$f":"IF(OR($B71<=Setup!$E$12,$B71>=Setup!$D$12+1),0,IF($F71<>\"Active\",0,IF($AE71=\"Yes\",$AB71,((YEAR($AC71)*12)+MONTH($AC71))-((YEAR($AD71)*12)+MONTH($AD71)-1))))","v":5},{"$f":"IF(OR($B71<=Setup!$E$12,$B71>=Setup!$D$12+1),0,((YEAR($AC71)*12)+MONTH($AC71))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":5},45132,{"$f":"IF(ISNA(VLOOKUP($C71,EmpAll,COLUMN(Emp!$E$4),0)),$AC71,IF(VLOOKUP($C71,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C71,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C71,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C71,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C71,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A71=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C71,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMIFS(OverValue,OverEmp,$C71,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1)),IF(ISNA(VLOOKUP($C71,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG71,MedList,COLUMN(Setup!$C$49),1)","v":364},{"$f":"SUMIFS(PayMedDeduct,PayDate,\"<\"&$AC71,PayEmp,$C71)+$AH71+($AH71*(12-$AA71))","v":4368},{"$f":"IF(ISNA(VLOOKUP($C71,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C71,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C71,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C71,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C71,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},{"$f":"IF($AA71=0,0,((SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(PayEarnType=\"Monthly\")*(PayEarnTax)*(PayEarnValues))/$AA71*12)+(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(PayEarnType=\"Quarterly\")*(PayEarnTax)*(PayEarnValues))/MAX(1,ROUNDDOWN($AB71/3,0))*4)+(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(PayEarnType=\"Bi-Annual\")*(PayEarnTax)*(PayEarnValues))/MAX(1,ROUNDDOWN($AB71/6,0))*2)+(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(PayEarnType=\"Annual\")*(PayEarnTax)*(PayEarnValues)))))","v":120000},{"$f":"-IF($F71=\"Terminated\",0,IF($AA71=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C71,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA71*12)+(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB71/3,0))*4)+(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB71/6,0))*2)+(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F71=\"Terminated\",0,IF($AA71=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C71,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA71*12)+(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB71/3,0))*4)+(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB71/6,0))*2)+(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F71=\"Terminated\",0,IF($AA71=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C71,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA71*12)+(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB71/3,0))*4)+(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB71/6,0))*2)+(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F71=\"Terminated\",0,IF($AA71=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C71,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA71*12)+(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB71/3,0))*4)+(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB71/6,0))*2)+(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},120000,{"$f":"IF($AA71=0,0,(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(PayEarnType=\"Monthly\")*(PayEarnTax)*(PayEarnValues))/$AA71*12))","v":120000},{"$f":"-IF($F71=\"Terminated\",0,IF($AA71=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C71,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA71*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F71=\"Terminated\",0,IF($AA71=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C71,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA71*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F71=\"Terminated\",0,IF($AA71=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C71,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA71*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F71=\"Terminated\",0,IF($AA71=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C71,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC71),MONTH($AC71)+1,1),OverEnd,\">=\"&DATE(YEAR($AC71),MONTH($AC71),1))>0,SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA71*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA71*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C71,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C71,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},{"$f":"$AS71+SUM(OFFSET($AT71,0,0,1,COLUMN($AX$2)-COLUMN($AT$2)))","v":120000},{"$f":"AR71-AX71","v":0},{"$f":"IF(ISNUMBER($AL71),($AR71*$AL71)-$AI71-$AK71,MAX(0,IF($AL71=\"B\",IF($AR71<Setup!$C$32,($AR71*Setup!$D$32)-$AI71-$AK71,(($AR71-VLOOKUP($AR71,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR71,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR71,TaxBracket2,1),0,1,1)-$AI71-$AK71),IF($AR71<Setup!$C$21,($AR71*Setup!$D$21)-$AI71-$AK71,(($AR71-VLOOKUP($AR71,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR71,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR71,TaxBracket1,1),0,1,1)-$AI71-$AK71))))","v":0},{"$f":"IF(ISNUMBER($AL71),($AX71*$AL71)-$AI71-$AK71,MAX(0,IF($AL71=\"B\",IF($AX71<Setup!$C$32,($AX71*Setup!$D$32)-$AI71-$AK71,(($AX71-VLOOKUP($AX71,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX71,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX71,TaxBracket2,1),0,1,1)-$AI71-$AK71),IF($AX71<Setup!$C$21,($AX71*Setup!$D$21)-$AI71-$AK71,(($AX71-VLOOKUP($AX71,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX71,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX71,TaxBracket1,1),0,1,1)-$AI71-$AK71))))","v":0},0,{"$f":"IF($AA71=0,0,IF($BE71=0,0,(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA71*12)/$BE71))","v":1},{"$f":"IF($BE71=0,0,(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnType=\"Annual\")*(PayEarnValues)))/$BE71)","v":0},{"$f":"IF($AA71=0,0,((SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA71*12)+(SUMPRODUCT((PayEmp=$C71)*(PayDate<=$AC71)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnType=\"Annual\")*(PayEarnValues)))))","v":120000}]
[{"$f":"IF(ROW($A72)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B72,\"yyyy\")&TEXT($B72,\"mm\")&\"-\"&$C72)","v":"202307-EXS006"},{"$f":"IF(ROW($A72)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A72)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A72)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A72)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45132},{"$f":"IF(ROW($A72)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A72)-ROW($A$6)-IF(ROW($A72)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A72)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS006"},{"$f":"IF(ISNA(VLOOKUP($C72,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C72,EmpAll,COLUMN(Emp!$B$4),0))","v":"Andrews MS"},{"$f":"IF(ISNA(VLOOKUP($C72,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C72,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C72,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C72,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC72),MONTH($AC72)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C72,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC72),MONTH($AC72),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F72<>\"Active\",0,IF(COUNTIFS(OverEmp,$C72,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMIFS(OverValue,OverEmp,$C72,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1)),IF(AND($AC72>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C72)>0),SUMIFS(EmpIncrease,EmpCode,$C72),SUMIFS(EmpSalary,EmpCode,$C72))))","v":10000},{"$f":"IF($F72<>\"Active\",0,IF(COUNTIFS(OverEmp,$C72,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMIFS(OverValue,OverEmp,$C72,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1)),0))","v":0},{"$f":"IF($F72<>\"Active\",0,IF(COUNTIFS(OverEmp,$C72,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMIFS(OverValue,OverEmp,$C72,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1)),IF(MONTH(B72)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C72),0)))","v":0},{"$f":"IF($F72<>\"Active\",0,IF(COUNTIFS(OverEmp,$C72,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMIFS(OverValue,OverEmp,$C72,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1)),0))","v":0},{"$f":"IF($F72<>\"Active\",0,IF(COUNTIFS(OverEmp,$C72,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMIFS(OverValue,OverEmp,$C72,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C72,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMIFS(OverValue,OverEmp,$C72,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1)),(($BA72/12*$AA72)+(BB72*IF(1-$BC72=0,0,BD72/(1-$BC72))))-IF($F72=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC72,PayEmp,$C72)))","v":0},{"$f":"IF($F72=\"Terminated\",0,IF($AA72=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C72,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMIFS(OverValue,OverEmp,$C72,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA72)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA72,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72))))))","v":100},{"$f":"IF($F72=\"Terminated\",0,IF($AA72=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C72,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMIFS(OverValue,OverEmp,$C72,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA72)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA72,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72))))))","v":0},{"$f":"IF($F72=\"Terminated\",0,IF($AA72=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C72,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMIFS(OverValue,OverEmp,$C72,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA72)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA72,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72))))))","v":0},{"$f":"IF($F72=\"Terminated\",0,IF($AA72=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C72,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMIFS(OverValue,OverEmp,$C72,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA72)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA72,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72))))))","v":0},100,9900,{"$f":"IF($F72=\"Terminated\",0,IF($AA72=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C72,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMIFS(OverValue,OverEmp,$C72,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA72)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA72,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72)))))))","v":100},{"$f":"IF($F72=\"Terminated\",0,IF($AA72=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C72,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMIFS(OverValue,OverEmp,$C72,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA72)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA72,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72)))))))","v":100},{"$f":"IF($F72=\"Terminated\",0,IF($AA72=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C72,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMIFS(OverValue,OverEmp,$C72,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA72)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA72,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72)))))))","v":0},{"$f":"IF($F72=\"Terminated\",0,IF($AA72=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C72,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMIFS(OverValue,OverEmp,$C72,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA72)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA72,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC72,PayEmp,$C72)))))))","v":0},200,10200,300,{"$f":"IF(OR($B72<=Setup!$E$12,$B72>=Setup!$D$12+1),0,IF($F72<>\"Active\",0,IF($AE72=\"Yes\",$AB72,((YEAR($AC72)*12)+MONTH($AC72))-((YEAR($AD72)*12)+MONTH($AD72)-1))))","v":5},{"$f":"IF(OR($B72<=Setup!$E$12,$B72>=Setup!$D$12+1),0,((YEAR($AC72)*12)+MONTH($AC72))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":5},45132,{"$f":"IF(ISNA(VLOOKUP($C72,EmpAll,COLUMN(Emp!$E$4),0)),$AC72,IF(VLOOKUP($C72,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C72,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C72,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C72,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C72,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A72=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C72,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMIFS(OverValue,OverEmp,$C72,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1)),IF(ISNA(VLOOKUP($C72,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG72,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C72,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C72,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C72,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C72,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C72,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},120000,{"$f":"-IF($F72=\"Terminated\",0,IF($AA72=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C72,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA72*12)+(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB72/3,0))*4)+(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB72/6,0))*2)+(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F72=\"Terminated\",0,IF($AA72=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C72,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA72*12)+(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB72/3,0))*4)+(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB72/6,0))*2)+(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F72=\"Terminated\",0,IF($AA72=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C72,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA72*12)+(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB72/3,0))*4)+(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB72/6,0))*2)+(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F72=\"Terminated\",0,IF($AA72=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C72,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA72*12)+(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB72/3,0))*4)+(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB72/6,0))*2)+(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},120000,120000,{"$f":"-IF($F72=\"Terminated\",0,IF($AA72=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C72,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA72*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F72=\"Terminated\",0,IF($AA72=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C72,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA72*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F72=\"Terminated\",0,IF($AA72=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C72,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA72*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F72=\"Terminated\",0,IF($AA72=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C72,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC72),MONTH($AC72)+1,1),OverEnd,\">=\"&DATE(YEAR($AC72),MONTH($AC72),1))>0,SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA72*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C72)*(PayDate<=$AC72)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA72*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C72,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C72,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,0,{"$f":"IF(ISNUMBER($AL72),($AR72*$AL72)-$AI72-$AK72,MAX(0,IF($AL72=\"B\",IF($AR72<Setup!$C$32,($AR72*Setup!$D$32)-$AI72-$AK72,(($AR72-VLOOKUP($AR72,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR72,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR72,TaxBracket2,1),0,1,1)-$AI72-$AK72),IF($AR72<Setup!$C$21,($AR72*Setup!$D$21)-$AI72-$AK72,(($AR72-VLOOKUP($AR72,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR72,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR72,TaxBracket1,1),0,1,1)-$AI72-$AK72))))","v":0},{"$f":"IF(ISNUMBER($AL72),($AX72*$AL72)-$AI72-$AK72,MAX(0,IF($AL72=\"B\",IF($AX72<Setup!$C$32,($AX72*Setup!$D$32)-$AI72-$AK72,(($AX72-VLOOKUP($AX72,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX72,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX72,TaxBracket2,1),0,1,1)-$AI72-$AK72),IF($AX72<Setup!$C$21,($AX72*Setup!$D$21)-$AI72-$AK72,(($AX72-VLOOKUP($AX72,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX72,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX72,TaxBracket1,1),0,1,1)-$AI72-$AK72))))","v":0},0,1,0,120000]
[{"$f":"IF(ROW($A73)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B73,\"yyyy\")&TEXT($B73,\"mm\")&\"-\"&$C73)","v":"202307-EXS007"},{"$f":"IF(ROW($A73)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A73)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A73)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A73)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45132},{"$f":"IF(ROW($A73)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A73)-ROW($A$6)-IF(ROW($A73)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A73)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS007"},{"$f":"IF(ISNA(VLOOKUP($C73,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C73,EmpAll,COLUMN(Emp!$B$4),0))","v":"Phillips KE"},{"$f":"IF(ISNA(VLOOKUP($C73,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C73,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C73,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C73,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC73),MONTH($AC73)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C73,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC73),MONTH($AC73),0)),\"Terminated\",\"Active\")))","v":"Terminated"},{"$f":"IF($F73<>\"Active\",0,IF(COUNTIFS(OverEmp,$C73,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMIFS(OverValue,OverEmp,$C73,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1)),IF(AND($AC73>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C73)>0),SUMIFS(EmpIncrease,EmpCode,$C73),SUMIFS(EmpSalary,EmpCode,$C73))))","v":0},{"$f":"IF($F73<>\"Active\",0,IF(COUNTIFS(OverEmp,$C73,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMIFS(OverValue,OverEmp,$C73,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1)),0))","v":0},{"$f":"IF($F73<>\"Active\",0,IF(COUNTIFS(OverEmp,$C73,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMIFS(OverValue,OverEmp,$C73,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1)),IF(MONTH(B73)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C73),0)))","v":0},{"$f":"IF($F73<>\"Active\",0,IF(COUNTIFS(OverEmp,$C73,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMIFS(OverValue,OverEmp,$C73,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1)),0))","v":0},{"$f":"IF($F73<>\"Active\",0,IF(COUNTIFS(OverEmp,$C73,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMIFS(OverValue,OverEmp,$C73,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C73,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMIFS(OverValue,OverEmp,$C73,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1)),(($BA73/12*$AA73)+(BB73*IF(1-$BC73=0,0,BD73/(1-$BC73))))-IF($F73=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC73,PayEmp,$C73)))","v":0},{"$f":"IF($F73=\"Terminated\",0,IF($AA73=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C73,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMIFS(OverValue,OverEmp,$C73,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA73)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA73,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73))))))","v":0},{"$f":"IF($F73=\"Terminated\",0,IF($AA73=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C73,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMIFS(OverValue,OverEmp,$C73,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA73)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA73,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73))))))","v":0},{"$f":"IF($F73=\"Terminated\",0,IF($AA73=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C73,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMIFS(OverValue,OverEmp,$C73,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA73)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA73,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73))))))","v":0},{"$f":"IF($F73=\"Terminated\",0,IF($AA73=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C73,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMIFS(OverValue,OverEmp,$C73,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA73)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA73,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73))))))","v":0},0,0,{"$f":"IF($F73=\"Terminated\",0,IF($AA73=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C73,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMIFS(OverValue,OverEmp,$C73,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA73)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA73,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73)))))))","v":0},{"$f":"IF($F73=\"Terminated\",0,IF($AA73=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C73,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMIFS(OverValue,OverEmp,$C73,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA73)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA73,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73)))))))","v":0},{"$f":"IF($F73=\"Terminated\",0,IF($AA73=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C73,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMIFS(OverValue,OverEmp,$C73,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA73)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA73,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73)))))))","v":0},{"$f":"IF($F73=\"Terminated\",0,IF($AA73=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C73,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMIFS(OverValue,OverEmp,$C73,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA73)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA73,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC73,PayEmp,$C73)))))))","v":0},0,0,0,{"$f":"IF(OR($B73<=Setup!$E$12,$B73>=Setup!$D$12+1),0,IF($F73<>\"Active\",0,IF($AE73=\"Yes\",$AB73,((YEAR($AC73)*12)+MONTH($AC73))-((YEAR($AD73)*12)+MONTH($AD73)-1))))","v":0},{"$f":"IF(OR($B73<=Setup!$E$12,$B73>=Setup!$D$12+1),0,((YEAR($AC73)*12)+MONTH($AC73))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":5},45132,{"$f":"IF(ISNA(VLOOKUP($C73,EmpAll,COLUMN(Emp!$E$4),0)),$AC73,IF(VLOOKUP($C73,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C73,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C73,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C73,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C73,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A73=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C73,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMIFS(OverValue,OverEmp,$C73,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1)),IF(ISNA(VLOOKUP($C73,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG73,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C73,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C73,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C73,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C73,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C73,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F73=\"Terminated\",0,IF($AA73=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C73,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA73*12)+(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB73/3,0))*4)+(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB73/6,0))*2)+(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F73=\"Terminated\",0,IF($AA73=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C73,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA73*12)+(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB73/3,0))*4)+(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB73/6,0))*2)+(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F73=\"Terminated\",0,IF($AA73=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C73,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA73*12)+(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB73/3,0))*4)+(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB73/6,0))*2)+(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F73=\"Terminated\",0,IF($AA73=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C73,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA73*12)+(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB73/3,0))*4)+(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB73/6,0))*2)+(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F73=\"Terminated\",0,IF($AA73=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C73,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA73*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F73=\"Terminated\",0,IF($AA73=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C73,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA73*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F73=\"Terminated\",0,IF($AA73=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C73,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA73*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F73=\"Terminated\",0,IF($AA73=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C73,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC73),MONTH($AC73)+1,1),OverEnd,\">=\"&DATE(YEAR($AC73),MONTH($AC73),1))>0,SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA73*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C73)*(PayDate<=$AC73)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA73*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C73,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C73,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL73),($AR73*$AL73)-$AI73-$AK73,MAX(0,IF($AL73=\"B\",IF($AR73<Setup!$C$32,($AR73*Setup!$D$32)-$AI73-$AK73,(($AR73-VLOOKUP($AR73,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR73,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR73,TaxBracket2,1),0,1,1)-$AI73-$AK73),IF($AR73<Setup!$C$21,($AR73*Setup!$D$21)-$AI73-$AK73,(($AR73-VLOOKUP($AR73,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR73,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR73,TaxBracket1,1),0,1,1)-$AI73-$AK73))))","v":0},{"$f":"IF(ISNUMBER($AL73),($AX73*$AL73)-$AI73-$AK73,MAX(0,IF($AL73=\"B\",IF($AX73<Setup!$C$32,($AX73*Setup!$D$32)-$AI73-$AK73,(($AX73-VLOOKUP($AX73,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX73,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX73,TaxBracket2,1),0,1,1)-$AI73-$AK73),IF($AX73<Setup!$C$21,($AX73*Setup!$D$21)-$AI73-$AK73,(($AX73-VLOOKUP($AX73,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX73,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX73,TaxBracket1,1),0,1,1)-$AI73-$AK73))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A74)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B74,\"yyyy\")&TEXT($B74,\"mm\")&\"-\"&$C74)","v":"202307-EXS008"},{"$f":"IF(ROW($A74)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A74)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A74)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A74)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45132},{"$f":"IF(ROW($A74)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A74)-ROW($A$6)-IF(ROW($A74)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A74)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS008"},{"$f":"IF(ISNA(VLOOKUP($C74,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C74,EmpAll,COLUMN(Emp!$B$4),0))","v":"Matthews B"},{"$f":"IF(ISNA(VLOOKUP($C74,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C74,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C74,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C74,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC74),MONTH($AC74)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C74,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC74),MONTH($AC74),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F74<>\"Active\",0,IF(COUNTIFS(OverEmp,$C74,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMIFS(OverValue,OverEmp,$C74,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1)),IF(AND($AC74>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C74)>0),SUMIFS(EmpIncrease,EmpCode,$C74),SUMIFS(EmpSalary,EmpCode,$C74))))","v":9000},{"$f":"IF($F74<>\"Active\",0,IF(COUNTIFS(OverEmp,$C74,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMIFS(OverValue,OverEmp,$C74,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1)),0))","v":0},{"$f":"IF($F74<>\"Active\",0,IF(COUNTIFS(OverEmp,$C74,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMIFS(OverValue,OverEmp,$C74,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1)),IF(MONTH(B74)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C74),0)))","v":0},{"$f":"IF($F74<>\"Active\",0,IF(COUNTIFS(OverEmp,$C74,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMIFS(OverValue,OverEmp,$C74,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1)),0))","v":0},{"$f":"IF($F74<>\"Active\",0,IF(COUNTIFS(OverEmp,$C74,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMIFS(OverValue,OverEmp,$C74,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C74,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMIFS(OverValue,OverEmp,$C74,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1)),(($BA74/12*$AA74)+(BB74*IF(1-$BC74=0,0,BD74/(1-$BC74))))-IF($F74=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC74,PayEmp,$C74)))","v":183.75},{"$f":"IF($F74=\"Terminated\",0,IF($AA74=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C74,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMIFS(OverValue,OverEmp,$C74,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA74)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA74,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74))))))","v":90},{"$f":"IF($F74=\"Terminated\",0,IF($AA74=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C74,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMIFS(OverValue,OverEmp,$C74,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA74)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA74,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74))))))","v":0},{"$f":"IF($F74=\"Terminated\",0,IF($AA74=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C74,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMIFS(OverValue,OverEmp,$C74,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA74)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA74,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74))))))","v":0},{"$f":"IF($F74=\"Terminated\",0,IF($AA74=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C74,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMIFS(OverValue,OverEmp,$C74,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA74)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA74,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74))))))","v":0},273.75,8726.25,{"$f":"IF($F74=\"Terminated\",0,IF($AA74=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C74,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMIFS(OverValue,OverEmp,$C74,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA74)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA74,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74)))))))","v":90},{"$f":"IF($F74=\"Terminated\",0,IF($AA74=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C74,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMIFS(OverValue,OverEmp,$C74,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA74)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA74,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74)))))))","v":90},{"$f":"IF($F74=\"Terminated\",0,IF($AA74=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C74,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMIFS(OverValue,OverEmp,$C74,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA74)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA74,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74)))))))","v":0},{"$f":"IF($F74=\"Terminated\",0,IF($AA74=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C74,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMIFS(OverValue,OverEmp,$C74,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA74)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA74,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC74,PayEmp,$C74)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B74<=Setup!$E$12,$B74>=Setup!$D$12+1),0,IF($F74<>\"Active\",0,IF($AE74=\"Yes\",$AB74,((YEAR($AC74)*12)+MONTH($AC74))-((YEAR($AD74)*12)+MONTH($AD74)-1))))","v":5},{"$f":"IF(OR($B74<=Setup!$E$12,$B74>=Setup!$D$12+1),0,((YEAR($AC74)*12)+MONTH($AC74))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":5},45132,{"$f":"IF(ISNA(VLOOKUP($C74,EmpAll,COLUMN(Emp!$E$4),0)),$AC74,IF(VLOOKUP($C74,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C74,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C74,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C74,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C74,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A74=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C74,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMIFS(OverValue,OverEmp,$C74,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1)),IF(ISNA(VLOOKUP($C74,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG74,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C74,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C74,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C74,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C74,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C74,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F74=\"Terminated\",0,IF($AA74=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C74,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA74*12)+(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB74/3,0))*4)+(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB74/6,0))*2)+(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F74=\"Terminated\",0,IF($AA74=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C74,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA74*12)+(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB74/3,0))*4)+(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB74/6,0))*2)+(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F74=\"Terminated\",0,IF($AA74=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C74,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA74*12)+(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB74/3,0))*4)+(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB74/6,0))*2)+(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F74=\"Terminated\",0,IF($AA74=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C74,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA74*12)+(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB74/3,0))*4)+(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB74/6,0))*2)+(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F74=\"Terminated\",0,IF($AA74=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C74,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA74*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F74=\"Terminated\",0,IF($AA74=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C74,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA74*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F74=\"Terminated\",0,IF($AA74=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C74,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA74*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F74=\"Terminated\",0,IF($AA74=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C74,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC74),MONTH($AC74)+1,1),OverEnd,\">=\"&DATE(YEAR($AC74),MONTH($AC74),1))>0,SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA74*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C74)*(PayDate<=$AC74)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA74*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C74,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C74,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL74),($AR74*$AL74)-$AI74-$AK74,MAX(0,IF($AL74=\"B\",IF($AR74<Setup!$C$32,($AR74*Setup!$D$32)-$AI74-$AK74,(($AR74-VLOOKUP($AR74,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR74,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR74,TaxBracket2,1),0,1,1)-$AI74-$AK74),IF($AR74<Setup!$C$21,($AR74*Setup!$D$21)-$AI74-$AK74,(($AR74-VLOOKUP($AR74,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR74,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR74,TaxBracket1,1),0,1,1)-$AI74-$AK74))))","v":2205},{"$f":"IF(ISNUMBER($AL74),($AX74*$AL74)-$AI74-$AK74,MAX(0,IF($AL74=\"B\",IF($AX74<Setup!$C$32,($AX74*Setup!$D$32)-$AI74-$AK74,(($AX74-VLOOKUP($AX74,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX74,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX74,TaxBracket2,1),0,1,1)-$AI74-$AK74),IF($AX74<Setup!$C$21,($AX74*Setup!$D$21)-$AI74-$AK74,(($AX74-VLOOKUP($AX74,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX74,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX74,TaxBracket1,1),0,1,1)-$AI74-$AK74))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A75)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B75,\"yyyy\")&TEXT($B75,\"mm\")&\"-\"&$C75)","v":"202307-EXS009"},{"$f":"IF(ROW($A75)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A75)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A75)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A75)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45132},{"$f":"IF(ROW($A75)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A75)-ROW($A$6)-IF(ROW($A75)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A75)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS009"},{"$f":"IF(ISNA(VLOOKUP($C75,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C75,EmpAll,COLUMN(Emp!$B$4),0))","v":"Brown JT"},{"$f":"IF(ISNA(VLOOKUP($C75,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C75,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C75,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C75,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC75),MONTH($AC75)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C75,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC75),MONTH($AC75),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F75<>\"Active\",0,IF(COUNTIFS(OverEmp,$C75,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMIFS(OverValue,OverEmp,$C75,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1)),IF(AND($AC75>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C75)>0),SUMIFS(EmpIncrease,EmpCode,$C75),SUMIFS(EmpSalary,EmpCode,$C75))))","v":9000},{"$f":"IF($F75<>\"Active\",0,IF(COUNTIFS(OverEmp,$C75,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMIFS(OverValue,OverEmp,$C75,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1)),0))","v":0},{"$f":"IF($F75<>\"Active\",0,IF(COUNTIFS(OverEmp,$C75,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMIFS(OverValue,OverEmp,$C75,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1)),IF(MONTH(B75)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C75),0)))","v":0},{"$f":"IF($F75<>\"Active\",0,IF(COUNTIFS(OverEmp,$C75,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMIFS(OverValue,OverEmp,$C75,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1)),0))","v":0},{"$f":"IF($F75<>\"Active\",0,IF(COUNTIFS(OverEmp,$C75,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMIFS(OverValue,OverEmp,$C75,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C75,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMIFS(OverValue,OverEmp,$C75,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1)),(($BA75/12*$AA75)+(BB75*IF(1-$BC75=0,0,BD75/(1-$BC75))))-IF($F75=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC75,PayEmp,$C75)))","v":183.75},{"$f":"IF($F75=\"Terminated\",0,IF($AA75=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C75,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMIFS(OverValue,OverEmp,$C75,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA75)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA75,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75))))))","v":90},{"$f":"IF($F75=\"Terminated\",0,IF($AA75=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C75,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMIFS(OverValue,OverEmp,$C75,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA75)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA75,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75))))))","v":0},{"$f":"IF($F75=\"Terminated\",0,IF($AA75=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C75,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMIFS(OverValue,OverEmp,$C75,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA75)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA75,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75))))))","v":0},{"$f":"IF($F75=\"Terminated\",0,IF($AA75=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C75,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMIFS(OverValue,OverEmp,$C75,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA75)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA75,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75))))))","v":0},273.75,8726.25,{"$f":"IF($F75=\"Terminated\",0,IF($AA75=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C75,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMIFS(OverValue,OverEmp,$C75,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA75)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA75,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75)))))))","v":90},{"$f":"IF($F75=\"Terminated\",0,IF($AA75=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C75,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMIFS(OverValue,OverEmp,$C75,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA75)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA75,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75)))))))","v":90},{"$f":"IF($F75=\"Terminated\",0,IF($AA75=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C75,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMIFS(OverValue,OverEmp,$C75,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA75)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA75,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75)))))))","v":0},{"$f":"IF($F75=\"Terminated\",0,IF($AA75=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C75,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMIFS(OverValue,OverEmp,$C75,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA75)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA75,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC75,PayEmp,$C75)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B75<=Setup!$E$12,$B75>=Setup!$D$12+1),0,IF($F75<>\"Active\",0,IF($AE75=\"Yes\",$AB75,((YEAR($AC75)*12)+MONTH($AC75))-((YEAR($AD75)*12)+MONTH($AD75)-1))))","v":5},{"$f":"IF(OR($B75<=Setup!$E$12,$B75>=Setup!$D$12+1),0,((YEAR($AC75)*12)+MONTH($AC75))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":5},45132,{"$f":"IF(ISNA(VLOOKUP($C75,EmpAll,COLUMN(Emp!$E$4),0)),$AC75,IF(VLOOKUP($C75,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C75,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C75,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C75,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C75,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A75=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C75,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMIFS(OverValue,OverEmp,$C75,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1)),IF(ISNA(VLOOKUP($C75,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG75,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C75,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C75,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C75,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C75,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C75,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F75=\"Terminated\",0,IF($AA75=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C75,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA75*12)+(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB75/3,0))*4)+(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB75/6,0))*2)+(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F75=\"Terminated\",0,IF($AA75=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C75,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA75*12)+(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB75/3,0))*4)+(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB75/6,0))*2)+(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F75=\"Terminated\",0,IF($AA75=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C75,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA75*12)+(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB75/3,0))*4)+(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB75/6,0))*2)+(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F75=\"Terminated\",0,IF($AA75=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C75,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA75*12)+(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB75/3,0))*4)+(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB75/6,0))*2)+(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F75=\"Terminated\",0,IF($AA75=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C75,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA75*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F75=\"Terminated\",0,IF($AA75=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C75,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA75*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F75=\"Terminated\",0,IF($AA75=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C75,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA75*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F75=\"Terminated\",0,IF($AA75=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C75,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC75),MONTH($AC75)+1,1),OverEnd,\">=\"&DATE(YEAR($AC75),MONTH($AC75),1))>0,SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA75*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C75)*(PayDate<=$AC75)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA75*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C75,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C75,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL75),($AR75*$AL75)-$AI75-$AK75,MAX(0,IF($AL75=\"B\",IF($AR75<Setup!$C$32,($AR75*Setup!$D$32)-$AI75-$AK75,(($AR75-VLOOKUP($AR75,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR75,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR75,TaxBracket2,1),0,1,1)-$AI75-$AK75),IF($AR75<Setup!$C$21,($AR75*Setup!$D$21)-$AI75-$AK75,(($AR75-VLOOKUP($AR75,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR75,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR75,TaxBracket1,1),0,1,1)-$AI75-$AK75))))","v":2205},{"$f":"IF(ISNUMBER($AL75),($AX75*$AL75)-$AI75-$AK75,MAX(0,IF($AL75=\"B\",IF($AX75<Setup!$C$32,($AX75*Setup!$D$32)-$AI75-$AK75,(($AX75-VLOOKUP($AX75,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX75,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX75,TaxBracket2,1),0,1,1)-$AI75-$AK75),IF($AX75<Setup!$C$21,($AX75*Setup!$D$21)-$AI75-$AK75,(($AX75-VLOOKUP($AX75,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX75,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX75,TaxBracket1,1),0,1,1)-$AI75-$AK75))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A76)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B76,\"yyyy\")&TEXT($B76,\"mm\")&\"-\"&$C76)","v":"202307-EXS010"},{"$f":"IF(ROW($A76)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A76)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A76)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A76)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45132},{"$f":"IF(ROW($A76)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A76)-ROW($A$6)-IF(ROW($A76)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A76)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS010"},{"$f":"IF(ISNA(VLOOKUP($C76,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C76,EmpAll,COLUMN(Emp!$B$4),0))","v":"Lewis I"},{"$f":"IF(ISNA(VLOOKUP($C76,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C76,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C76,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C76,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC76),MONTH($AC76)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C76,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC76),MONTH($AC76),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F76<>\"Active\",0,IF(COUNTIFS(OverEmp,$C76,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMIFS(OverValue,OverEmp,$C76,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1)),IF(AND($AC76>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C76)>0),SUMIFS(EmpIncrease,EmpCode,$C76),SUMIFS(EmpSalary,EmpCode,$C76))))","v":9000},{"$f":"IF($F76<>\"Active\",0,IF(COUNTIFS(OverEmp,$C76,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMIFS(OverValue,OverEmp,$C76,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1)),0))","v":0},{"$f":"IF($F76<>\"Active\",0,IF(COUNTIFS(OverEmp,$C76,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMIFS(OverValue,OverEmp,$C76,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1)),IF(MONTH(B76)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C76),0)))","v":0},{"$f":"IF($F76<>\"Active\",0,IF(COUNTIFS(OverEmp,$C76,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMIFS(OverValue,OverEmp,$C76,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1)),0))","v":0},{"$f":"IF($F76<>\"Active\",0,IF(COUNTIFS(OverEmp,$C76,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMIFS(OverValue,OverEmp,$C76,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C76,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMIFS(OverValue,OverEmp,$C76,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1)),(($BA76/12*$AA76)+(BB76*IF(1-$BC76=0,0,BD76/(1-$BC76))))-IF($F76=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC76,PayEmp,$C76)))","v":183.75},{"$f":"IF($F76=\"Terminated\",0,IF($AA76=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C76,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMIFS(OverValue,OverEmp,$C76,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA76)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA76,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76))))))","v":90},{"$f":"IF($F76=\"Terminated\",0,IF($AA76=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C76,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMIFS(OverValue,OverEmp,$C76,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA76)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA76,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76))))))","v":0},{"$f":"IF($F76=\"Terminated\",0,IF($AA76=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C76,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMIFS(OverValue,OverEmp,$C76,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA76)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA76,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76))))))","v":0},{"$f":"IF($F76=\"Terminated\",0,IF($AA76=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C76,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMIFS(OverValue,OverEmp,$C76,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA76)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA76,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76))))))","v":0},273.75,8726.25,{"$f":"IF($F76=\"Terminated\",0,IF($AA76=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C76,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMIFS(OverValue,OverEmp,$C76,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA76)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA76,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76)))))))","v":90},{"$f":"IF($F76=\"Terminated\",0,IF($AA76=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C76,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMIFS(OverValue,OverEmp,$C76,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA76)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA76,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76)))))))","v":90},{"$f":"IF($F76=\"Terminated\",0,IF($AA76=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C76,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMIFS(OverValue,OverEmp,$C76,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA76)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA76,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76)))))))","v":0},{"$f":"IF($F76=\"Terminated\",0,IF($AA76=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C76,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMIFS(OverValue,OverEmp,$C76,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA76)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA76,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC76,PayEmp,$C76)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B76<=Setup!$E$12,$B76>=Setup!$D$12+1),0,IF($F76<>\"Active\",0,IF($AE76=\"Yes\",$AB76,((YEAR($AC76)*12)+MONTH($AC76))-((YEAR($AD76)*12)+MONTH($AD76)-1))))","v":5},{"$f":"IF(OR($B76<=Setup!$E$12,$B76>=Setup!$D$12+1),0,((YEAR($AC76)*12)+MONTH($AC76))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":5},45132,{"$f":"IF(ISNA(VLOOKUP($C76,EmpAll,COLUMN(Emp!$E$4),0)),$AC76,IF(VLOOKUP($C76,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C76,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C76,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C76,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C76,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A76=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C76,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMIFS(OverValue,OverEmp,$C76,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1)),IF(ISNA(VLOOKUP($C76,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG76,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C76,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C76,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C76,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C76,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C76,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F76=\"Terminated\",0,IF($AA76=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C76,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA76*12)+(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB76/3,0))*4)+(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB76/6,0))*2)+(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F76=\"Terminated\",0,IF($AA76=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C76,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA76*12)+(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB76/3,0))*4)+(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB76/6,0))*2)+(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F76=\"Terminated\",0,IF($AA76=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C76,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA76*12)+(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB76/3,0))*4)+(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB76/6,0))*2)+(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F76=\"Terminated\",0,IF($AA76=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C76,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA76*12)+(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB76/3,0))*4)+(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB76/6,0))*2)+(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F76=\"Terminated\",0,IF($AA76=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C76,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA76*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F76=\"Terminated\",0,IF($AA76=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C76,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA76*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F76=\"Terminated\",0,IF($AA76=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C76,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA76*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F76=\"Terminated\",0,IF($AA76=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C76,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC76),MONTH($AC76)+1,1),OverEnd,\">=\"&DATE(YEAR($AC76),MONTH($AC76),1))>0,SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA76*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C76)*(PayDate<=$AC76)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA76*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C76,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C76,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL76),($AR76*$AL76)-$AI76-$AK76,MAX(0,IF($AL76=\"B\",IF($AR76<Setup!$C$32,($AR76*Setup!$D$32)-$AI76-$AK76,(($AR76-VLOOKUP($AR76,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR76,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR76,TaxBracket2,1),0,1,1)-$AI76-$AK76),IF($AR76<Setup!$C$21,($AR76*Setup!$D$21)-$AI76-$AK76,(($AR76-VLOOKUP($AR76,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR76,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR76,TaxBracket1,1),0,1,1)-$AI76-$AK76))))","v":2205},{"$f":"IF(ISNUMBER($AL76),($AX76*$AL76)-$AI76-$AK76,MAX(0,IF($AL76=\"B\",IF($AX76<Setup!$C$32,($AX76*Setup!$D$32)-$AI76-$AK76,(($AX76-VLOOKUP($AX76,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX76,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX76,TaxBracket2,1),0,1,1)-$AI76-$AK76),IF($AX76<Setup!$C$21,($AX76*Setup!$D$21)-$AI76-$AK76,(($AX76-VLOOKUP($AX76,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX76,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX76,TaxBracket1,1),0,1,1)-$AI76-$AK76))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A77)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B77,\"yyyy\")&TEXT($B77,\"mm\")&\"-\"&$C77)","v":"202307-EXS011"},{"$f":"IF(ROW($A77)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A77)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A77)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A77)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45132},{"$f":"IF(ROW($A77)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A77)-ROW($A$6)-IF(ROW($A77)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A77)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS011"},{"$f":"IF(ISNA(VLOOKUP($C77,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C77,EmpAll,COLUMN(Emp!$B$4),0))","v":"Newport GD"},{"$f":"IF(ISNA(VLOOKUP($C77,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C77,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C77,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C77,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC77),MONTH($AC77)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C77,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC77),MONTH($AC77),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F77<>\"Active\",0,IF(COUNTIFS(OverEmp,$C77,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMIFS(OverValue,OverEmp,$C77,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1)),IF(AND($AC77>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C77)>0),SUMIFS(EmpIncrease,EmpCode,$C77),SUMIFS(EmpSalary,EmpCode,$C77))))","v":5000},{"$f":"IF($F77<>\"Active\",0,IF(COUNTIFS(OverEmp,$C77,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMIFS(OverValue,OverEmp,$C77,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1)),0))","v":0},{"$f":"IF($F77<>\"Active\",0,IF(COUNTIFS(OverEmp,$C77,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMIFS(OverValue,OverEmp,$C77,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1)),IF(MONTH(B77)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C77),0)))","v":0},{"$f":"IF($F77<>\"Active\",0,IF(COUNTIFS(OverEmp,$C77,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMIFS(OverValue,OverEmp,$C77,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1)),0))","v":0},{"$f":"IF($F77<>\"Active\",0,IF(COUNTIFS(OverEmp,$C77,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMIFS(OverValue,OverEmp,$C77,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C77,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMIFS(OverValue,OverEmp,$C77,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1)),(($BA77/12*$AA77)+(BB77*IF(1-$BC77=0,0,BD77/(1-$BC77))))-IF($F77=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC77,PayEmp,$C77)))","v":0},{"$f":"IF($F77=\"Terminated\",0,IF($AA77=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C77,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMIFS(OverValue,OverEmp,$C77,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA77)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA77,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77))))))","v":50},{"$f":"IF($F77=\"Terminated\",0,IF($AA77=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C77,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMIFS(OverValue,OverEmp,$C77,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA77)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA77,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77))))))","v":0},{"$f":"IF($F77=\"Terminated\",0,IF($AA77=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C77,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMIFS(OverValue,OverEmp,$C77,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA77)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA77,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77))))))","v":0},{"$f":"IF($F77=\"Terminated\",0,IF($AA77=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C77,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMIFS(OverValue,OverEmp,$C77,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA77)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA77,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77))))))","v":0},50,4950,{"$f":"IF($F77=\"Terminated\",0,IF($AA77=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C77,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMIFS(OverValue,OverEmp,$C77,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA77)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA77,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77)))))))","v":50},{"$f":"IF($F77=\"Terminated\",0,IF($AA77=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C77,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMIFS(OverValue,OverEmp,$C77,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA77)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA77,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77)))))))","v":50},{"$f":"IF($F77=\"Terminated\",0,IF($AA77=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C77,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMIFS(OverValue,OverEmp,$C77,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA77)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA77,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77)))))))","v":0},{"$f":"IF($F77=\"Terminated\",0,IF($AA77=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C77,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMIFS(OverValue,OverEmp,$C77,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA77)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA77,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC77,PayEmp,$C77)))))))","v":0},100,5100,150,{"$f":"IF(OR($B77<=Setup!$E$12,$B77>=Setup!$D$12+1),0,IF($F77<>\"Active\",0,IF($AE77=\"Yes\",$AB77,((YEAR($AC77)*12)+MONTH($AC77))-((YEAR($AD77)*12)+MONTH($AD77)-1))))","v":5},{"$f":"IF(OR($B77<=Setup!$E$12,$B77>=Setup!$D$12+1),0,((YEAR($AC77)*12)+MONTH($AC77))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":5},45132,{"$f":"IF(ISNA(VLOOKUP($C77,EmpAll,COLUMN(Emp!$E$4),0)),$AC77,IF(VLOOKUP($C77,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C77,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C77,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C77,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C77,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A77=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C77,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMIFS(OverValue,OverEmp,$C77,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1)),IF(ISNA(VLOOKUP($C77,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG77,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C77,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C77,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C77,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C77,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C77,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F77=\"Terminated\",0,IF($AA77=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C77,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA77*12)+(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB77/3,0))*4)+(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB77/6,0))*2)+(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F77=\"Terminated\",0,IF($AA77=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C77,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA77*12)+(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB77/3,0))*4)+(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB77/6,0))*2)+(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F77=\"Terminated\",0,IF($AA77=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C77,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA77*12)+(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB77/3,0))*4)+(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB77/6,0))*2)+(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F77=\"Terminated\",0,IF($AA77=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C77,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA77*12)+(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB77/3,0))*4)+(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB77/6,0))*2)+(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F77=\"Terminated\",0,IF($AA77=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C77,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA77*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F77=\"Terminated\",0,IF($AA77=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C77,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA77*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F77=\"Terminated\",0,IF($AA77=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C77,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA77*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F77=\"Terminated\",0,IF($AA77=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C77,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC77),MONTH($AC77)+1,1),OverEnd,\">=\"&DATE(YEAR($AC77),MONTH($AC77),1))>0,SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA77*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C77)*(PayDate<=$AC77)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA77*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C77,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C77,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL77),($AR77*$AL77)-$AI77-$AK77,MAX(0,IF($AL77=\"B\",IF($AR77<Setup!$C$32,($AR77*Setup!$D$32)-$AI77-$AK77,(($AR77-VLOOKUP($AR77,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR77,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR77,TaxBracket2,1),0,1,1)-$AI77-$AK77),IF($AR77<Setup!$C$21,($AR77*Setup!$D$21)-$AI77-$AK77,(($AR77-VLOOKUP($AR77,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR77,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR77,TaxBracket1,1),0,1,1)-$AI77-$AK77))))","v":0},{"$f":"IF(ISNUMBER($AL77),($AX77*$AL77)-$AI77-$AK77,MAX(0,IF($AL77=\"B\",IF($AX77<Setup!$C$32,($AX77*Setup!$D$32)-$AI77-$AK77,(($AX77-VLOOKUP($AX77,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX77,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX77,TaxBracket2,1),0,1,1)-$AI77-$AK77),IF($AX77<Setup!$C$21,($AX77*Setup!$D$21)-$AI77-$AK77,(($AX77-VLOOKUP($AX77,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX77,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX77,TaxBracket1,1),0,1,1)-$AI77-$AK77))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A78)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B78,\"yyyy\")&TEXT($B78,\"mm\")&\"-\"&$C78)","v":"202307-EXS012"},{"$f":"IF(ROW($A78)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A78)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A78)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A78)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45132},{"$f":"IF(ROW($A78)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A78)-ROW($A$6)-IF(ROW($A78)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A78)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS012"},{"$f":"IF(ISNA(VLOOKUP($C78,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C78,EmpAll,COLUMN(Emp!$B$4),0))","v":"Williams VS"},{"$f":"IF(ISNA(VLOOKUP($C78,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C78,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C78,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C78,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC78),MONTH($AC78)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C78,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC78),MONTH($AC78),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F78<>\"Active\",0,IF(COUNTIFS(OverEmp,$C78,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMIFS(OverValue,OverEmp,$C78,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1)),IF(AND($AC78>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C78)>0),SUMIFS(EmpIncrease,EmpCode,$C78),SUMIFS(EmpSalary,EmpCode,$C78))))","v":5000},{"$f":"IF($F78<>\"Active\",0,IF(COUNTIFS(OverEmp,$C78,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMIFS(OverValue,OverEmp,$C78,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1)),0))","v":0},{"$f":"IF($F78<>\"Active\",0,IF(COUNTIFS(OverEmp,$C78,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMIFS(OverValue,OverEmp,$C78,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1)),IF(MONTH(B78)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C78),0)))","v":0},{"$f":"IF($F78<>\"Active\",0,IF(COUNTIFS(OverEmp,$C78,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMIFS(OverValue,OverEmp,$C78,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1)),0))","v":0},{"$f":"IF($F78<>\"Active\",0,IF(COUNTIFS(OverEmp,$C78,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMIFS(OverValue,OverEmp,$C78,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C78,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMIFS(OverValue,OverEmp,$C78,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1)),(($BA78/12*$AA78)+(BB78*IF(1-$BC78=0,0,BD78/(1-$BC78))))-IF($F78=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC78,PayEmp,$C78)))","v":0},{"$f":"IF($F78=\"Terminated\",0,IF($AA78=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C78,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMIFS(OverValue,OverEmp,$C78,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA78)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA78,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78))))))","v":50},{"$f":"IF($F78=\"Terminated\",0,IF($AA78=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C78,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMIFS(OverValue,OverEmp,$C78,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA78)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA78,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78))))))","v":0},{"$f":"IF($F78=\"Terminated\",0,IF($AA78=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C78,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMIFS(OverValue,OverEmp,$C78,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA78)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA78,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78))))))","v":0},{"$f":"IF($F78=\"Terminated\",0,IF($AA78=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C78,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMIFS(OverValue,OverEmp,$C78,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA78)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA78,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78))))))","v":0},50,4950,{"$f":"IF($F78=\"Terminated\",0,IF($AA78=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C78,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMIFS(OverValue,OverEmp,$C78,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA78)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA78,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78)))))))","v":50},{"$f":"IF($F78=\"Terminated\",0,IF($AA78=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C78,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMIFS(OverValue,OverEmp,$C78,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA78)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA78,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78)))))))","v":50},{"$f":"IF($F78=\"Terminated\",0,IF($AA78=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C78,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMIFS(OverValue,OverEmp,$C78,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA78)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA78,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78)))))))","v":0},{"$f":"IF($F78=\"Terminated\",0,IF($AA78=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C78,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMIFS(OverValue,OverEmp,$C78,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA78)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA78,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC78,PayEmp,$C78)))))))","v":0},100,5100,150,{"$f":"IF(OR($B78<=Setup!$E$12,$B78>=Setup!$D$12+1),0,IF($F78<>\"Active\",0,IF($AE78=\"Yes\",$AB78,((YEAR($AC78)*12)+MONTH($AC78))-((YEAR($AD78)*12)+MONTH($AD78)-1))))","v":5},{"$f":"IF(OR($B78<=Setup!$E$12,$B78>=Setup!$D$12+1),0,((YEAR($AC78)*12)+MONTH($AC78))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":5},45132,{"$f":"IF(ISNA(VLOOKUP($C78,EmpAll,COLUMN(Emp!$E$4),0)),$AC78,IF(VLOOKUP($C78,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C78,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C78,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C78,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C78,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A78=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C78,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMIFS(OverValue,OverEmp,$C78,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1)),IF(ISNA(VLOOKUP($C78,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG78,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C78,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C78,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C78,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C78,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C78,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F78=\"Terminated\",0,IF($AA78=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C78,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA78*12)+(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB78/3,0))*4)+(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB78/6,0))*2)+(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F78=\"Terminated\",0,IF($AA78=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C78,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA78*12)+(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB78/3,0))*4)+(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB78/6,0))*2)+(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F78=\"Terminated\",0,IF($AA78=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C78,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA78*12)+(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB78/3,0))*4)+(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB78/6,0))*2)+(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F78=\"Terminated\",0,IF($AA78=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C78,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA78*12)+(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB78/3,0))*4)+(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB78/6,0))*2)+(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F78=\"Terminated\",0,IF($AA78=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C78,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA78*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F78=\"Terminated\",0,IF($AA78=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C78,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA78*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F78=\"Terminated\",0,IF($AA78=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C78,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA78*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F78=\"Terminated\",0,IF($AA78=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C78,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC78),MONTH($AC78)+1,1),OverEnd,\">=\"&DATE(YEAR($AC78),MONTH($AC78),1))>0,SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA78*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C78)*(PayDate<=$AC78)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA78*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C78,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C78,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL78),($AR78*$AL78)-$AI78-$AK78,MAX(0,IF($AL78=\"B\",IF($AR78<Setup!$C$32,($AR78*Setup!$D$32)-$AI78-$AK78,(($AR78-VLOOKUP($AR78,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR78,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR78,TaxBracket2,1),0,1,1)-$AI78-$AK78),IF($AR78<Setup!$C$21,($AR78*Setup!$D$21)-$AI78-$AK78,(($AR78-VLOOKUP($AR78,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR78,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR78,TaxBracket1,1),0,1,1)-$AI78-$AK78))))","v":0},{"$f":"IF(ISNUMBER($AL78),($AX78*$AL78)-$AI78-$AK78,MAX(0,IF($AL78=\"B\",IF($AX78<Setup!$C$32,($AX78*Setup!$D$32)-$AI78-$AK78,(($AX78-VLOOKUP($AX78,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX78,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX78,TaxBracket2,1),0,1,1)-$AI78-$AK78),IF($AX78<Setup!$C$21,($AX78*Setup!$D$21)-$AI78-$AK78,(($AX78-VLOOKUP($AX78,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX78,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX78,TaxBracket1,1),0,1,1)-$AI78-$AK78))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A79)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B79,\"yyyy\")&TEXT($B79,\"mm\")&\"-\"&$C79)","v":"202307-EXS013"},{"$f":"IF(ROW($A79)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A79)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A79)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A79)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45132},{"$f":"IF(ROW($A79)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A79)-ROW($A$6)-IF(ROW($A79)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A79)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS013"},{"$f":"IF(ISNA(VLOOKUP($C79,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C79,EmpAll,COLUMN(Emp!$B$4),0))","v":"East WD"},{"$f":"IF(ISNA(VLOOKUP($C79,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C79,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C79,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C79,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC79),MONTH($AC79)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C79,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC79),MONTH($AC79),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F79<>\"Active\",0,IF(COUNTIFS(OverEmp,$C79,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMIFS(OverValue,OverEmp,$C79,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1)),IF(AND($AC79>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C79)>0),SUMIFS(EmpIncrease,EmpCode,$C79),SUMIFS(EmpSalary,EmpCode,$C79))))","v":5000},{"$f":"IF($F79<>\"Active\",0,IF(COUNTIFS(OverEmp,$C79,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMIFS(OverValue,OverEmp,$C79,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1)),0))","v":0},{"$f":"IF($F79<>\"Active\",0,IF(COUNTIFS(OverEmp,$C79,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMIFS(OverValue,OverEmp,$C79,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1)),IF(MONTH(B79)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C79),0)))","v":0},{"$f":"IF($F79<>\"Active\",0,IF(COUNTIFS(OverEmp,$C79,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMIFS(OverValue,OverEmp,$C79,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1)),0))","v":0},{"$f":"IF($F79<>\"Active\",0,IF(COUNTIFS(OverEmp,$C79,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMIFS(OverValue,OverEmp,$C79,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C79,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMIFS(OverValue,OverEmp,$C79,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1)),(($BA79/12*$AA79)+(BB79*IF(1-$BC79=0,0,BD79/(1-$BC79))))-IF($F79=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC79,PayEmp,$C79)))","v":0},{"$f":"IF($F79=\"Terminated\",0,IF($AA79=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C79,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMIFS(OverValue,OverEmp,$C79,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA79)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA79,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79))))))","v":50},{"$f":"IF($F79=\"Terminated\",0,IF($AA79=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C79,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMIFS(OverValue,OverEmp,$C79,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA79)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA79,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79))))))","v":0},{"$f":"IF($F79=\"Terminated\",0,IF($AA79=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C79,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMIFS(OverValue,OverEmp,$C79,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA79)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA79,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79))))))","v":0},{"$f":"IF($F79=\"Terminated\",0,IF($AA79=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C79,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMIFS(OverValue,OverEmp,$C79,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA79)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA79,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79))))))","v":0},50,4950,{"$f":"IF($F79=\"Terminated\",0,IF($AA79=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C79,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMIFS(OverValue,OverEmp,$C79,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA79)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA79,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79)))))))","v":50},{"$f":"IF($F79=\"Terminated\",0,IF($AA79=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C79,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMIFS(OverValue,OverEmp,$C79,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA79)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA79,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79)))))))","v":50},{"$f":"IF($F79=\"Terminated\",0,IF($AA79=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C79,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMIFS(OverValue,OverEmp,$C79,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA79)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA79,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79)))))))","v":0},{"$f":"IF($F79=\"Terminated\",0,IF($AA79=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C79,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMIFS(OverValue,OverEmp,$C79,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA79)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA79,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC79,PayEmp,$C79)))))))","v":0},100,5100,150,{"$f":"IF(OR($B79<=Setup!$E$12,$B79>=Setup!$D$12+1),0,IF($F79<>\"Active\",0,IF($AE79=\"Yes\",$AB79,((YEAR($AC79)*12)+MONTH($AC79))-((YEAR($AD79)*12)+MONTH($AD79)-1))))","v":5},{"$f":"IF(OR($B79<=Setup!$E$12,$B79>=Setup!$D$12+1),0,((YEAR($AC79)*12)+MONTH($AC79))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":5},45132,{"$f":"IF(ISNA(VLOOKUP($C79,EmpAll,COLUMN(Emp!$E$4),0)),$AC79,IF(VLOOKUP($C79,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C79,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C79,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C79,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C79,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A79=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C79,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMIFS(OverValue,OverEmp,$C79,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1)),IF(ISNA(VLOOKUP($C79,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG79,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C79,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C79,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C79,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C79,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C79,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F79=\"Terminated\",0,IF($AA79=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C79,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA79*12)+(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB79/3,0))*4)+(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB79/6,0))*2)+(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F79=\"Terminated\",0,IF($AA79=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C79,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA79*12)+(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB79/3,0))*4)+(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB79/6,0))*2)+(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F79=\"Terminated\",0,IF($AA79=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C79,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA79*12)+(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB79/3,0))*4)+(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB79/6,0))*2)+(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F79=\"Terminated\",0,IF($AA79=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C79,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA79*12)+(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB79/3,0))*4)+(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB79/6,0))*2)+(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F79=\"Terminated\",0,IF($AA79=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C79,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA79*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F79=\"Terminated\",0,IF($AA79=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C79,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA79*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F79=\"Terminated\",0,IF($AA79=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C79,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA79*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F79=\"Terminated\",0,IF($AA79=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C79,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC79),MONTH($AC79)+1,1),OverEnd,\">=\"&DATE(YEAR($AC79),MONTH($AC79),1))>0,SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA79*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C79)*(PayDate<=$AC79)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA79*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C79,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C79,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL79),($AR79*$AL79)-$AI79-$AK79,MAX(0,IF($AL79=\"B\",IF($AR79<Setup!$C$32,($AR79*Setup!$D$32)-$AI79-$AK79,(($AR79-VLOOKUP($AR79,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR79,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR79,TaxBracket2,1),0,1,1)-$AI79-$AK79),IF($AR79<Setup!$C$21,($AR79*Setup!$D$21)-$AI79-$AK79,(($AR79-VLOOKUP($AR79,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR79,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR79,TaxBracket1,1),0,1,1)-$AI79-$AK79))))","v":0},{"$f":"IF(ISNUMBER($AL79),($AX79*$AL79)-$AI79-$AK79,MAX(0,IF($AL79=\"B\",IF($AX79<Setup!$C$32,($AX79*Setup!$D$32)-$AI79-$AK79,(($AX79-VLOOKUP($AX79,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX79,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX79,TaxBracket2,1),0,1,1)-$AI79-$AK79),IF($AX79<Setup!$C$21,($AX79*Setup!$D$21)-$AI79-$AK79,(($AX79-VLOOKUP($AX79,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX79,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX79,TaxBracket1,1),0,1,1)-$AI79-$AK79))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A80)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B80,\"yyyy\")&TEXT($B80,\"mm\")&\"-\"&$C80)","v":"202307-EXS014"},{"$f":"IF(ROW($A80)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A80)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A80)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A80)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45132},{"$f":"IF(ROW($A80)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A80)-ROW($A$6)-IF(ROW($A80)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A80)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS014"},{"$f":"IF(ISNA(VLOOKUP($C80,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C80,EmpAll,COLUMN(Emp!$B$4),0))","v":"Ross Q"},{"$f":"IF(ISNA(VLOOKUP($C80,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C80,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C80,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C80,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC80),MONTH($AC80)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C80,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC80),MONTH($AC80),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F80<>\"Active\",0,IF(COUNTIFS(OverEmp,$C80,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMIFS(OverValue,OverEmp,$C80,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1)),IF(AND($AC80>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C80)>0),SUMIFS(EmpIncrease,EmpCode,$C80),SUMIFS(EmpSalary,EmpCode,$C80))))","v":29150},{"$f":"IF($F80<>\"Active\",0,IF(COUNTIFS(OverEmp,$C80,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMIFS(OverValue,OverEmp,$C80,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1)),0))","v":0},{"$f":"IF($F80<>\"Active\",0,IF(COUNTIFS(OverEmp,$C80,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMIFS(OverValue,OverEmp,$C80,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1)),IF(MONTH(B80)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C80),0)))","v":0},{"$f":"IF($F80<>\"Active\",0,IF(COUNTIFS(OverEmp,$C80,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMIFS(OverValue,OverEmp,$C80,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1)),0))","v":0},{"$f":"IF($F80<>\"Active\",0,IF(COUNTIFS(OverEmp,$C80,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMIFS(OverValue,OverEmp,$C80,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1)),0))","v":0},29150,{"$f":"IF(COUNTIFS(OverEmp,$C80,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMIFS(OverValue,OverEmp,$C80,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1)),(($BA80/12*$AA80)+(BB80*IF(1-$BC80=0,0,BD80/(1-$BC80))))-IF($F80=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC80,PayEmp,$C80)))","v":4562.083333333333},{"$f":"IF($F80=\"Terminated\",0,IF($AA80=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C80,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMIFS(OverValue,OverEmp,$C80,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA80)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA80,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80))))))","v":177.12},{"$f":"IF($F80=\"Terminated\",0,IF($AA80=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C80,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMIFS(OverValue,OverEmp,$C80,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA80)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA80,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80))))))","v":0},{"$f":"IF($F80=\"Terminated\",0,IF($AA80=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C80,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMIFS(OverValue,OverEmp,$C80,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA80)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA80,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80))))))","v":0},{"$f":"IF($F80=\"Terminated\",0,IF($AA80=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C80,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMIFS(OverValue,OverEmp,$C80,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA80)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA80,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80))))))","v":0},4739.2033333333329,24410.799999999999,{"$f":"IF($F80=\"Terminated\",0,IF($AA80=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C80,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMIFS(OverValue,OverEmp,$C80,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA80)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA80,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80)))))))","v":177.12},{"$f":"IF($F80=\"Terminated\",0,IF($AA80=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C80,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMIFS(OverValue,OverEmp,$C80,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA80)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA80,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80)))))))","v":291.5},{"$f":"IF($F80=\"Terminated\",0,IF($AA80=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C80,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMIFS(OverValue,OverEmp,$C80,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA80)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA80,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80)))))))","v":0},{"$f":"IF($F80=\"Terminated\",0,IF($AA80=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C80,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMIFS(OverValue,OverEmp,$C80,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA80)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA80,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC80,PayEmp,$C80)))))))","v":0},468.62,29618.62,5207.82,{"$f":"IF(OR($B80<=Setup!$E$12,$B80>=Setup!$D$12+1),0,IF($F80<>\"Active\",0,IF($AE80=\"Yes\",$AB80,((YEAR($AC80)*12)+MONTH($AC80))-((YEAR($AD80)*12)+MONTH($AD80)-1))))","v":2},{"$f":"IF(OR($B80<=Setup!$E$12,$B80>=Setup!$D$12+1),0,((YEAR($AC80)*12)+MONTH($AC80))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":5},45132,{"$f":"IF(ISNA(VLOOKUP($C80,EmpAll,COLUMN(Emp!$E$4),0)),$AC80,IF(VLOOKUP($C80,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C80,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-06-25"},{"$f":"IF(ISNA(VLOOKUP($C80,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C80,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C80,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A80=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C80,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMIFS(OverValue,OverEmp,$C80,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1)),IF(ISNA(VLOOKUP($C80,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG80,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C80,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C80,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C80,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C80,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C80,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},349800,{"$f":"-IF($F80=\"Terminated\",0,IF($AA80=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C80,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA80*12)+(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB80/3,0))*4)+(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB80/6,0))*2)+(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F80=\"Terminated\",0,IF($AA80=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C80,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA80*12)+(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB80/3,0))*4)+(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB80/6,0))*2)+(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F80=\"Terminated\",0,IF($AA80=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C80,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA80*12)+(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB80/3,0))*4)+(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB80/6,0))*2)+(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F80=\"Terminated\",0,IF($AA80=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C80,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA80*12)+(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB80/3,0))*4)+(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB80/6,0))*2)+(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},349800,349800,{"$f":"-IF($F80=\"Terminated\",0,IF($AA80=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C80,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA80*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F80=\"Terminated\",0,IF($AA80=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C80,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA80*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F80=\"Terminated\",0,IF($AA80=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C80,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA80*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F80=\"Terminated\",0,IF($AA80=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C80,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC80),MONTH($AC80)+1,1),OverEnd,\">=\"&DATE(YEAR($AC80),MONTH($AC80),1))>0,SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA80*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C80)*(PayDate<=$AC80)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA80*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C80,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C80,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},349800,0,{"$f":"IF(ISNUMBER($AL80),($AR80*$AL80)-$AI80-$AK80,MAX(0,IF($AL80=\"B\",IF($AR80<Setup!$C$32,($AR80*Setup!$D$32)-$AI80-$AK80,(($AR80-VLOOKUP($AR80,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR80,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR80,TaxBracket2,1),0,1,1)-$AI80-$AK80),IF($AR80<Setup!$C$21,($AR80*Setup!$D$21)-$AI80-$AK80,(($AR80-VLOOKUP($AR80,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR80,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR80,TaxBracket1,1),0,1,1)-$AI80-$AK80))))","v":54745},{"$f":"IF(ISNUMBER($AL80),($AX80*$AL80)-$AI80-$AK80,MAX(0,IF($AL80=\"B\",IF($AX80<Setup!$C$32,($AX80*Setup!$D$32)-$AI80-$AK80,(($AX80-VLOOKUP($AX80,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX80,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX80,TaxBracket2,1),0,1,1)-$AI80-$AK80),IF($AX80<Setup!$C$21,($AX80*Setup!$D$21)-$AI80-$AK80,(($AX80-VLOOKUP($AX80,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX80,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX80,TaxBracket1,1),0,1,1)-$AI80-$AK80))))","v":54745},0,1,0,349800]
[{"$f":"IF(ROW($A81)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B81,\"yyyy\")&TEXT($B81,\"mm\")&\"-\"&$C81)","v":"202307-EXS015"},{"$f":"IF(ROW($A81)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A81)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A81)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A81)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45132},{"$f":"IF(ROW($A81)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A81)-ROW($A$6)-IF(ROW($A81)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A81)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS015"},{"$f":"IF(ISNA(VLOOKUP($C81,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C81,EmpAll,COLUMN(Emp!$B$4),0))","v":"Graham L"},{"$f":"IF(ISNA(VLOOKUP($C81,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C81,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C81,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C81,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC81),MONTH($AC81)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C81,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC81),MONTH($AC81),0)),\"Terminated\",\"Active\")))","v":"Inactive"},{"$f":"IF($F81<>\"Active\",0,IF(COUNTIFS(OverEmp,$C81,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMIFS(OverValue,OverEmp,$C81,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1)),IF(AND($AC81>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C81)>0),SUMIFS(EmpIncrease,EmpCode,$C81),SUMIFS(EmpSalary,EmpCode,$C81))))","v":0},{"$f":"IF($F81<>\"Active\",0,IF(COUNTIFS(OverEmp,$C81,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMIFS(OverValue,OverEmp,$C81,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1)),0))","v":0},{"$f":"IF($F81<>\"Active\",0,IF(COUNTIFS(OverEmp,$C81,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMIFS(OverValue,OverEmp,$C81,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1)),IF(MONTH(B81)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C81),0)))","v":0},{"$f":"IF($F81<>\"Active\",0,IF(COUNTIFS(OverEmp,$C81,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMIFS(OverValue,OverEmp,$C81,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1)),0))","v":0},{"$f":"IF($F81<>\"Active\",0,IF(COUNTIFS(OverEmp,$C81,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMIFS(OverValue,OverEmp,$C81,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C81,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMIFS(OverValue,OverEmp,$C81,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1)),(($BA81/12*$AA81)+(BB81*IF(1-$BC81=0,0,BD81/(1-$BC81))))-IF($F81=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC81,PayEmp,$C81)))","v":0},{"$f":"IF($F81=\"Terminated\",0,IF($AA81=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C81,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMIFS(OverValue,OverEmp,$C81,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA81)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA81,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81))))))","v":0},{"$f":"IF($F81=\"Terminated\",0,IF($AA81=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C81,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMIFS(OverValue,OverEmp,$C81,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA81)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA81,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81))))))","v":0},{"$f":"IF($F81=\"Terminated\",0,IF($AA81=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C81,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMIFS(OverValue,OverEmp,$C81,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA81)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA81,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81))))))","v":0},{"$f":"IF($F81=\"Terminated\",0,IF($AA81=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C81,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMIFS(OverValue,OverEmp,$C81,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA81)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA81,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81))))))","v":0},0,0,{"$f":"IF($F81=\"Terminated\",0,IF($AA81=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C81,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMIFS(OverValue,OverEmp,$C81,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA81)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA81,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81)))))))","v":0},{"$f":"IF($F81=\"Terminated\",0,IF($AA81=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C81,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMIFS(OverValue,OverEmp,$C81,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA81)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA81,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81)))))))","v":0},{"$f":"IF($F81=\"Terminated\",0,IF($AA81=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C81,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMIFS(OverValue,OverEmp,$C81,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA81)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA81,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81)))))))","v":0},{"$f":"IF($F81=\"Terminated\",0,IF($AA81=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C81,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMIFS(OverValue,OverEmp,$C81,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA81)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA81,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC81,PayEmp,$C81)))))))","v":0},0,0,0,{"$f":"IF(OR($B81<=Setup!$E$12,$B81>=Setup!$D$12+1),0,IF($F81<>\"Active\",0,IF($AE81=\"Yes\",$AB81,((YEAR($AC81)*12)+MONTH($AC81))-((YEAR($AD81)*12)+MONTH($AD81)-1))))","v":0},{"$f":"IF(OR($B81<=Setup!$E$12,$B81>=Setup!$D$12+1),0,((YEAR($AC81)*12)+MONTH($AC81))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":5},45132,{"$f":"IF(ISNA(VLOOKUP($C81,EmpAll,COLUMN(Emp!$E$4),0)),$AC81,IF(VLOOKUP($C81,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C81,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-01-25"},{"$f":"IF(ISNA(VLOOKUP($C81,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C81,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C81,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A81=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C81,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMIFS(OverValue,OverEmp,$C81,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1)),IF(ISNA(VLOOKUP($C81,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG81,MedList,COLUMN(Setup!$C$49),1)","v":364},6188,{"$f":"IF(ISNA(VLOOKUP($C81,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C81,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C81,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C81,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C81,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F81=\"Terminated\",0,IF($AA81=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C81,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA81*12)+(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB81/3,0))*4)+(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB81/6,0))*2)+(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F81=\"Terminated\",0,IF($AA81=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C81,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA81*12)+(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB81/3,0))*4)+(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB81/6,0))*2)+(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F81=\"Terminated\",0,IF($AA81=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C81,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA81*12)+(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB81/3,0))*4)+(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB81/6,0))*2)+(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F81=\"Terminated\",0,IF($AA81=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C81,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA81*12)+(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB81/3,0))*4)+(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB81/6,0))*2)+(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F81=\"Terminated\",0,IF($AA81=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C81,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA81*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F81=\"Terminated\",0,IF($AA81=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C81,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA81*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F81=\"Terminated\",0,IF($AA81=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C81,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA81*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F81=\"Terminated\",0,IF($AA81=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C81,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC81),MONTH($AC81)+1,1),OverEnd,\">=\"&DATE(YEAR($AC81),MONTH($AC81),1))>0,SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA81*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C81)*(PayDate<=$AC81)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA81*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C81,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C81,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL81),($AR81*$AL81)-$AI81-$AK81,MAX(0,IF($AL81=\"B\",IF($AR81<Setup!$C$32,($AR81*Setup!$D$32)-$AI81-$AK81,(($AR81-VLOOKUP($AR81,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR81,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR81,TaxBracket2,1),0,1,1)-$AI81-$AK81),IF($AR81<Setup!$C$21,($AR81*Setup!$D$21)-$AI81-$AK81,(($AR81-VLOOKUP($AR81,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR81,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR81,TaxBracket1,1),0,1,1)-$AI81-$AK81))))","v":0},{"$f":"IF(ISNUMBER($AL81),($AX81*$AL81)-$AI81-$AK81,MAX(0,IF($AL81=\"B\",IF($AX81<Setup!$C$32,($AX81*Setup!$D$32)-$AI81-$AK81,(($AX81-VLOOKUP($AX81,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX81,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX81,TaxBracket2,1),0,1,1)-$AI81-$AK81),IF($AX81<Setup!$C$21,($AX81*Setup!$D$21)-$AI81-$AK81,(($AX81-VLOOKUP($AX81,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX81,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX81,TaxBracket1,1),0,1,1)-$AI81-$AK81))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A82)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B82,\"yyyy\")&TEXT($B82,\"mm\")&\"-\"&$C82)","v":"202308-EXS001"},{"$f":"IF(ROW($A82)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A82)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A82)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A82)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45163},{"$f":"IF(ROW($A82)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A82)-ROW($A$6)-IF(ROW($A82)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A82)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS001"},{"$f":"IF(ISNA(VLOOKUP($C82,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C82,EmpAll,COLUMN(Emp!$B$4),0))","v":"Taylor AE"},{"$f":"IF(ISNA(VLOOKUP($C82,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C82,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C82,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C82,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC82),MONTH($AC82)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C82,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC82),MONTH($AC82),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F82<>\"Active\",0,IF(COUNTIFS(OverEmp,$C82,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMIFS(OverValue,OverEmp,$C82,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1)),IF(AND($AC82>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C82)>0),SUMIFS(EmpIncrease,EmpCode,$C82),SUMIFS(EmpSalary,EmpCode,$C82))))","v":150000},{"$f":"IF($F82<>\"Active\",0,IF(COUNTIFS(OverEmp,$C82,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMIFS(OverValue,OverEmp,$C82,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1)),0))","v":0},{"$f":"IF($F82<>\"Active\",0,IF(COUNTIFS(OverEmp,$C82,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMIFS(OverValue,OverEmp,$C82,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1)),IF(MONTH(B82)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C82),0)))","v":0},{"$f":"IF($F82<>\"Active\",0,IF(COUNTIFS(OverEmp,$C82,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMIFS(OverValue,OverEmp,$C82,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1)),0))","v":0},{"$f":"IF($F82<>\"Active\",0,IF(COUNTIFS(OverEmp,$C82,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMIFS(OverValue,OverEmp,$C82,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1)),0))","v":0},150000,{"$f":"IF(COUNTIFS(OverEmp,$C82,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMIFS(OverValue,OverEmp,$C82,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1)),(($BA82/12*$AA82)+(BB82*IF(1-$BC82=0,0,BD82/(1-$BC82))))-IF($F82=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC82,PayEmp,$C82)))","v":45611.833333333314},{"$f":"IF($F82=\"Terminated\",0,IF($AA82=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C82,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMIFS(OverValue,OverEmp,$C82,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA82)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA82,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82))))))","v":177.12},{"$f":"IF($F82=\"Terminated\",0,IF($AA82=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C82,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMIFS(OverValue,OverEmp,$C82,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA82)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA82,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82))))))","v":11250},{"$f":"IF($F82=\"Terminated\",0,IF($AA82=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C82,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMIFS(OverValue,OverEmp,$C82,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA82)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA82,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82))))))","v":0},{"$f":"IF($F82=\"Terminated\",0,IF($AA82=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C82,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMIFS(OverValue,OverEmp,$C82,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA82)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA82,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82))))))","v":0},57038.953333333317,92961.05,{"$f":"IF($F82=\"Terminated\",0,IF($AA82=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C82,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMIFS(OverValue,OverEmp,$C82,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA82)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA82,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82)))))))","v":177.12},{"$f":"IF($F82=\"Terminated\",0,IF($AA82=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C82,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMIFS(OverValue,OverEmp,$C82,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA82)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA82,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82)))))))","v":1500},{"$f":"IF($F82=\"Terminated\",0,IF($AA82=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C82,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMIFS(OverValue,OverEmp,$C82,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA82)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA82,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82)))))))","v":0},{"$f":"IF($F82=\"Terminated\",0,IF($AA82=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C82,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMIFS(OverValue,OverEmp,$C82,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA82)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA82,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC82,PayEmp,$C82)))))))","v":0},1677.12,151677.12,58716.07,{"$f":"IF(OR($B82<=Setup!$E$12,$B82>=Setup!$D$12+1),0,IF($F82<>\"Active\",0,IF($AE82=\"Yes\",$AB82,((YEAR($AC82)*12)+MONTH($AC82))-((YEAR($AD82)*12)+MONTH($AD82)-1))))","v":6},{"$f":"IF(OR($B82<=Setup!$E$12,$B82>=Setup!$D$12+1),0,((YEAR($AC82)*12)+MONTH($AC82))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":6},45163,{"$f":"IF(ISNA(VLOOKUP($C82,EmpAll,COLUMN(Emp!$E$4),0)),$AC82,IF(VLOOKUP($C82,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C82,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C82,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C82,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C82,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A82=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C82,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMIFS(OverValue,OverEmp,$C82,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1)),IF(ISNA(VLOOKUP($C82,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$N$4),0)))","v":5},{"$f":"VLOOKUP($AG82,MedList,COLUMN(Setup!$C$49),1)","v":1466},17592,{"$f":"IF(ISNA(VLOOKUP($C82,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C82,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C82,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C82,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C82,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1800000,{"$f":"-IF($F82=\"Terminated\",0,IF($AA82=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C82,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA82*12)+(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB82/3,0))*4)+(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB82/6,0))*2)+(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F82=\"Terminated\",0,IF($AA82=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C82,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA82*12)+(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB82/3,0))*4)+(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB82/6,0))*2)+(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F82=\"Terminated\",0,IF($AA82=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C82,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA82*12)+(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB82/3,0))*4)+(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB82/6,0))*2)+(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F82=\"Terminated\",0,IF($AA82=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C82,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA82*12)+(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB82/3,0))*4)+(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB82/6,0))*2)+(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1665000,1800000,{"$f":"-IF($F82=\"Terminated\",0,IF($AA82=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C82,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA82*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F82=\"Terminated\",0,IF($AA82=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C82,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA82*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F82=\"Terminated\",0,IF($AA82=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C82,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA82*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F82=\"Terminated\",0,IF($AA82=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C82,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC82),MONTH($AC82)+1,1),OverEnd,\">=\"&DATE(YEAR($AC82),MONTH($AC82),1))>0,SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA82*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C82)*(PayDate<=$AC82)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA82*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C82,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C82,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1665000,0,{"$f":"IF(ISNUMBER($AL82),($AR82*$AL82)-$AI82-$AK82,MAX(0,IF($AL82=\"B\",IF($AR82<Setup!$C$32,($AR82*Setup!$D$32)-$AI82-$AK82,(($AR82-VLOOKUP($AR82,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR82,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR82,TaxBracket2,1),0,1,1)-$AI82-$AK82),IF($AR82<Setup!$C$21,($AR82*Setup!$D$21)-$AI82-$AK82,(($AR82-VLOOKUP($AR82,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR82,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR82,TaxBracket1,1),0,1,1)-$AI82-$AK82))))","v":547342},{"$f":"IF(ISNUMBER($AL82),($AX82*$AL82)-$AI82-$AK82,MAX(0,IF($AL82=\"B\",IF($AX82<Setup!$C$32,($AX82*Setup!$D$32)-$AI82-$AK82,(($AX82-VLOOKUP($AX82,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX82,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX82,TaxBracket2,1),0,1,1)-$AI82-$AK82),IF($AX82<Setup!$C$21,($AX82*Setup!$D$21)-$AI82-$AK82,(($AX82-VLOOKUP($AX82,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX82,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX82,TaxBracket1,1),0,1,1)-$AI82-$AK82))))","v":547342},0,1,0,1800000]
[{"$f":"IF(ROW($A83)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B83,\"yyyy\")&TEXT($B83,\"mm\")&\"-\"&$C83)","v":"202308-EXS002"},{"$f":"IF(ROW($A83)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A83)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A83)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A83)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45163},{"$f":"IF(ROW($A83)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A83)-ROW($A$6)-IF(ROW($A83)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A83)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS002"},{"$f":"IF(ISNA(VLOOKUP($C83,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C83,EmpAll,COLUMN(Emp!$B$4),0))","v":"Smith F"},{"$f":"IF(ISNA(VLOOKUP($C83,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C83,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C83,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C83,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC83),MONTH($AC83)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C83,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC83),MONTH($AC83),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F83<>\"Active\",0,IF(COUNTIFS(OverEmp,$C83,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMIFS(OverValue,OverEmp,$C83,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1)),IF(AND($AC83>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C83)>0),SUMIFS(EmpIncrease,EmpCode,$C83),SUMIFS(EmpSalary,EmpCode,$C83))))","v":120000},{"$f":"IF($F83<>\"Active\",0,IF(COUNTIFS(OverEmp,$C83,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMIFS(OverValue,OverEmp,$C83,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1)),0))","v":0},{"$f":"IF($F83<>\"Active\",0,IF(COUNTIFS(OverEmp,$C83,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMIFS(OverValue,OverEmp,$C83,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1)),IF(MONTH(B83)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C83),0)))","v":0},{"$f":"IF($F83<>\"Active\",0,IF(COUNTIFS(OverEmp,$C83,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMIFS(OverValue,OverEmp,$C83,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1)),0))","v":0},{"$f":"IF($F83<>\"Active\",0,IF(COUNTIFS(OverEmp,$C83,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMIFS(OverValue,OverEmp,$C83,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1)),0))","v":0},120000,{"$f":"IF(COUNTIFS(OverEmp,$C83,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMIFS(OverValue,OverEmp,$C83,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1)),(($BA83/12*$AA83)+(BB83*IF(1-$BC83=0,0,BD83/(1-$BC83))))-IF($F83=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC83,PayEmp,$C83)))","v":38498.333333333314},{"$f":"IF($F83=\"Terminated\",0,IF($AA83=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C83,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMIFS(OverValue,OverEmp,$C83,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA83)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA83,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83))))))","v":177.12},{"$f":"IF($F83=\"Terminated\",0,IF($AA83=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C83,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMIFS(OverValue,OverEmp,$C83,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA83)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA83,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83))))))","v":0},{"$f":"IF($F83=\"Terminated\",0,IF($AA83=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C83,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMIFS(OverValue,OverEmp,$C83,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA83)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA83,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83))))))","v":0},{"$f":"IF($F83=\"Terminated\",0,IF($AA83=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C83,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMIFS(OverValue,OverEmp,$C83,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA83)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA83,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83))))))","v":0},38675.453333333317,81324.55,{"$f":"IF($F83=\"Terminated\",0,IF($AA83=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C83,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMIFS(OverValue,OverEmp,$C83,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA83)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA83,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83)))))))","v":177.12},{"$f":"IF($F83=\"Terminated\",0,IF($AA83=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C83,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMIFS(OverValue,OverEmp,$C83,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA83)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA83,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83)))))))","v":1200},{"$f":"IF($F83=\"Terminated\",0,IF($AA83=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C83,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMIFS(OverValue,OverEmp,$C83,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA83)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA83,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83)))))))","v":0},{"$f":"IF($F83=\"Terminated\",0,IF($AA83=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C83,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMIFS(OverValue,OverEmp,$C83,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA83)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA83,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC83,PayEmp,$C83)))))))","v":0},1377.12,121377.12,40052.57,{"$f":"IF(OR($B83<=Setup!$E$12,$B83>=Setup!$D$12+1),0,IF($F83<>\"Active\",0,IF($AE83=\"Yes\",$AB83,((YEAR($AC83)*12)+MONTH($AC83))-((YEAR($AD83)*12)+MONTH($AD83)-1))))","v":6},{"$f":"IF(OR($B83<=Setup!$E$12,$B83>=Setup!$D$12+1),0,((YEAR($AC83)*12)+MONTH($AC83))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":6},45163,{"$f":"IF(ISNA(VLOOKUP($C83,EmpAll,COLUMN(Emp!$E$4),0)),$AC83,IF(VLOOKUP($C83,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C83,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C83,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C83,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C83,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A83=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C83,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMIFS(OverValue,OverEmp,$C83,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1)),IF(ISNA(VLOOKUP($C83,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$N$4),0)))","v":3},{"$f":"VLOOKUP($AG83,MedList,COLUMN(Setup!$C$49),1)","v":974},10704,{"$f":"IF(ISNA(VLOOKUP($C83,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C83,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C83,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C83,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C83,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1440000,{"$f":"-IF($F83=\"Terminated\",0,IF($AA83=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C83,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA83*12)+(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB83/3,0))*4)+(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB83/6,0))*2)+(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F83=\"Terminated\",0,IF($AA83=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C83,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA83*12)+(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB83/3,0))*4)+(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB83/6,0))*2)+(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F83=\"Terminated\",0,IF($AA83=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C83,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA83*12)+(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB83/3,0))*4)+(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB83/6,0))*2)+(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F83=\"Terminated\",0,IF($AA83=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C83,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA83*12)+(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB83/3,0))*4)+(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB83/6,0))*2)+(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1440000,1440000,{"$f":"-IF($F83=\"Terminated\",0,IF($AA83=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C83,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA83*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F83=\"Terminated\",0,IF($AA83=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C83,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA83*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F83=\"Terminated\",0,IF($AA83=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C83,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA83*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F83=\"Terminated\",0,IF($AA83=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C83,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC83),MONTH($AC83)+1,1),OverEnd,\">=\"&DATE(YEAR($AC83),MONTH($AC83),1))>0,SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA83*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C83)*(PayDate<=$AC83)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA83*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C83,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C83,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1440000,0,{"$f":"IF(ISNUMBER($AL83),($AR83*$AL83)-$AI83-$AK83,MAX(0,IF($AL83=\"B\",IF($AR83<Setup!$C$32,($AR83*Setup!$D$32)-$AI83-$AK83,(($AR83-VLOOKUP($AR83,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR83,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR83,TaxBracket2,1),0,1,1)-$AI83-$AK83),IF($AR83<Setup!$C$21,($AR83*Setup!$D$21)-$AI83-$AK83,(($AR83-VLOOKUP($AR83,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR83,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR83,TaxBracket1,1),0,1,1)-$AI83-$AK83))))","v":461980},{"$f":"IF(ISNUMBER($AL83),($AX83*$AL83)-$AI83-$AK83,MAX(0,IF($AL83=\"B\",IF($AX83<Setup!$C$32,($AX83*Setup!$D$32)-$AI83-$AK83,(($AX83-VLOOKUP($AX83,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX83,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX83,TaxBracket2,1),0,1,1)-$AI83-$AK83),IF($AX83<Setup!$C$21,($AX83*Setup!$D$21)-$AI83-$AK83,(($AX83-VLOOKUP($AX83,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX83,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX83,TaxBracket1,1),0,1,1)-$AI83-$AK83))))","v":461980},0,1,0,1440000]
[{"$f":"IF(ROW($A84)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B84,\"yyyy\")&TEXT($B84,\"mm\")&\"-\"&$C84)","v":"202308-EXS003"},{"$f":"IF(ROW($A84)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A84)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A84)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A84)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45163},{"$f":"IF(ROW($A84)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A84)-ROW($A$6)-IF(ROW($A84)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A84)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS003"},{"$f":"IF(ISNA(VLOOKUP($C84,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C84,EmpAll,COLUMN(Emp!$B$4),0))","v":"Wilson PG"},{"$f":"IF(ISNA(VLOOKUP($C84,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C84,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C84,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C84,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC84),MONTH($AC84)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C84,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC84),MONTH($AC84),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F84<>\"Active\",0,IF(COUNTIFS(OverEmp,$C84,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMIFS(OverValue,OverEmp,$C84,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1)),IF(AND($AC84>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C84)>0),SUMIFS(EmpIncrease,EmpCode,$C84),SUMIFS(EmpSalary,EmpCode,$C84))))","v":15000},{"$f":"IF($F84<>\"Active\",0,IF(COUNTIFS(OverEmp,$C84,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMIFS(OverValue,OverEmp,$C84,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1)),0))","v":0},{"$f":"IF($F84<>\"Active\",0,IF(COUNTIFS(OverEmp,$C84,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMIFS(OverValue,OverEmp,$C84,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1)),IF(MONTH(B84)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C84),0)))","v":0},{"$f":"IF($F84<>\"Active\",0,IF(COUNTIFS(OverEmp,$C84,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMIFS(OverValue,OverEmp,$C84,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1)),0))","v":0},{"$f":"IF($F84<>\"Active\",0,IF(COUNTIFS(OverEmp,$C84,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMIFS(OverValue,OverEmp,$C84,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1)),0))","v":0},15000,{"$f":"IF(COUNTIFS(OverEmp,$C84,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMIFS(OverValue,OverEmp,$C84,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1)),(($BA84/12*$AA84)+(BB84*IF(1-$BC84=0,0,BD84/(1-$BC84))))-IF($F84=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC84,PayEmp,$C84)))","v":899.75},{"$f":"IF($F84=\"Terminated\",0,IF($AA84=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C84,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMIFS(OverValue,OverEmp,$C84,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA84)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA84,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84))))))","v":150},{"$f":"IF($F84=\"Terminated\",0,IF($AA84=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C84,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMIFS(OverValue,OverEmp,$C84,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA84)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA84,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84))))))","v":0},{"$f":"IF($F84=\"Terminated\",0,IF($AA84=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C84,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMIFS(OverValue,OverEmp,$C84,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA84)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA84,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84))))))","v":0},{"$f":"IF($F84=\"Terminated\",0,IF($AA84=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C84,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMIFS(OverValue,OverEmp,$C84,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA84)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA84,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84))))))","v":0},1049.75,13950.25,{"$f":"IF($F84=\"Terminated\",0,IF($AA84=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C84,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMIFS(OverValue,OverEmp,$C84,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA84)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA84,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84)))))))","v":150},{"$f":"IF($F84=\"Terminated\",0,IF($AA84=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C84,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMIFS(OverValue,OverEmp,$C84,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA84)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA84,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84)))))))","v":150},{"$f":"IF($F84=\"Terminated\",0,IF($AA84=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C84,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMIFS(OverValue,OverEmp,$C84,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA84)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA84,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84)))))))","v":0},{"$f":"IF($F84=\"Terminated\",0,IF($AA84=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C84,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMIFS(OverValue,OverEmp,$C84,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA84)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA84,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC84,PayEmp,$C84)))))))","v":0},300,15300,1349.75,{"$f":"IF(OR($B84<=Setup!$E$12,$B84>=Setup!$D$12+1),0,IF($F84<>\"Active\",0,IF($AE84=\"Yes\",$AB84,((YEAR($AC84)*12)+MONTH($AC84))-((YEAR($AD84)*12)+MONTH($AD84)-1))))","v":6},{"$f":"IF(OR($B84<=Setup!$E$12,$B84>=Setup!$D$12+1),0,((YEAR($AC84)*12)+MONTH($AC84))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":6},45163,{"$f":"IF(ISNA(VLOOKUP($C84,EmpAll,COLUMN(Emp!$E$4),0)),$AC84,IF(VLOOKUP($C84,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C84,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C84,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C84,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C84,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A84=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C84,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMIFS(OverValue,OverEmp,$C84,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1)),IF(ISNA(VLOOKUP($C84,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG84,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C84,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C84,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C84,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C84,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C84,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},180000,{"$f":"-IF($F84=\"Terminated\",0,IF($AA84=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C84,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA84*12)+(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB84/3,0))*4)+(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB84/6,0))*2)+(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F84=\"Terminated\",0,IF($AA84=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C84,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA84*12)+(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB84/3,0))*4)+(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB84/6,0))*2)+(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F84=\"Terminated\",0,IF($AA84=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C84,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA84*12)+(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB84/3,0))*4)+(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB84/6,0))*2)+(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F84=\"Terminated\",0,IF($AA84=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C84,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA84*12)+(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB84/3,0))*4)+(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB84/6,0))*2)+(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},180000,180000,{"$f":"-IF($F84=\"Terminated\",0,IF($AA84=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C84,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA84*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F84=\"Terminated\",0,IF($AA84=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C84,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA84*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F84=\"Terminated\",0,IF($AA84=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C84,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA84*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F84=\"Terminated\",0,IF($AA84=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C84,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC84),MONTH($AC84)+1,1),OverEnd,\">=\"&DATE(YEAR($AC84),MONTH($AC84),1))>0,SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA84*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C84)*(PayDate<=$AC84)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA84*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C84,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C84,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,0,{"$f":"IF(ISNUMBER($AL84),($AR84*$AL84)-$AI84-$AK84,MAX(0,IF($AL84=\"B\",IF($AR84<Setup!$C$32,($AR84*Setup!$D$32)-$AI84-$AK84,(($AR84-VLOOKUP($AR84,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR84,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR84,TaxBracket2,1),0,1,1)-$AI84-$AK84),IF($AR84<Setup!$C$21,($AR84*Setup!$D$21)-$AI84-$AK84,(($AR84-VLOOKUP($AR84,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR84,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR84,TaxBracket1,1),0,1,1)-$AI84-$AK84))))","v":10797},{"$f":"IF(ISNUMBER($AL84),($AX84*$AL84)-$AI84-$AK84,MAX(0,IF($AL84=\"B\",IF($AX84<Setup!$C$32,($AX84*Setup!$D$32)-$AI84-$AK84,(($AX84-VLOOKUP($AX84,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX84,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX84,TaxBracket2,1),0,1,1)-$AI84-$AK84),IF($AX84<Setup!$C$21,($AX84*Setup!$D$21)-$AI84-$AK84,(($AX84-VLOOKUP($AX84,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX84,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX84,TaxBracket1,1),0,1,1)-$AI84-$AK84))))","v":10797},0,1,0,180000]
[{"$f":"IF(ROW($A85)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B85,\"yyyy\")&TEXT($B85,\"mm\")&\"-\"&$C85)","v":"202308-EXS004"},{"$f":"IF(ROW($A85)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A85)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A85)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A85)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45163},{"$f":"IF(ROW($A85)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A85)-ROW($A$6)-IF(ROW($A85)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A85)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS004"},{"$f":"IF(ISNA(VLOOKUP($C85,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C85,EmpAll,COLUMN(Emp!$B$4),0))","v":"Osborne S"},{"$f":"IF(ISNA(VLOOKUP($C85,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C85,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C85,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C85,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC85),MONTH($AC85)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C85,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC85),MONTH($AC85),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F85<>\"Active\",0,IF(COUNTIFS(OverEmp,$C85,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMIFS(OverValue,OverEmp,$C85,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1)),IF(AND($AC85>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C85)>0),SUMIFS(EmpIncrease,EmpCode,$C85),SUMIFS(EmpSalary,EmpCode,$C85))))","v":15000},{"$f":"IF($F85<>\"Active\",0,IF(COUNTIFS(OverEmp,$C85,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMIFS(OverValue,OverEmp,$C85,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1)),0))","v":0},{"$f":"IF($F85<>\"Active\",0,IF(COUNTIFS(OverEmp,$C85,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMIFS(OverValue,OverEmp,$C85,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1)),IF(MONTH(B85)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C85),0)))","v":0},{"$f":"IF($F85<>\"Active\",0,IF(COUNTIFS(OverEmp,$C85,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMIFS(OverValue,OverEmp,$C85,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1)),0))","v":0},{"$f":"IF($F85<>\"Active\",0,IF(COUNTIFS(OverEmp,$C85,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMIFS(OverValue,OverEmp,$C85,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1)),0))","v":0},15000,{"$f":"IF(COUNTIFS(OverEmp,$C85,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMIFS(OverValue,OverEmp,$C85,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1)),(($BA85/12*$AA85)+(BB85*IF(1-$BC85=0,0,BD85/(1-$BC85))))-IF($F85=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC85,PayEmp,$C85)))","v":899.75},{"$f":"IF($F85=\"Terminated\",0,IF($AA85=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C85,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMIFS(OverValue,OverEmp,$C85,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA85)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA85,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85))))))","v":150},{"$f":"IF($F85=\"Terminated\",0,IF($AA85=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C85,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMIFS(OverValue,OverEmp,$C85,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA85)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA85,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85))))))","v":0},{"$f":"IF($F85=\"Terminated\",0,IF($AA85=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C85,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMIFS(OverValue,OverEmp,$C85,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA85)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA85,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85))))))","v":500},{"$f":"IF($F85=\"Terminated\",0,IF($AA85=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C85,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMIFS(OverValue,OverEmp,$C85,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA85)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA85,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85))))))","v":0},1549.75,13450.25,{"$f":"IF($F85=\"Terminated\",0,IF($AA85=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C85,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMIFS(OverValue,OverEmp,$C85,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA85)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA85,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85)))))))","v":150},{"$f":"IF($F85=\"Terminated\",0,IF($AA85=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C85,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMIFS(OverValue,OverEmp,$C85,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA85)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA85,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85)))))))","v":150},{"$f":"IF($F85=\"Terminated\",0,IF($AA85=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C85,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMIFS(OverValue,OverEmp,$C85,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA85)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA85,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85)))))))","v":0},{"$f":"IF($F85=\"Terminated\",0,IF($AA85=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C85,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMIFS(OverValue,OverEmp,$C85,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA85)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA85,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC85,PayEmp,$C85)))))))","v":0},300,15300,1849.75,{"$f":"IF(OR($B85<=Setup!$E$12,$B85>=Setup!$D$12+1),0,IF($F85<>\"Active\",0,IF($AE85=\"Yes\",$AB85,((YEAR($AC85)*12)+MONTH($AC85))-((YEAR($AD85)*12)+MONTH($AD85)-1))))","v":6},{"$f":"IF(OR($B85<=Setup!$E$12,$B85>=Setup!$D$12+1),0,((YEAR($AC85)*12)+MONTH($AC85))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":6},45163,{"$f":"IF(ISNA(VLOOKUP($C85,EmpAll,COLUMN(Emp!$E$4),0)),$AC85,IF(VLOOKUP($C85,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C85,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C85,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C85,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C85,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A85=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C85,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMIFS(OverValue,OverEmp,$C85,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1)),IF(ISNA(VLOOKUP($C85,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG85,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C85,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C85,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C85,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C85,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C85,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},183600,{"$f":"-IF($F85=\"Terminated\",0,IF($AA85=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C85,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA85*12)+(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB85/3,0))*4)+(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB85/6,0))*2)+(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F85=\"Terminated\",0,IF($AA85=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C85,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA85*12)+(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB85/3,0))*4)+(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB85/6,0))*2)+(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F85=\"Terminated\",0,IF($AA85=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C85,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA85*12)+(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB85/3,0))*4)+(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB85/6,0))*2)+(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F85=\"Terminated\",0,IF($AA85=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C85,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA85*12)+(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB85/3,0))*4)+(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB85/6,0))*2)+(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},183600,180000,{"$f":"-IF($F85=\"Terminated\",0,IF($AA85=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C85,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA85*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F85=\"Terminated\",0,IF($AA85=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C85,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA85*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F85=\"Terminated\",0,IF($AA85=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C85,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA85*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F85=\"Terminated\",0,IF($AA85=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C85,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC85),MONTH($AC85)+1,1),OverEnd,\">=\"&DATE(YEAR($AC85),MONTH($AC85),1))>0,SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA85*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C85)*(PayDate<=$AC85)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA85*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C85,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C85,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,3600,{"$f":"IF(ISNUMBER($AL85),($AR85*$AL85)-$AI85-$AK85,MAX(0,IF($AL85=\"B\",IF($AR85<Setup!$C$32,($AR85*Setup!$D$32)-$AI85-$AK85,(($AR85-VLOOKUP($AR85,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR85,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR85,TaxBracket2,1),0,1,1)-$AI85-$AK85),IF($AR85<Setup!$C$21,($AR85*Setup!$D$21)-$AI85-$AK85,(($AR85-VLOOKUP($AR85,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR85,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR85,TaxBracket1,1),0,1,1)-$AI85-$AK85))))","v":11445},{"$f":"IF(ISNUMBER($AL85),($AX85*$AL85)-$AI85-$AK85,MAX(0,IF($AL85=\"B\",IF($AX85<Setup!$C$32,($AX85*Setup!$D$32)-$AI85-$AK85,(($AX85-VLOOKUP($AX85,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX85,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX85,TaxBracket2,1),0,1,1)-$AI85-$AK85),IF($AX85<Setup!$C$21,($AX85*Setup!$D$21)-$AI85-$AK85,(($AX85-VLOOKUP($AX85,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX85,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX85,TaxBracket1,1),0,1,1)-$AI85-$AK85))))","v":10797},648,0.98039215686274506,1.9607843137254902E-2,183600]
[{"$f":"IF(ROW($A86)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B86,\"yyyy\")&TEXT($B86,\"mm\")&\"-\"&$C86)","v":"202308-EXS005"},{"$f":"IF(ROW($A86)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A86)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A86)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A86)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45163},{"$f":"IF(ROW($A86)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A86)-ROW($A$6)-IF(ROW($A86)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A86)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS005"},{"$f":"IF(ISNA(VLOOKUP($C86,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C86,EmpAll,COLUMN(Emp!$B$4),0))","v":"Miller R"},{"$f":"IF(ISNA(VLOOKUP($C86,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C86,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C86,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C86,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC86),MONTH($AC86)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C86,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC86),MONTH($AC86),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F86<>\"Active\",0,IF(COUNTIFS(OverEmp,$C86,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMIFS(OverValue,OverEmp,$C86,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1)),IF(AND($AC86>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C86)>0),SUMIFS(EmpIncrease,EmpCode,$C86),SUMIFS(EmpSalary,EmpCode,$C86))))","v":10000},{"$f":"IF($F86<>\"Active\",0,IF(COUNTIFS(OverEmp,$C86,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMIFS(OverValue,OverEmp,$C86,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1)),0))","v":0},{"$f":"IF($F86<>\"Active\",0,IF(COUNTIFS(OverEmp,$C86,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMIFS(OverValue,OverEmp,$C86,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1)),IF(MONTH(B86)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C86),0)))","v":0},{"$f":"IF($F86<>\"Active\",0,IF(COUNTIFS(OverEmp,$C86,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMIFS(OverValue,OverEmp,$C86,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1)),0))","v":0},{"$f":"IF($F86<>\"Active\",0,IF(COUNTIFS(OverEmp,$C86,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMIFS(OverValue,OverEmp,$C86,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C86,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMIFS(OverValue,OverEmp,$C86,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1)),(($BA86/12*$AA86)+(BB86*IF(1-$BC86=0,0,BD86/(1-$BC86))))-IF($F86=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC86,PayEmp,$C86)))","v":0},{"$f":"IF($F86=\"Terminated\",0,IF($AA86=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C86,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMIFS(OverValue,OverEmp,$C86,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA86)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA86,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86))))))","v":100},{"$f":"IF($F86=\"Terminated\",0,IF($AA86=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C86,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMIFS(OverValue,OverEmp,$C86,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA86)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA86,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86))))))","v":0},{"$f":"IF($F86=\"Terminated\",0,IF($AA86=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C86,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMIFS(OverValue,OverEmp,$C86,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA86)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA86,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86))))))","v":0},{"$f":"IF($F86=\"Terminated\",0,IF($AA86=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C86,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMIFS(OverValue,OverEmp,$C86,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA86)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA86,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86))))))","v":0},100,9900,{"$f":"IF($F86=\"Terminated\",0,IF($AA86=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C86,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMIFS(OverValue,OverEmp,$C86,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA86)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA86,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86)))))))","v":100},{"$f":"IF($F86=\"Terminated\",0,IF($AA86=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C86,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMIFS(OverValue,OverEmp,$C86,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA86)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA86,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86)))))))","v":100},{"$f":"IF($F86=\"Terminated\",0,IF($AA86=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C86,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMIFS(OverValue,OverEmp,$C86,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA86)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA86,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86)))))))","v":0},{"$f":"IF($F86=\"Terminated\",0,IF($AA86=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C86,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMIFS(OverValue,OverEmp,$C86,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA86)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA86,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC86,PayEmp,$C86)))))))","v":0},200,10200,300,{"$f":"IF(OR($B86<=Setup!$E$12,$B86>=Setup!$D$12+1),0,IF($F86<>\"Active\",0,IF($AE86=\"Yes\",$AB86,((YEAR($AC86)*12)+MONTH($AC86))-((YEAR($AD86)*12)+MONTH($AD86)-1))))","v":6},{"$f":"IF(OR($B86<=Setup!$E$12,$B86>=Setup!$D$12+1),0,((YEAR($AC86)*12)+MONTH($AC86))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":6},45163,{"$f":"IF(ISNA(VLOOKUP($C86,EmpAll,COLUMN(Emp!$E$4),0)),$AC86,IF(VLOOKUP($C86,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C86,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C86,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C86,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C86,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A86=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C86,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMIFS(OverValue,OverEmp,$C86,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1)),IF(ISNA(VLOOKUP($C86,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG86,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C86,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C86,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C86,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C86,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C86,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},120000,{"$f":"-IF($F86=\"Terminated\",0,IF($AA86=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C86,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA86*12)+(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB86/3,0))*4)+(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB86/6,0))*2)+(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F86=\"Terminated\",0,IF($AA86=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C86,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA86*12)+(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB86/3,0))*4)+(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB86/6,0))*2)+(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F86=\"Terminated\",0,IF($AA86=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C86,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA86*12)+(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB86/3,0))*4)+(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB86/6,0))*2)+(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F86=\"Terminated\",0,IF($AA86=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C86,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA86*12)+(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB86/3,0))*4)+(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB86/6,0))*2)+(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},120000,120000,{"$f":"-IF($F86=\"Terminated\",0,IF($AA86=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C86,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA86*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F86=\"Terminated\",0,IF($AA86=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C86,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA86*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F86=\"Terminated\",0,IF($AA86=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C86,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA86*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F86=\"Terminated\",0,IF($AA86=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C86,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC86),MONTH($AC86)+1,1),OverEnd,\">=\"&DATE(YEAR($AC86),MONTH($AC86),1))>0,SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA86*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C86)*(PayDate<=$AC86)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA86*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C86,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C86,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,0,{"$f":"IF(ISNUMBER($AL86),($AR86*$AL86)-$AI86-$AK86,MAX(0,IF($AL86=\"B\",IF($AR86<Setup!$C$32,($AR86*Setup!$D$32)-$AI86-$AK86,(($AR86-VLOOKUP($AR86,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR86,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR86,TaxBracket2,1),0,1,1)-$AI86-$AK86),IF($AR86<Setup!$C$21,($AR86*Setup!$D$21)-$AI86-$AK86,(($AR86-VLOOKUP($AR86,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR86,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR86,TaxBracket1,1),0,1,1)-$AI86-$AK86))))","v":0},{"$f":"IF(ISNUMBER($AL86),($AX86*$AL86)-$AI86-$AK86,MAX(0,IF($AL86=\"B\",IF($AX86<Setup!$C$32,($AX86*Setup!$D$32)-$AI86-$AK86,(($AX86-VLOOKUP($AX86,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX86,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX86,TaxBracket2,1),0,1,1)-$AI86-$AK86),IF($AX86<Setup!$C$21,($AX86*Setup!$D$21)-$AI86-$AK86,(($AX86-VLOOKUP($AX86,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX86,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX86,TaxBracket1,1),0,1,1)-$AI86-$AK86))))","v":0},0,1,0,120000]
[{"$f":"IF(ROW($A87)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B87,\"yyyy\")&TEXT($B87,\"mm\")&\"-\"&$C87)","v":"202308-EXS006"},{"$f":"IF(ROW($A87)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A87)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A87)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A87)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45163},{"$f":"IF(ROW($A87)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A87)-ROW($A$6)-IF(ROW($A87)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A87)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS006"},{"$f":"IF(ISNA(VLOOKUP($C87,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C87,EmpAll,COLUMN(Emp!$B$4),0))","v":"Andrews MS"},{"$f":"IF(ISNA(VLOOKUP($C87,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C87,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C87,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C87,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC87),MONTH($AC87)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C87,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC87),MONTH($AC87),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F87<>\"Active\",0,IF(COUNTIFS(OverEmp,$C87,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMIFS(OverValue,OverEmp,$C87,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1)),IF(AND($AC87>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C87)>0),SUMIFS(EmpIncrease,EmpCode,$C87),SUMIFS(EmpSalary,EmpCode,$C87))))","v":10000},{"$f":"IF($F87<>\"Active\",0,IF(COUNTIFS(OverEmp,$C87,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMIFS(OverValue,OverEmp,$C87,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1)),0))","v":0},{"$f":"IF($F87<>\"Active\",0,IF(COUNTIFS(OverEmp,$C87,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMIFS(OverValue,OverEmp,$C87,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1)),IF(MONTH(B87)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C87),0)))","v":0},{"$f":"IF($F87<>\"Active\",0,IF(COUNTIFS(OverEmp,$C87,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMIFS(OverValue,OverEmp,$C87,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1)),0))","v":0},{"$f":"IF($F87<>\"Active\",0,IF(COUNTIFS(OverEmp,$C87,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMIFS(OverValue,OverEmp,$C87,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C87,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMIFS(OverValue,OverEmp,$C87,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1)),(($BA87/12*$AA87)+(BB87*IF(1-$BC87=0,0,BD87/(1-$BC87))))-IF($F87=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC87,PayEmp,$C87)))","v":0},{"$f":"IF($F87=\"Terminated\",0,IF($AA87=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C87,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMIFS(OverValue,OverEmp,$C87,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA87)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA87,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87))))))","v":100},{"$f":"IF($F87=\"Terminated\",0,IF($AA87=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C87,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMIFS(OverValue,OverEmp,$C87,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA87)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA87,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87))))))","v":0},{"$f":"IF($F87=\"Terminated\",0,IF($AA87=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C87,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMIFS(OverValue,OverEmp,$C87,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA87)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA87,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87))))))","v":0},{"$f":"IF($F87=\"Terminated\",0,IF($AA87=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C87,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMIFS(OverValue,OverEmp,$C87,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA87)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA87,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87))))))","v":0},100,9900,{"$f":"IF($F87=\"Terminated\",0,IF($AA87=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C87,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMIFS(OverValue,OverEmp,$C87,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA87)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA87,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87)))))))","v":100},{"$f":"IF($F87=\"Terminated\",0,IF($AA87=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C87,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMIFS(OverValue,OverEmp,$C87,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA87)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA87,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87)))))))","v":100},{"$f":"IF($F87=\"Terminated\",0,IF($AA87=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C87,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMIFS(OverValue,OverEmp,$C87,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA87)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA87,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87)))))))","v":0},{"$f":"IF($F87=\"Terminated\",0,IF($AA87=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C87,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMIFS(OverValue,OverEmp,$C87,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA87)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA87,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC87,PayEmp,$C87)))))))","v":0},200,10200,300,{"$f":"IF(OR($B87<=Setup!$E$12,$B87>=Setup!$D$12+1),0,IF($F87<>\"Active\",0,IF($AE87=\"Yes\",$AB87,((YEAR($AC87)*12)+MONTH($AC87))-((YEAR($AD87)*12)+MONTH($AD87)-1))))","v":6},{"$f":"IF(OR($B87<=Setup!$E$12,$B87>=Setup!$D$12+1),0,((YEAR($AC87)*12)+MONTH($AC87))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":6},45163,{"$f":"IF(ISNA(VLOOKUP($C87,EmpAll,COLUMN(Emp!$E$4),0)),$AC87,IF(VLOOKUP($C87,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C87,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C87,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C87,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C87,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A87=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C87,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMIFS(OverValue,OverEmp,$C87,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1)),IF(ISNA(VLOOKUP($C87,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG87,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C87,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C87,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C87,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C87,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C87,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},120000,{"$f":"-IF($F87=\"Terminated\",0,IF($AA87=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C87,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA87*12)+(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB87/3,0))*4)+(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB87/6,0))*2)+(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F87=\"Terminated\",0,IF($AA87=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C87,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA87*12)+(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB87/3,0))*4)+(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB87/6,0))*2)+(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F87=\"Terminated\",0,IF($AA87=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C87,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA87*12)+(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB87/3,0))*4)+(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB87/6,0))*2)+(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F87=\"Terminated\",0,IF($AA87=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C87,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA87*12)+(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB87/3,0))*4)+(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB87/6,0))*2)+(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},120000,120000,{"$f":"-IF($F87=\"Terminated\",0,IF($AA87=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C87,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA87*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F87=\"Terminated\",0,IF($AA87=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C87,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA87*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F87=\"Terminated\",0,IF($AA87=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C87,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA87*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F87=\"Terminated\",0,IF($AA87=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C87,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC87),MONTH($AC87)+1,1),OverEnd,\">=\"&DATE(YEAR($AC87),MONTH($AC87),1))>0,SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA87*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C87)*(PayDate<=$AC87)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA87*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C87,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C87,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,0,{"$f":"IF(ISNUMBER($AL87),($AR87*$AL87)-$AI87-$AK87,MAX(0,IF($AL87=\"B\",IF($AR87<Setup!$C$32,($AR87*Setup!$D$32)-$AI87-$AK87,(($AR87-VLOOKUP($AR87,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR87,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR87,TaxBracket2,1),0,1,1)-$AI87-$AK87),IF($AR87<Setup!$C$21,($AR87*Setup!$D$21)-$AI87-$AK87,(($AR87-VLOOKUP($AR87,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR87,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR87,TaxBracket1,1),0,1,1)-$AI87-$AK87))))","v":0},{"$f":"IF(ISNUMBER($AL87),($AX87*$AL87)-$AI87-$AK87,MAX(0,IF($AL87=\"B\",IF($AX87<Setup!$C$32,($AX87*Setup!$D$32)-$AI87-$AK87,(($AX87-VLOOKUP($AX87,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX87,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX87,TaxBracket2,1),0,1,1)-$AI87-$AK87),IF($AX87<Setup!$C$21,($AX87*Setup!$D$21)-$AI87-$AK87,(($AX87-VLOOKUP($AX87,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX87,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX87,TaxBracket1,1),0,1,1)-$AI87-$AK87))))","v":0},0,1,0,120000]
[{"$f":"IF(ROW($A88)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B88,\"yyyy\")&TEXT($B88,\"mm\")&\"-\"&$C88)","v":"202308-EXS007"},{"$f":"IF(ROW($A88)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A88)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A88)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A88)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45163},{"$f":"IF(ROW($A88)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A88)-ROW($A$6)-IF(ROW($A88)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A88)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS007"},{"$f":"IF(ISNA(VLOOKUP($C88,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C88,EmpAll,COLUMN(Emp!$B$4),0))","v":"Phillips KE"},{"$f":"IF(ISNA(VLOOKUP($C88,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C88,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C88,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C88,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC88),MONTH($AC88)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C88,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC88),MONTH($AC88),0)),\"Terminated\",\"Active\")))","v":"Terminated"},{"$f":"IF($F88<>\"Active\",0,IF(COUNTIFS(OverEmp,$C88,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMIFS(OverValue,OverEmp,$C88,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1)),IF(AND($AC88>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C88)>0),SUMIFS(EmpIncrease,EmpCode,$C88),SUMIFS(EmpSalary,EmpCode,$C88))))","v":0},{"$f":"IF($F88<>\"Active\",0,IF(COUNTIFS(OverEmp,$C88,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMIFS(OverValue,OverEmp,$C88,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1)),0))","v":0},{"$f":"IF($F88<>\"Active\",0,IF(COUNTIFS(OverEmp,$C88,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMIFS(OverValue,OverEmp,$C88,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1)),IF(MONTH(B88)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C88),0)))","v":0},{"$f":"IF($F88<>\"Active\",0,IF(COUNTIFS(OverEmp,$C88,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMIFS(OverValue,OverEmp,$C88,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1)),0))","v":0},{"$f":"IF($F88<>\"Active\",0,IF(COUNTIFS(OverEmp,$C88,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMIFS(OverValue,OverEmp,$C88,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C88,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMIFS(OverValue,OverEmp,$C88,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1)),(($BA88/12*$AA88)+(BB88*IF(1-$BC88=0,0,BD88/(1-$BC88))))-IF($F88=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC88,PayEmp,$C88)))","v":0},{"$f":"IF($F88=\"Terminated\",0,IF($AA88=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C88,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMIFS(OverValue,OverEmp,$C88,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA88)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA88,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88))))))","v":0},{"$f":"IF($F88=\"Terminated\",0,IF($AA88=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C88,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMIFS(OverValue,OverEmp,$C88,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA88)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA88,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88))))))","v":0},{"$f":"IF($F88=\"Terminated\",0,IF($AA88=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C88,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMIFS(OverValue,OverEmp,$C88,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA88)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA88,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88))))))","v":0},{"$f":"IF($F88=\"Terminated\",0,IF($AA88=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C88,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMIFS(OverValue,OverEmp,$C88,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA88)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA88,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88))))))","v":0},0,0,{"$f":"IF($F88=\"Terminated\",0,IF($AA88=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C88,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMIFS(OverValue,OverEmp,$C88,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA88)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA88,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88)))))))","v":0},{"$f":"IF($F88=\"Terminated\",0,IF($AA88=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C88,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMIFS(OverValue,OverEmp,$C88,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA88)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA88,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88)))))))","v":0},{"$f":"IF($F88=\"Terminated\",0,IF($AA88=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C88,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMIFS(OverValue,OverEmp,$C88,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA88)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA88,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88)))))))","v":0},{"$f":"IF($F88=\"Terminated\",0,IF($AA88=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C88,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMIFS(OverValue,OverEmp,$C88,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA88)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA88,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC88,PayEmp,$C88)))))))","v":0},0,0,0,{"$f":"IF(OR($B88<=Setup!$E$12,$B88>=Setup!$D$12+1),0,IF($F88<>\"Active\",0,IF($AE88=\"Yes\",$AB88,((YEAR($AC88)*12)+MONTH($AC88))-((YEAR($AD88)*12)+MONTH($AD88)-1))))","v":0},{"$f":"IF(OR($B88<=Setup!$E$12,$B88>=Setup!$D$12+1),0,((YEAR($AC88)*12)+MONTH($AC88))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":6},45163,{"$f":"IF(ISNA(VLOOKUP($C88,EmpAll,COLUMN(Emp!$E$4),0)),$AC88,IF(VLOOKUP($C88,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C88,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C88,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C88,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C88,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A88=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C88,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMIFS(OverValue,OverEmp,$C88,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1)),IF(ISNA(VLOOKUP($C88,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG88,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C88,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C88,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C88,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C88,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C88,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F88=\"Terminated\",0,IF($AA88=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C88,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA88*12)+(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB88/3,0))*4)+(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB88/6,0))*2)+(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F88=\"Terminated\",0,IF($AA88=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C88,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA88*12)+(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB88/3,0))*4)+(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB88/6,0))*2)+(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F88=\"Terminated\",0,IF($AA88=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C88,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA88*12)+(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB88/3,0))*4)+(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB88/6,0))*2)+(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F88=\"Terminated\",0,IF($AA88=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C88,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA88*12)+(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB88/3,0))*4)+(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB88/6,0))*2)+(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F88=\"Terminated\",0,IF($AA88=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C88,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA88*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F88=\"Terminated\",0,IF($AA88=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C88,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA88*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F88=\"Terminated\",0,IF($AA88=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C88,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA88*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F88=\"Terminated\",0,IF($AA88=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C88,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC88),MONTH($AC88)+1,1),OverEnd,\">=\"&DATE(YEAR($AC88),MONTH($AC88),1))>0,SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA88*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C88)*(PayDate<=$AC88)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA88*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C88,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C88,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL88),($AR88*$AL88)-$AI88-$AK88,MAX(0,IF($AL88=\"B\",IF($AR88<Setup!$C$32,($AR88*Setup!$D$32)-$AI88-$AK88,(($AR88-VLOOKUP($AR88,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR88,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR88,TaxBracket2,1),0,1,1)-$AI88-$AK88),IF($AR88<Setup!$C$21,($AR88*Setup!$D$21)-$AI88-$AK88,(($AR88-VLOOKUP($AR88,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR88,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR88,TaxBracket1,1),0,1,1)-$AI88-$AK88))))","v":0},{"$f":"IF(ISNUMBER($AL88),($AX88*$AL88)-$AI88-$AK88,MAX(0,IF($AL88=\"B\",IF($AX88<Setup!$C$32,($AX88*Setup!$D$32)-$AI88-$AK88,(($AX88-VLOOKUP($AX88,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX88,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX88,TaxBracket2,1),0,1,1)-$AI88-$AK88),IF($AX88<Setup!$C$21,($AX88*Setup!$D$21)-$AI88-$AK88,(($AX88-VLOOKUP($AX88,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX88,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX88,TaxBracket1,1),0,1,1)-$AI88-$AK88))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A89)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B89,\"yyyy\")&TEXT($B89,\"mm\")&\"-\"&$C89)","v":"202308-EXS008"},{"$f":"IF(ROW($A89)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A89)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A89)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A89)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45163},{"$f":"IF(ROW($A89)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A89)-ROW($A$6)-IF(ROW($A89)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A89)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS008"},{"$f":"IF(ISNA(VLOOKUP($C89,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C89,EmpAll,COLUMN(Emp!$B$4),0))","v":"Matthews B"},{"$f":"IF(ISNA(VLOOKUP($C89,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C89,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C89,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C89,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC89),MONTH($AC89)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C89,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC89),MONTH($AC89),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F89<>\"Active\",0,IF(COUNTIFS(OverEmp,$C89,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMIFS(OverValue,OverEmp,$C89,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1)),IF(AND($AC89>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C89)>0),SUMIFS(EmpIncrease,EmpCode,$C89),SUMIFS(EmpSalary,EmpCode,$C89))))","v":9000},{"$f":"IF($F89<>\"Active\",0,IF(COUNTIFS(OverEmp,$C89,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMIFS(OverValue,OverEmp,$C89,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1)),0))","v":0},{"$f":"IF($F89<>\"Active\",0,IF(COUNTIFS(OverEmp,$C89,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMIFS(OverValue,OverEmp,$C89,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1)),IF(MONTH(B89)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C89),0)))","v":0},{"$f":"IF($F89<>\"Active\",0,IF(COUNTIFS(OverEmp,$C89,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMIFS(OverValue,OverEmp,$C89,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1)),0))","v":0},{"$f":"IF($F89<>\"Active\",0,IF(COUNTIFS(OverEmp,$C89,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMIFS(OverValue,OverEmp,$C89,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C89,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMIFS(OverValue,OverEmp,$C89,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1)),(($BA89/12*$AA89)+(BB89*IF(1-$BC89=0,0,BD89/(1-$BC89))))-IF($F89=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC89,PayEmp,$C89)))","v":183.75},{"$f":"IF($F89=\"Terminated\",0,IF($AA89=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C89,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMIFS(OverValue,OverEmp,$C89,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA89)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA89,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89))))))","v":90},{"$f":"IF($F89=\"Terminated\",0,IF($AA89=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C89,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMIFS(OverValue,OverEmp,$C89,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA89)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA89,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89))))))","v":0},{"$f":"IF($F89=\"Terminated\",0,IF($AA89=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C89,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMIFS(OverValue,OverEmp,$C89,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA89)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA89,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89))))))","v":0},{"$f":"IF($F89=\"Terminated\",0,IF($AA89=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C89,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMIFS(OverValue,OverEmp,$C89,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA89)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA89,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89))))))","v":0},273.75,8726.25,{"$f":"IF($F89=\"Terminated\",0,IF($AA89=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C89,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMIFS(OverValue,OverEmp,$C89,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA89)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA89,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89)))))))","v":90},{"$f":"IF($F89=\"Terminated\",0,IF($AA89=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C89,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMIFS(OverValue,OverEmp,$C89,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA89)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA89,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89)))))))","v":90},{"$f":"IF($F89=\"Terminated\",0,IF($AA89=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C89,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMIFS(OverValue,OverEmp,$C89,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA89)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA89,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89)))))))","v":0},{"$f":"IF($F89=\"Terminated\",0,IF($AA89=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C89,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMIFS(OverValue,OverEmp,$C89,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA89)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA89,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC89,PayEmp,$C89)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B89<=Setup!$E$12,$B89>=Setup!$D$12+1),0,IF($F89<>\"Active\",0,IF($AE89=\"Yes\",$AB89,((YEAR($AC89)*12)+MONTH($AC89))-((YEAR($AD89)*12)+MONTH($AD89)-1))))","v":6},{"$f":"IF(OR($B89<=Setup!$E$12,$B89>=Setup!$D$12+1),0,((YEAR($AC89)*12)+MONTH($AC89))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":6},45163,{"$f":"IF(ISNA(VLOOKUP($C89,EmpAll,COLUMN(Emp!$E$4),0)),$AC89,IF(VLOOKUP($C89,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C89,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C89,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C89,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C89,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A89=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C89,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMIFS(OverValue,OverEmp,$C89,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1)),IF(ISNA(VLOOKUP($C89,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG89,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C89,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C89,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C89,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C89,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C89,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F89=\"Terminated\",0,IF($AA89=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C89,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA89*12)+(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB89/3,0))*4)+(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB89/6,0))*2)+(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F89=\"Terminated\",0,IF($AA89=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C89,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA89*12)+(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB89/3,0))*4)+(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB89/6,0))*2)+(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F89=\"Terminated\",0,IF($AA89=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C89,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA89*12)+(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB89/3,0))*4)+(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB89/6,0))*2)+(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F89=\"Terminated\",0,IF($AA89=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C89,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA89*12)+(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB89/3,0))*4)+(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB89/6,0))*2)+(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F89=\"Terminated\",0,IF($AA89=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C89,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA89*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F89=\"Terminated\",0,IF($AA89=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C89,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA89*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F89=\"Terminated\",0,IF($AA89=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C89,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA89*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F89=\"Terminated\",0,IF($AA89=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C89,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC89),MONTH($AC89)+1,1),OverEnd,\">=\"&DATE(YEAR($AC89),MONTH($AC89),1))>0,SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA89*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C89)*(PayDate<=$AC89)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA89*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C89,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C89,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL89),($AR89*$AL89)-$AI89-$AK89,MAX(0,IF($AL89=\"B\",IF($AR89<Setup!$C$32,($AR89*Setup!$D$32)-$AI89-$AK89,(($AR89-VLOOKUP($AR89,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR89,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR89,TaxBracket2,1),0,1,1)-$AI89-$AK89),IF($AR89<Setup!$C$21,($AR89*Setup!$D$21)-$AI89-$AK89,(($AR89-VLOOKUP($AR89,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR89,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR89,TaxBracket1,1),0,1,1)-$AI89-$AK89))))","v":2205},{"$f":"IF(ISNUMBER($AL89),($AX89*$AL89)-$AI89-$AK89,MAX(0,IF($AL89=\"B\",IF($AX89<Setup!$C$32,($AX89*Setup!$D$32)-$AI89-$AK89,(($AX89-VLOOKUP($AX89,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX89,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX89,TaxBracket2,1),0,1,1)-$AI89-$AK89),IF($AX89<Setup!$C$21,($AX89*Setup!$D$21)-$AI89-$AK89,(($AX89-VLOOKUP($AX89,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX89,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX89,TaxBracket1,1),0,1,1)-$AI89-$AK89))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A90)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B90,\"yyyy\")&TEXT($B90,\"mm\")&\"-\"&$C90)","v":"202308-EXS009"},{"$f":"IF(ROW($A90)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A90)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A90)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A90)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45163},{"$f":"IF(ROW($A90)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A90)-ROW($A$6)-IF(ROW($A90)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A90)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS009"},{"$f":"IF(ISNA(VLOOKUP($C90,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C90,EmpAll,COLUMN(Emp!$B$4),0))","v":"Brown JT"},{"$f":"IF(ISNA(VLOOKUP($C90,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C90,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C90,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C90,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC90),MONTH($AC90)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C90,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC90),MONTH($AC90),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F90<>\"Active\",0,IF(COUNTIFS(OverEmp,$C90,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMIFS(OverValue,OverEmp,$C90,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1)),IF(AND($AC90>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C90)>0),SUMIFS(EmpIncrease,EmpCode,$C90),SUMIFS(EmpSalary,EmpCode,$C90))))","v":9000},{"$f":"IF($F90<>\"Active\",0,IF(COUNTIFS(OverEmp,$C90,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMIFS(OverValue,OverEmp,$C90,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1)),0))","v":0},{"$f":"IF($F90<>\"Active\",0,IF(COUNTIFS(OverEmp,$C90,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMIFS(OverValue,OverEmp,$C90,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1)),IF(MONTH(B90)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C90),0)))","v":0},{"$f":"IF($F90<>\"Active\",0,IF(COUNTIFS(OverEmp,$C90,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMIFS(OverValue,OverEmp,$C90,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1)),0))","v":0},{"$f":"IF($F90<>\"Active\",0,IF(COUNTIFS(OverEmp,$C90,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMIFS(OverValue,OverEmp,$C90,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C90,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMIFS(OverValue,OverEmp,$C90,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1)),(($BA90/12*$AA90)+(BB90*IF(1-$BC90=0,0,BD90/(1-$BC90))))-IF($F90=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC90,PayEmp,$C90)))","v":183.75},{"$f":"IF($F90=\"Terminated\",0,IF($AA90=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C90,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMIFS(OverValue,OverEmp,$C90,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA90)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA90,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90))))))","v":90},{"$f":"IF($F90=\"Terminated\",0,IF($AA90=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C90,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMIFS(OverValue,OverEmp,$C90,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA90)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA90,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90))))))","v":0},{"$f":"IF($F90=\"Terminated\",0,IF($AA90=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C90,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMIFS(OverValue,OverEmp,$C90,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA90)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA90,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90))))))","v":0},{"$f":"IF($F90=\"Terminated\",0,IF($AA90=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C90,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMIFS(OverValue,OverEmp,$C90,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA90)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA90,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90))))))","v":0},273.75,8726.25,{"$f":"IF($F90=\"Terminated\",0,IF($AA90=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C90,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMIFS(OverValue,OverEmp,$C90,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA90)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA90,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90)))))))","v":90},{"$f":"IF($F90=\"Terminated\",0,IF($AA90=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C90,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMIFS(OverValue,OverEmp,$C90,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA90)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA90,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90)))))))","v":90},{"$f":"IF($F90=\"Terminated\",0,IF($AA90=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C90,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMIFS(OverValue,OverEmp,$C90,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA90)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA90,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90)))))))","v":0},{"$f":"IF($F90=\"Terminated\",0,IF($AA90=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C90,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMIFS(OverValue,OverEmp,$C90,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA90)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA90,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC90,PayEmp,$C90)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B90<=Setup!$E$12,$B90>=Setup!$D$12+1),0,IF($F90<>\"Active\",0,IF($AE90=\"Yes\",$AB90,((YEAR($AC90)*12)+MONTH($AC90))-((YEAR($AD90)*12)+MONTH($AD90)-1))))","v":6},{"$f":"IF(OR($B90<=Setup!$E$12,$B90>=Setup!$D$12+1),0,((YEAR($AC90)*12)+MONTH($AC90))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":6},45163,{"$f":"IF(ISNA(VLOOKUP($C90,EmpAll,COLUMN(Emp!$E$4),0)),$AC90,IF(VLOOKUP($C90,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C90,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C90,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C90,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C90,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A90=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C90,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMIFS(OverValue,OverEmp,$C90,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1)),IF(ISNA(VLOOKUP($C90,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG90,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C90,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C90,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C90,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C90,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C90,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F90=\"Terminated\",0,IF($AA90=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C90,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA90*12)+(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB90/3,0))*4)+(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB90/6,0))*2)+(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F90=\"Terminated\",0,IF($AA90=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C90,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA90*12)+(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB90/3,0))*4)+(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB90/6,0))*2)+(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F90=\"Terminated\",0,IF($AA90=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C90,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA90*12)+(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB90/3,0))*4)+(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB90/6,0))*2)+(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F90=\"Terminated\",0,IF($AA90=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C90,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA90*12)+(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB90/3,0))*4)+(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB90/6,0))*2)+(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F90=\"Terminated\",0,IF($AA90=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C90,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA90*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F90=\"Terminated\",0,IF($AA90=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C90,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA90*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F90=\"Terminated\",0,IF($AA90=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C90,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA90*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F90=\"Terminated\",0,IF($AA90=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C90,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC90),MONTH($AC90)+1,1),OverEnd,\">=\"&DATE(YEAR($AC90),MONTH($AC90),1))>0,SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA90*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C90)*(PayDate<=$AC90)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA90*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C90,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C90,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL90),($AR90*$AL90)-$AI90-$AK90,MAX(0,IF($AL90=\"B\",IF($AR90<Setup!$C$32,($AR90*Setup!$D$32)-$AI90-$AK90,(($AR90-VLOOKUP($AR90,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR90,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR90,TaxBracket2,1),0,1,1)-$AI90-$AK90),IF($AR90<Setup!$C$21,($AR90*Setup!$D$21)-$AI90-$AK90,(($AR90-VLOOKUP($AR90,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR90,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR90,TaxBracket1,1),0,1,1)-$AI90-$AK90))))","v":2205},{"$f":"IF(ISNUMBER($AL90),($AX90*$AL90)-$AI90-$AK90,MAX(0,IF($AL90=\"B\",IF($AX90<Setup!$C$32,($AX90*Setup!$D$32)-$AI90-$AK90,(($AX90-VLOOKUP($AX90,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX90,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX90,TaxBracket2,1),0,1,1)-$AI90-$AK90),IF($AX90<Setup!$C$21,($AX90*Setup!$D$21)-$AI90-$AK90,(($AX90-VLOOKUP($AX90,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX90,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX90,TaxBracket1,1),0,1,1)-$AI90-$AK90))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A91)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B91,\"yyyy\")&TEXT($B91,\"mm\")&\"-\"&$C91)","v":"202308-EXS010"},{"$f":"IF(ROW($A91)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A91)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A91)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A91)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45163},{"$f":"IF(ROW($A91)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A91)-ROW($A$6)-IF(ROW($A91)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A91)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS010"},{"$f":"IF(ISNA(VLOOKUP($C91,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C91,EmpAll,COLUMN(Emp!$B$4),0))","v":"Lewis I"},{"$f":"IF(ISNA(VLOOKUP($C91,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C91,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C91,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C91,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC91),MONTH($AC91)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C91,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC91),MONTH($AC91),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F91<>\"Active\",0,IF(COUNTIFS(OverEmp,$C91,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMIFS(OverValue,OverEmp,$C91,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1)),IF(AND($AC91>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C91)>0),SUMIFS(EmpIncrease,EmpCode,$C91),SUMIFS(EmpSalary,EmpCode,$C91))))","v":9000},{"$f":"IF($F91<>\"Active\",0,IF(COUNTIFS(OverEmp,$C91,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMIFS(OverValue,OverEmp,$C91,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1)),0))","v":0},{"$f":"IF($F91<>\"Active\",0,IF(COUNTIFS(OverEmp,$C91,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMIFS(OverValue,OverEmp,$C91,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1)),IF(MONTH(B91)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C91),0)))","v":0},{"$f":"IF($F91<>\"Active\",0,IF(COUNTIFS(OverEmp,$C91,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMIFS(OverValue,OverEmp,$C91,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1)),0))","v":0},{"$f":"IF($F91<>\"Active\",0,IF(COUNTIFS(OverEmp,$C91,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMIFS(OverValue,OverEmp,$C91,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C91,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMIFS(OverValue,OverEmp,$C91,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1)),(($BA91/12*$AA91)+(BB91*IF(1-$BC91=0,0,BD91/(1-$BC91))))-IF($F91=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC91,PayEmp,$C91)))","v":183.75},{"$f":"IF($F91=\"Terminated\",0,IF($AA91=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C91,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMIFS(OverValue,OverEmp,$C91,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA91)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA91,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91))))))","v":90},{"$f":"IF($F91=\"Terminated\",0,IF($AA91=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C91,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMIFS(OverValue,OverEmp,$C91,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA91)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA91,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91))))))","v":0},{"$f":"IF($F91=\"Terminated\",0,IF($AA91=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C91,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMIFS(OverValue,OverEmp,$C91,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA91)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA91,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91))))))","v":0},{"$f":"IF($F91=\"Terminated\",0,IF($AA91=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C91,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMIFS(OverValue,OverEmp,$C91,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA91)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA91,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91))))))","v":0},273.75,8726.25,{"$f":"IF($F91=\"Terminated\",0,IF($AA91=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C91,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMIFS(OverValue,OverEmp,$C91,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA91)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA91,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91)))))))","v":90},{"$f":"IF($F91=\"Terminated\",0,IF($AA91=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C91,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMIFS(OverValue,OverEmp,$C91,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA91)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA91,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91)))))))","v":90},{"$f":"IF($F91=\"Terminated\",0,IF($AA91=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C91,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMIFS(OverValue,OverEmp,$C91,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA91)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA91,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91)))))))","v":0},{"$f":"IF($F91=\"Terminated\",0,IF($AA91=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C91,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMIFS(OverValue,OverEmp,$C91,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA91)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA91,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC91,PayEmp,$C91)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B91<=Setup!$E$12,$B91>=Setup!$D$12+1),0,IF($F91<>\"Active\",0,IF($AE91=\"Yes\",$AB91,((YEAR($AC91)*12)+MONTH($AC91))-((YEAR($AD91)*12)+MONTH($AD91)-1))))","v":6},{"$f":"IF(OR($B91<=Setup!$E$12,$B91>=Setup!$D$12+1),0,((YEAR($AC91)*12)+MONTH($AC91))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":6},45163,{"$f":"IF(ISNA(VLOOKUP($C91,EmpAll,COLUMN(Emp!$E$4),0)),$AC91,IF(VLOOKUP($C91,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C91,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C91,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C91,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C91,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A91=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C91,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMIFS(OverValue,OverEmp,$C91,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1)),IF(ISNA(VLOOKUP($C91,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG91,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C91,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C91,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C91,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C91,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C91,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F91=\"Terminated\",0,IF($AA91=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C91,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA91*12)+(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB91/3,0))*4)+(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB91/6,0))*2)+(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F91=\"Terminated\",0,IF($AA91=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C91,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA91*12)+(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB91/3,0))*4)+(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB91/6,0))*2)+(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F91=\"Terminated\",0,IF($AA91=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C91,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA91*12)+(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB91/3,0))*4)+(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB91/6,0))*2)+(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F91=\"Terminated\",0,IF($AA91=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C91,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA91*12)+(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB91/3,0))*4)+(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB91/6,0))*2)+(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F91=\"Terminated\",0,IF($AA91=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C91,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA91*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F91=\"Terminated\",0,IF($AA91=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C91,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA91*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F91=\"Terminated\",0,IF($AA91=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C91,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA91*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F91=\"Terminated\",0,IF($AA91=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C91,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC91),MONTH($AC91)+1,1),OverEnd,\">=\"&DATE(YEAR($AC91),MONTH($AC91),1))>0,SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA91*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C91)*(PayDate<=$AC91)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA91*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C91,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C91,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL91),($AR91*$AL91)-$AI91-$AK91,MAX(0,IF($AL91=\"B\",IF($AR91<Setup!$C$32,($AR91*Setup!$D$32)-$AI91-$AK91,(($AR91-VLOOKUP($AR91,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR91,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR91,TaxBracket2,1),0,1,1)-$AI91-$AK91),IF($AR91<Setup!$C$21,($AR91*Setup!$D$21)-$AI91-$AK91,(($AR91-VLOOKUP($AR91,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR91,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR91,TaxBracket1,1),0,1,1)-$AI91-$AK91))))","v":2205},{"$f":"IF(ISNUMBER($AL91),($AX91*$AL91)-$AI91-$AK91,MAX(0,IF($AL91=\"B\",IF($AX91<Setup!$C$32,($AX91*Setup!$D$32)-$AI91-$AK91,(($AX91-VLOOKUP($AX91,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX91,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX91,TaxBracket2,1),0,1,1)-$AI91-$AK91),IF($AX91<Setup!$C$21,($AX91*Setup!$D$21)-$AI91-$AK91,(($AX91-VLOOKUP($AX91,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX91,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX91,TaxBracket1,1),0,1,1)-$AI91-$AK91))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A92)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B92,\"yyyy\")&TEXT($B92,\"mm\")&\"-\"&$C92)","v":"202308-EXS011"},{"$f":"IF(ROW($A92)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A92)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A92)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A92)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45163},{"$f":"IF(ROW($A92)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A92)-ROW($A$6)-IF(ROW($A92)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A92)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS011"},{"$f":"IF(ISNA(VLOOKUP($C92,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C92,EmpAll,COLUMN(Emp!$B$4),0))","v":"Newport GD"},{"$f":"IF(ISNA(VLOOKUP($C92,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C92,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C92,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C92,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC92),MONTH($AC92)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C92,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC92),MONTH($AC92),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F92<>\"Active\",0,IF(COUNTIFS(OverEmp,$C92,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMIFS(OverValue,OverEmp,$C92,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1)),IF(AND($AC92>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C92)>0),SUMIFS(EmpIncrease,EmpCode,$C92),SUMIFS(EmpSalary,EmpCode,$C92))))","v":5000},{"$f":"IF($F92<>\"Active\",0,IF(COUNTIFS(OverEmp,$C92,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMIFS(OverValue,OverEmp,$C92,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1)),0))","v":0},{"$f":"IF($F92<>\"Active\",0,IF(COUNTIFS(OverEmp,$C92,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMIFS(OverValue,OverEmp,$C92,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1)),IF(MONTH(B92)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C92),0)))","v":0},{"$f":"IF($F92<>\"Active\",0,IF(COUNTIFS(OverEmp,$C92,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMIFS(OverValue,OverEmp,$C92,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1)),0))","v":0},{"$f":"IF($F92<>\"Active\",0,IF(COUNTIFS(OverEmp,$C92,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMIFS(OverValue,OverEmp,$C92,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C92,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMIFS(OverValue,OverEmp,$C92,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1)),(($BA92/12*$AA92)+(BB92*IF(1-$BC92=0,0,BD92/(1-$BC92))))-IF($F92=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC92,PayEmp,$C92)))","v":0},{"$f":"IF($F92=\"Terminated\",0,IF($AA92=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C92,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMIFS(OverValue,OverEmp,$C92,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA92)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA92,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92))))))","v":50},{"$f":"IF($F92=\"Terminated\",0,IF($AA92=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C92,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMIFS(OverValue,OverEmp,$C92,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA92)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA92,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92))))))","v":0},{"$f":"IF($F92=\"Terminated\",0,IF($AA92=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C92,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMIFS(OverValue,OverEmp,$C92,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA92)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA92,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92))))))","v":0},{"$f":"IF($F92=\"Terminated\",0,IF($AA92=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C92,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMIFS(OverValue,OverEmp,$C92,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA92)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA92,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92))))))","v":0},50,4950,{"$f":"IF($F92=\"Terminated\",0,IF($AA92=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C92,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMIFS(OverValue,OverEmp,$C92,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA92)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA92,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92)))))))","v":50},{"$f":"IF($F92=\"Terminated\",0,IF($AA92=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C92,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMIFS(OverValue,OverEmp,$C92,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA92)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA92,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92)))))))","v":50},{"$f":"IF($F92=\"Terminated\",0,IF($AA92=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C92,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMIFS(OverValue,OverEmp,$C92,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA92)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA92,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92)))))))","v":0},{"$f":"IF($F92=\"Terminated\",0,IF($AA92=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C92,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMIFS(OverValue,OverEmp,$C92,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA92)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA92,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC92,PayEmp,$C92)))))))","v":0},100,5100,150,{"$f":"IF(OR($B92<=Setup!$E$12,$B92>=Setup!$D$12+1),0,IF($F92<>\"Active\",0,IF($AE92=\"Yes\",$AB92,((YEAR($AC92)*12)+MONTH($AC92))-((YEAR($AD92)*12)+MONTH($AD92)-1))))","v":6},{"$f":"IF(OR($B92<=Setup!$E$12,$B92>=Setup!$D$12+1),0,((YEAR($AC92)*12)+MONTH($AC92))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":6},45163,{"$f":"IF(ISNA(VLOOKUP($C92,EmpAll,COLUMN(Emp!$E$4),0)),$AC92,IF(VLOOKUP($C92,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C92,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C92,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C92,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C92,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A92=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C92,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMIFS(OverValue,OverEmp,$C92,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1)),IF(ISNA(VLOOKUP($C92,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG92,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C92,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C92,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C92,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C92,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C92,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F92=\"Terminated\",0,IF($AA92=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C92,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA92*12)+(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB92/3,0))*4)+(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB92/6,0))*2)+(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F92=\"Terminated\",0,IF($AA92=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C92,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA92*12)+(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB92/3,0))*4)+(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB92/6,0))*2)+(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F92=\"Terminated\",0,IF($AA92=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C92,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA92*12)+(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB92/3,0))*4)+(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB92/6,0))*2)+(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F92=\"Terminated\",0,IF($AA92=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C92,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA92*12)+(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB92/3,0))*4)+(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB92/6,0))*2)+(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F92=\"Terminated\",0,IF($AA92=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C92,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA92*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F92=\"Terminated\",0,IF($AA92=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C92,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA92*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F92=\"Terminated\",0,IF($AA92=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C92,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA92*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F92=\"Terminated\",0,IF($AA92=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C92,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC92),MONTH($AC92)+1,1),OverEnd,\">=\"&DATE(YEAR($AC92),MONTH($AC92),1))>0,SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA92*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C92)*(PayDate<=$AC92)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA92*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C92,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C92,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL92),($AR92*$AL92)-$AI92-$AK92,MAX(0,IF($AL92=\"B\",IF($AR92<Setup!$C$32,($AR92*Setup!$D$32)-$AI92-$AK92,(($AR92-VLOOKUP($AR92,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR92,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR92,TaxBracket2,1),0,1,1)-$AI92-$AK92),IF($AR92<Setup!$C$21,($AR92*Setup!$D$21)-$AI92-$AK92,(($AR92-VLOOKUP($AR92,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR92,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR92,TaxBracket1,1),0,1,1)-$AI92-$AK92))))","v":0},{"$f":"IF(ISNUMBER($AL92),($AX92*$AL92)-$AI92-$AK92,MAX(0,IF($AL92=\"B\",IF($AX92<Setup!$C$32,($AX92*Setup!$D$32)-$AI92-$AK92,(($AX92-VLOOKUP($AX92,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX92,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX92,TaxBracket2,1),0,1,1)-$AI92-$AK92),IF($AX92<Setup!$C$21,($AX92*Setup!$D$21)-$AI92-$AK92,(($AX92-VLOOKUP($AX92,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX92,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX92,TaxBracket1,1),0,1,1)-$AI92-$AK92))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A93)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B93,\"yyyy\")&TEXT($B93,\"mm\")&\"-\"&$C93)","v":"202308-EXS012"},{"$f":"IF(ROW($A93)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A93)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A93)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A93)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45163},{"$f":"IF(ROW($A93)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A93)-ROW($A$6)-IF(ROW($A93)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A93)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS012"},{"$f":"IF(ISNA(VLOOKUP($C93,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C93,EmpAll,COLUMN(Emp!$B$4),0))","v":"Williams VS"},{"$f":"IF(ISNA(VLOOKUP($C93,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C93,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C93,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C93,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC93),MONTH($AC93)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C93,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC93),MONTH($AC93),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F93<>\"Active\",0,IF(COUNTIFS(OverEmp,$C93,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMIFS(OverValue,OverEmp,$C93,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1)),IF(AND($AC93>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C93)>0),SUMIFS(EmpIncrease,EmpCode,$C93),SUMIFS(EmpSalary,EmpCode,$C93))))","v":5000},{"$f":"IF($F93<>\"Active\",0,IF(COUNTIFS(OverEmp,$C93,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMIFS(OverValue,OverEmp,$C93,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1)),0))","v":0},{"$f":"IF($F93<>\"Active\",0,IF(COUNTIFS(OverEmp,$C93,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMIFS(OverValue,OverEmp,$C93,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1)),IF(MONTH(B93)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C93),0)))","v":0},{"$f":"IF($F93<>\"Active\",0,IF(COUNTIFS(OverEmp,$C93,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMIFS(OverValue,OverEmp,$C93,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1)),0))","v":0},{"$f":"IF($F93<>\"Active\",0,IF(COUNTIFS(OverEmp,$C93,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMIFS(OverValue,OverEmp,$C93,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C93,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMIFS(OverValue,OverEmp,$C93,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1)),(($BA93/12*$AA93)+(BB93*IF(1-$BC93=0,0,BD93/(1-$BC93))))-IF($F93=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC93,PayEmp,$C93)))","v":0},{"$f":"IF($F93=\"Terminated\",0,IF($AA93=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C93,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMIFS(OverValue,OverEmp,$C93,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA93)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA93,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93))))))","v":50},{"$f":"IF($F93=\"Terminated\",0,IF($AA93=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C93,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMIFS(OverValue,OverEmp,$C93,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA93)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA93,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93))))))","v":0},{"$f":"IF($F93=\"Terminated\",0,IF($AA93=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C93,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMIFS(OverValue,OverEmp,$C93,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA93)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA93,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93))))))","v":0},{"$f":"IF($F93=\"Terminated\",0,IF($AA93=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C93,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMIFS(OverValue,OverEmp,$C93,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA93)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA93,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93))))))","v":0},50,4950,{"$f":"IF($F93=\"Terminated\",0,IF($AA93=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C93,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMIFS(OverValue,OverEmp,$C93,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA93)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA93,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93)))))))","v":50},{"$f":"IF($F93=\"Terminated\",0,IF($AA93=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C93,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMIFS(OverValue,OverEmp,$C93,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA93)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA93,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93)))))))","v":50},{"$f":"IF($F93=\"Terminated\",0,IF($AA93=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C93,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMIFS(OverValue,OverEmp,$C93,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA93)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA93,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93)))))))","v":0},{"$f":"IF($F93=\"Terminated\",0,IF($AA93=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C93,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMIFS(OverValue,OverEmp,$C93,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA93)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA93,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC93,PayEmp,$C93)))))))","v":0},100,5100,150,{"$f":"IF(OR($B93<=Setup!$E$12,$B93>=Setup!$D$12+1),0,IF($F93<>\"Active\",0,IF($AE93=\"Yes\",$AB93,((YEAR($AC93)*12)+MONTH($AC93))-((YEAR($AD93)*12)+MONTH($AD93)-1))))","v":6},{"$f":"IF(OR($B93<=Setup!$E$12,$B93>=Setup!$D$12+1),0,((YEAR($AC93)*12)+MONTH($AC93))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":6},45163,{"$f":"IF(ISNA(VLOOKUP($C93,EmpAll,COLUMN(Emp!$E$4),0)),$AC93,IF(VLOOKUP($C93,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C93,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C93,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C93,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C93,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A93=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C93,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMIFS(OverValue,OverEmp,$C93,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1)),IF(ISNA(VLOOKUP($C93,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG93,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C93,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C93,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C93,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C93,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C93,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F93=\"Terminated\",0,IF($AA93=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C93,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA93*12)+(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB93/3,0))*4)+(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB93/6,0))*2)+(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F93=\"Terminated\",0,IF($AA93=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C93,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA93*12)+(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB93/3,0))*4)+(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB93/6,0))*2)+(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F93=\"Terminated\",0,IF($AA93=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C93,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA93*12)+(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB93/3,0))*4)+(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB93/6,0))*2)+(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F93=\"Terminated\",0,IF($AA93=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C93,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA93*12)+(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB93/3,0))*4)+(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB93/6,0))*2)+(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F93=\"Terminated\",0,IF($AA93=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C93,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA93*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F93=\"Terminated\",0,IF($AA93=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C93,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA93*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F93=\"Terminated\",0,IF($AA93=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C93,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA93*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F93=\"Terminated\",0,IF($AA93=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C93,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC93),MONTH($AC93)+1,1),OverEnd,\">=\"&DATE(YEAR($AC93),MONTH($AC93),1))>0,SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA93*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C93)*(PayDate<=$AC93)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA93*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C93,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C93,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL93),($AR93*$AL93)-$AI93-$AK93,MAX(0,IF($AL93=\"B\",IF($AR93<Setup!$C$32,($AR93*Setup!$D$32)-$AI93-$AK93,(($AR93-VLOOKUP($AR93,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR93,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR93,TaxBracket2,1),0,1,1)-$AI93-$AK93),IF($AR93<Setup!$C$21,($AR93*Setup!$D$21)-$AI93-$AK93,(($AR93-VLOOKUP($AR93,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR93,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR93,TaxBracket1,1),0,1,1)-$AI93-$AK93))))","v":0},{"$f":"IF(ISNUMBER($AL93),($AX93*$AL93)-$AI93-$AK93,MAX(0,IF($AL93=\"B\",IF($AX93<Setup!$C$32,($AX93*Setup!$D$32)-$AI93-$AK93,(($AX93-VLOOKUP($AX93,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX93,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX93,TaxBracket2,1),0,1,1)-$AI93-$AK93),IF($AX93<Setup!$C$21,($AX93*Setup!$D$21)-$AI93-$AK93,(($AX93-VLOOKUP($AX93,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX93,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX93,TaxBracket1,1),0,1,1)-$AI93-$AK93))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A94)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B94,\"yyyy\")&TEXT($B94,\"mm\")&\"-\"&$C94)","v":"202308-EXS013"},{"$f":"IF(ROW($A94)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A94)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A94)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A94)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45163},{"$f":"IF(ROW($A94)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A94)-ROW($A$6)-IF(ROW($A94)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A94)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS013"},{"$f":"IF(ISNA(VLOOKUP($C94,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C94,EmpAll,COLUMN(Emp!$B$4),0))","v":"East WD"},{"$f":"IF(ISNA(VLOOKUP($C94,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C94,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C94,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C94,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC94),MONTH($AC94)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C94,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC94),MONTH($AC94),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F94<>\"Active\",0,IF(COUNTIFS(OverEmp,$C94,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMIFS(OverValue,OverEmp,$C94,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1)),IF(AND($AC94>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C94)>0),SUMIFS(EmpIncrease,EmpCode,$C94),SUMIFS(EmpSalary,EmpCode,$C94))))","v":5000},{"$f":"IF($F94<>\"Active\",0,IF(COUNTIFS(OverEmp,$C94,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMIFS(OverValue,OverEmp,$C94,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1)),0))","v":0},{"$f":"IF($F94<>\"Active\",0,IF(COUNTIFS(OverEmp,$C94,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMIFS(OverValue,OverEmp,$C94,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1)),IF(MONTH(B94)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C94),0)))","v":0},{"$f":"IF($F94<>\"Active\",0,IF(COUNTIFS(OverEmp,$C94,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMIFS(OverValue,OverEmp,$C94,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1)),0))","v":0},{"$f":"IF($F94<>\"Active\",0,IF(COUNTIFS(OverEmp,$C94,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMIFS(OverValue,OverEmp,$C94,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C94,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMIFS(OverValue,OverEmp,$C94,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1)),(($BA94/12*$AA94)+(BB94*IF(1-$BC94=0,0,BD94/(1-$BC94))))-IF($F94=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC94,PayEmp,$C94)))","v":0},{"$f":"IF($F94=\"Terminated\",0,IF($AA94=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C94,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMIFS(OverValue,OverEmp,$C94,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA94)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA94,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94))))))","v":50},{"$f":"IF($F94=\"Terminated\",0,IF($AA94=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C94,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMIFS(OverValue,OverEmp,$C94,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA94)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA94,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94))))))","v":0},{"$f":"IF($F94=\"Terminated\",0,IF($AA94=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C94,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMIFS(OverValue,OverEmp,$C94,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA94)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA94,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94))))))","v":0},{"$f":"IF($F94=\"Terminated\",0,IF($AA94=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C94,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMIFS(OverValue,OverEmp,$C94,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA94)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA94,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94))))))","v":0},50,4950,{"$f":"IF($F94=\"Terminated\",0,IF($AA94=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C94,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMIFS(OverValue,OverEmp,$C94,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA94)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA94,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94)))))))","v":50},{"$f":"IF($F94=\"Terminated\",0,IF($AA94=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C94,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMIFS(OverValue,OverEmp,$C94,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA94)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA94,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94)))))))","v":50},{"$f":"IF($F94=\"Terminated\",0,IF($AA94=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C94,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMIFS(OverValue,OverEmp,$C94,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA94)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA94,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94)))))))","v":0},{"$f":"IF($F94=\"Terminated\",0,IF($AA94=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C94,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMIFS(OverValue,OverEmp,$C94,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA94)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA94,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC94,PayEmp,$C94)))))))","v":0},100,5100,150,{"$f":"IF(OR($B94<=Setup!$E$12,$B94>=Setup!$D$12+1),0,IF($F94<>\"Active\",0,IF($AE94=\"Yes\",$AB94,((YEAR($AC94)*12)+MONTH($AC94))-((YEAR($AD94)*12)+MONTH($AD94)-1))))","v":6},{"$f":"IF(OR($B94<=Setup!$E$12,$B94>=Setup!$D$12+1),0,((YEAR($AC94)*12)+MONTH($AC94))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":6},45163,{"$f":"IF(ISNA(VLOOKUP($C94,EmpAll,COLUMN(Emp!$E$4),0)),$AC94,IF(VLOOKUP($C94,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C94,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C94,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C94,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C94,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A94=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C94,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMIFS(OverValue,OverEmp,$C94,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1)),IF(ISNA(VLOOKUP($C94,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG94,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C94,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C94,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C94,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C94,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C94,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F94=\"Terminated\",0,IF($AA94=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C94,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA94*12)+(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB94/3,0))*4)+(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB94/6,0))*2)+(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F94=\"Terminated\",0,IF($AA94=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C94,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA94*12)+(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB94/3,0))*4)+(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB94/6,0))*2)+(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F94=\"Terminated\",0,IF($AA94=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C94,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA94*12)+(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB94/3,0))*4)+(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB94/6,0))*2)+(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F94=\"Terminated\",0,IF($AA94=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C94,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA94*12)+(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB94/3,0))*4)+(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB94/6,0))*2)+(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F94=\"Terminated\",0,IF($AA94=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C94,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA94*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F94=\"Terminated\",0,IF($AA94=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C94,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA94*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F94=\"Terminated\",0,IF($AA94=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C94,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA94*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F94=\"Terminated\",0,IF($AA94=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C94,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC94),MONTH($AC94)+1,1),OverEnd,\">=\"&DATE(YEAR($AC94),MONTH($AC94),1))>0,SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA94*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C94)*(PayDate<=$AC94)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA94*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C94,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C94,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL94),($AR94*$AL94)-$AI94-$AK94,MAX(0,IF($AL94=\"B\",IF($AR94<Setup!$C$32,($AR94*Setup!$D$32)-$AI94-$AK94,(($AR94-VLOOKUP($AR94,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR94,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR94,TaxBracket2,1),0,1,1)-$AI94-$AK94),IF($AR94<Setup!$C$21,($AR94*Setup!$D$21)-$AI94-$AK94,(($AR94-VLOOKUP($AR94,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR94,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR94,TaxBracket1,1),0,1,1)-$AI94-$AK94))))","v":0},{"$f":"IF(ISNUMBER($AL94),($AX94*$AL94)-$AI94-$AK94,MAX(0,IF($AL94=\"B\",IF($AX94<Setup!$C$32,($AX94*Setup!$D$32)-$AI94-$AK94,(($AX94-VLOOKUP($AX94,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX94,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX94,TaxBracket2,1),0,1,1)-$AI94-$AK94),IF($AX94<Setup!$C$21,($AX94*Setup!$D$21)-$AI94-$AK94,(($AX94-VLOOKUP($AX94,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX94,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX94,TaxBracket1,1),0,1,1)-$AI94-$AK94))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A95)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B95,\"yyyy\")&TEXT($B95,\"mm\")&\"-\"&$C95)","v":"202308-EXS014"},{"$f":"IF(ROW($A95)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A95)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A95)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A95)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45163},{"$f":"IF(ROW($A95)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A95)-ROW($A$6)-IF(ROW($A95)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A95)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS014"},{"$f":"IF(ISNA(VLOOKUP($C95,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C95,EmpAll,COLUMN(Emp!$B$4),0))","v":"Ross Q"},{"$f":"IF(ISNA(VLOOKUP($C95,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C95,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C95,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C95,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC95),MONTH($AC95)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C95,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC95),MONTH($AC95),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F95<>\"Active\",0,IF(COUNTIFS(OverEmp,$C95,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMIFS(OverValue,OverEmp,$C95,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1)),IF(AND($AC95>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C95)>0),SUMIFS(EmpIncrease,EmpCode,$C95),SUMIFS(EmpSalary,EmpCode,$C95))))","v":29150},{"$f":"IF($F95<>\"Active\",0,IF(COUNTIFS(OverEmp,$C95,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMIFS(OverValue,OverEmp,$C95,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1)),0))","v":0},{"$f":"IF($F95<>\"Active\",0,IF(COUNTIFS(OverEmp,$C95,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMIFS(OverValue,OverEmp,$C95,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1)),IF(MONTH(B95)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C95),0)))","v":0},{"$f":"IF($F95<>\"Active\",0,IF(COUNTIFS(OverEmp,$C95,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMIFS(OverValue,OverEmp,$C95,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1)),0))","v":0},{"$f":"IF($F95<>\"Active\",0,IF(COUNTIFS(OverEmp,$C95,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMIFS(OverValue,OverEmp,$C95,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1)),0))","v":0},29150,{"$f":"IF(COUNTIFS(OverEmp,$C95,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMIFS(OverValue,OverEmp,$C95,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1)),(($BA95/12*$AA95)+(BB95*IF(1-$BC95=0,0,BD95/(1-$BC95))))-IF($F95=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC95,PayEmp,$C95)))","v":4562.0833333333339},{"$f":"IF($F95=\"Terminated\",0,IF($AA95=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C95,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMIFS(OverValue,OverEmp,$C95,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA95)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA95,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95))))))","v":177.12},{"$f":"IF($F95=\"Terminated\",0,IF($AA95=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C95,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMIFS(OverValue,OverEmp,$C95,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA95)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA95,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95))))))","v":0},{"$f":"IF($F95=\"Terminated\",0,IF($AA95=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C95,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMIFS(OverValue,OverEmp,$C95,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA95)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA95,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95))))))","v":0},{"$f":"IF($F95=\"Terminated\",0,IF($AA95=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C95,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMIFS(OverValue,OverEmp,$C95,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA95)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA95,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95))))))","v":0},4739.2033333333338,24410.799999999999,{"$f":"IF($F95=\"Terminated\",0,IF($AA95=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C95,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMIFS(OverValue,OverEmp,$C95,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA95)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA95,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95)))))))","v":177.12},{"$f":"IF($F95=\"Terminated\",0,IF($AA95=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C95,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMIFS(OverValue,OverEmp,$C95,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA95)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA95,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95)))))))","v":291.5},{"$f":"IF($F95=\"Terminated\",0,IF($AA95=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C95,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMIFS(OverValue,OverEmp,$C95,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA95)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA95,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95)))))))","v":0},{"$f":"IF($F95=\"Terminated\",0,IF($AA95=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C95,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMIFS(OverValue,OverEmp,$C95,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA95)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA95,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC95,PayEmp,$C95)))))))","v":0},468.62,29618.62,5207.82,{"$f":"IF(OR($B95<=Setup!$E$12,$B95>=Setup!$D$12+1),0,IF($F95<>\"Active\",0,IF($AE95=\"Yes\",$AB95,((YEAR($AC95)*12)+MONTH($AC95))-((YEAR($AD95)*12)+MONTH($AD95)-1))))","v":3},{"$f":"IF(OR($B95<=Setup!$E$12,$B95>=Setup!$D$12+1),0,((YEAR($AC95)*12)+MONTH($AC95))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":6},45163,{"$f":"IF(ISNA(VLOOKUP($C95,EmpAll,COLUMN(Emp!$E$4),0)),$AC95,IF(VLOOKUP($C95,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C95,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-06-25"},{"$f":"IF(ISNA(VLOOKUP($C95,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C95,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C95,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A95=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C95,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMIFS(OverValue,OverEmp,$C95,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1)),IF(ISNA(VLOOKUP($C95,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG95,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C95,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C95,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C95,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C95,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C95,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},349800,{"$f":"-IF($F95=\"Terminated\",0,IF($AA95=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C95,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA95*12)+(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB95/3,0))*4)+(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB95/6,0))*2)+(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F95=\"Terminated\",0,IF($AA95=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C95,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA95*12)+(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB95/3,0))*4)+(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB95/6,0))*2)+(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F95=\"Terminated\",0,IF($AA95=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C95,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA95*12)+(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB95/3,0))*4)+(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB95/6,0))*2)+(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F95=\"Terminated\",0,IF($AA95=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C95,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA95*12)+(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB95/3,0))*4)+(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB95/6,0))*2)+(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},349800,349800,{"$f":"-IF($F95=\"Terminated\",0,IF($AA95=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C95,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA95*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F95=\"Terminated\",0,IF($AA95=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C95,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA95*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F95=\"Terminated\",0,IF($AA95=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C95,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA95*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F95=\"Terminated\",0,IF($AA95=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C95,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC95),MONTH($AC95)+1,1),OverEnd,\">=\"&DATE(YEAR($AC95),MONTH($AC95),1))>0,SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA95*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C95)*(PayDate<=$AC95)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA95*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C95,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C95,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},349800,0,{"$f":"IF(ISNUMBER($AL95),($AR95*$AL95)-$AI95-$AK95,MAX(0,IF($AL95=\"B\",IF($AR95<Setup!$C$32,($AR95*Setup!$D$32)-$AI95-$AK95,(($AR95-VLOOKUP($AR95,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR95,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR95,TaxBracket2,1),0,1,1)-$AI95-$AK95),IF($AR95<Setup!$C$21,($AR95*Setup!$D$21)-$AI95-$AK95,(($AR95-VLOOKUP($AR95,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR95,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR95,TaxBracket1,1),0,1,1)-$AI95-$AK95))))","v":54745},{"$f":"IF(ISNUMBER($AL95),($AX95*$AL95)-$AI95-$AK95,MAX(0,IF($AL95=\"B\",IF($AX95<Setup!$C$32,($AX95*Setup!$D$32)-$AI95-$AK95,(($AX95-VLOOKUP($AX95,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX95,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX95,TaxBracket2,1),0,1,1)-$AI95-$AK95),IF($AX95<Setup!$C$21,($AX95*Setup!$D$21)-$AI95-$AK95,(($AX95-VLOOKUP($AX95,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX95,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX95,TaxBracket1,1),0,1,1)-$AI95-$AK95))))","v":54745},0,1,0,349800]
[{"$f":"IF(ROW($A96)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B96,\"yyyy\")&TEXT($B96,\"mm\")&\"-\"&$C96)","v":"202308-EXS015"},{"$f":"IF(ROW($A96)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A96)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A96)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A96)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45163},{"$f":"IF(ROW($A96)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A96)-ROW($A$6)-IF(ROW($A96)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A96)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS015"},{"$f":"IF(ISNA(VLOOKUP($C96,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C96,EmpAll,COLUMN(Emp!$B$4),0))","v":"Graham L"},{"$f":"IF(ISNA(VLOOKUP($C96,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C96,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C96,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C96,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC96),MONTH($AC96)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C96,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC96),MONTH($AC96),0)),\"Terminated\",\"Active\")))","v":"Inactive"},{"$f":"IF($F96<>\"Active\",0,IF(COUNTIFS(OverEmp,$C96,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMIFS(OverValue,OverEmp,$C96,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1)),IF(AND($AC96>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C96)>0),SUMIFS(EmpIncrease,EmpCode,$C96),SUMIFS(EmpSalary,EmpCode,$C96))))","v":0},{"$f":"IF($F96<>\"Active\",0,IF(COUNTIFS(OverEmp,$C96,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMIFS(OverValue,OverEmp,$C96,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1)),0))","v":0},{"$f":"IF($F96<>\"Active\",0,IF(COUNTIFS(OverEmp,$C96,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMIFS(OverValue,OverEmp,$C96,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1)),IF(MONTH(B96)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C96),0)))","v":0},{"$f":"IF($F96<>\"Active\",0,IF(COUNTIFS(OverEmp,$C96,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMIFS(OverValue,OverEmp,$C96,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1)),0))","v":0},{"$f":"IF($F96<>\"Active\",0,IF(COUNTIFS(OverEmp,$C96,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMIFS(OverValue,OverEmp,$C96,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C96,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMIFS(OverValue,OverEmp,$C96,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1)),(($BA96/12*$AA96)+(BB96*IF(1-$BC96=0,0,BD96/(1-$BC96))))-IF($F96=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC96,PayEmp,$C96)))","v":0},{"$f":"IF($F96=\"Terminated\",0,IF($AA96=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C96,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMIFS(OverValue,OverEmp,$C96,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA96)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA96,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96))))))","v":0},{"$f":"IF($F96=\"Terminated\",0,IF($AA96=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C96,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMIFS(OverValue,OverEmp,$C96,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA96)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA96,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96))))))","v":0},{"$f":"IF($F96=\"Terminated\",0,IF($AA96=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C96,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMIFS(OverValue,OverEmp,$C96,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA96)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA96,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96))))))","v":0},{"$f":"IF($F96=\"Terminated\",0,IF($AA96=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C96,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMIFS(OverValue,OverEmp,$C96,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA96)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA96,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96))))))","v":0},0,0,{"$f":"IF($F96=\"Terminated\",0,IF($AA96=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C96,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMIFS(OverValue,OverEmp,$C96,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA96)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA96,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96)))))))","v":0},{"$f":"IF($F96=\"Terminated\",0,IF($AA96=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C96,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMIFS(OverValue,OverEmp,$C96,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA96)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA96,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96)))))))","v":0},{"$f":"IF($F96=\"Terminated\",0,IF($AA96=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C96,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMIFS(OverValue,OverEmp,$C96,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA96)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA96,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96)))))))","v":0},{"$f":"IF($F96=\"Terminated\",0,IF($AA96=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C96,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMIFS(OverValue,OverEmp,$C96,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA96)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA96,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC96,PayEmp,$C96)))))))","v":0},0,0,0,{"$f":"IF(OR($B96<=Setup!$E$12,$B96>=Setup!$D$12+1),0,IF($F96<>\"Active\",0,IF($AE96=\"Yes\",$AB96,((YEAR($AC96)*12)+MONTH($AC96))-((YEAR($AD96)*12)+MONTH($AD96)-1))))","v":0},{"$f":"IF(OR($B96<=Setup!$E$12,$B96>=Setup!$D$12+1),0,((YEAR($AC96)*12)+MONTH($AC96))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":6},45163,{"$f":"IF(ISNA(VLOOKUP($C96,EmpAll,COLUMN(Emp!$E$4),0)),$AC96,IF(VLOOKUP($C96,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C96,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-01-25"},{"$f":"IF(ISNA(VLOOKUP($C96,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C96,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C96,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A96=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C96,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMIFS(OverValue,OverEmp,$C96,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1)),IF(ISNA(VLOOKUP($C96,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG96,MedList,COLUMN(Setup!$C$49),1)","v":364},6552,{"$f":"IF(ISNA(VLOOKUP($C96,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C96,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C96,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C96,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C96,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F96=\"Terminated\",0,IF($AA96=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C96,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA96*12)+(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB96/3,0))*4)+(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB96/6,0))*2)+(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F96=\"Terminated\",0,IF($AA96=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C96,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA96*12)+(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB96/3,0))*4)+(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB96/6,0))*2)+(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F96=\"Terminated\",0,IF($AA96=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C96,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA96*12)+(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB96/3,0))*4)+(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB96/6,0))*2)+(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F96=\"Terminated\",0,IF($AA96=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C96,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA96*12)+(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB96/3,0))*4)+(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB96/6,0))*2)+(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F96=\"Terminated\",0,IF($AA96=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C96,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA96*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F96=\"Terminated\",0,IF($AA96=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C96,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA96*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F96=\"Terminated\",0,IF($AA96=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C96,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA96*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F96=\"Terminated\",0,IF($AA96=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C96,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC96),MONTH($AC96)+1,1),OverEnd,\">=\"&DATE(YEAR($AC96),MONTH($AC96),1))>0,SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA96*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C96)*(PayDate<=$AC96)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA96*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C96,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C96,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL96),($AR96*$AL96)-$AI96-$AK96,MAX(0,IF($AL96=\"B\",IF($AR96<Setup!$C$32,($AR96*Setup!$D$32)-$AI96-$AK96,(($AR96-VLOOKUP($AR96,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR96,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR96,TaxBracket2,1),0,1,1)-$AI96-$AK96),IF($AR96<Setup!$C$21,($AR96*Setup!$D$21)-$AI96-$AK96,(($AR96-VLOOKUP($AR96,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR96,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR96,TaxBracket1,1),0,1,1)-$AI96-$AK96))))","v":0},{"$f":"IF(ISNUMBER($AL96),($AX96*$AL96)-$AI96-$AK96,MAX(0,IF($AL96=\"B\",IF($AX96<Setup!$C$32,($AX96*Setup!$D$32)-$AI96-$AK96,(($AX96-VLOOKUP($AX96,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX96,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX96,TaxBracket2,1),0,1,1)-$AI96-$AK96),IF($AX96<Setup!$C$21,($AX96*Setup!$D$21)-$AI96-$AK96,(($AX96-VLOOKUP($AX96,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX96,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX96,TaxBracket1,1),0,1,1)-$AI96-$AK96))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A97)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B97,\"yyyy\")&TEXT($B97,\"mm\")&\"-\"&$C97)","v":"202309-EXS001"},{"$f":"IF(ROW($A97)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A97)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A97)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A97)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45194},{"$f":"IF(ROW($A97)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A97)-ROW($A$6)-IF(ROW($A97)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A97)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS001"},{"$f":"IF(ISNA(VLOOKUP($C97,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C97,EmpAll,COLUMN(Emp!$B$4),0))","v":"Taylor AE"},{"$f":"IF(ISNA(VLOOKUP($C97,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C97,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C97,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C97,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC97),MONTH($AC97)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C97,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC97),MONTH($AC97),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F97<>\"Active\",0,IF(COUNTIFS(OverEmp,$C97,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMIFS(OverValue,OverEmp,$C97,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1)),IF(AND($AC97>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C97)>0),SUMIFS(EmpIncrease,EmpCode,$C97),SUMIFS(EmpSalary,EmpCode,$C97))))","v":150000},{"$f":"IF($F97<>\"Active\",0,IF(COUNTIFS(OverEmp,$C97,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMIFS(OverValue,OverEmp,$C97,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1)),0))","v":0},{"$f":"IF($F97<>\"Active\",0,IF(COUNTIFS(OverEmp,$C97,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMIFS(OverValue,OverEmp,$C97,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1)),IF(MONTH(B97)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C97),0)))","v":0},{"$f":"IF($F97<>\"Active\",0,IF(COUNTIFS(OverEmp,$C97,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMIFS(OverValue,OverEmp,$C97,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1)),0))","v":0},{"$f":"IF($F97<>\"Active\",0,IF(COUNTIFS(OverEmp,$C97,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMIFS(OverValue,OverEmp,$C97,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1)),0))","v":0},150000,{"$f":"IF(COUNTIFS(OverEmp,$C97,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMIFS(OverValue,OverEmp,$C97,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1)),(($BA97/12*$AA97)+(BB97*IF(1-$BC97=0,0,BD97/(1-$BC97))))-IF($F97=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC97,PayEmp,$C97)))","v":45611.833333333372},{"$f":"IF($F97=\"Terminated\",0,IF($AA97=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C97,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMIFS(OverValue,OverEmp,$C97,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA97)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA97,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97))))))","v":177.11999999999989},{"$f":"IF($F97=\"Terminated\",0,IF($AA97=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C97,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMIFS(OverValue,OverEmp,$C97,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA97)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA97,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97))))))","v":11250},{"$f":"IF($F97=\"Terminated\",0,IF($AA97=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C97,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMIFS(OverValue,OverEmp,$C97,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA97)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA97,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97))))))","v":0},{"$f":"IF($F97=\"Terminated\",0,IF($AA97=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C97,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMIFS(OverValue,OverEmp,$C97,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA97)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA97,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97))))))","v":0},57038.953333333375,92961.05,{"$f":"IF($F97=\"Terminated\",0,IF($AA97=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C97,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMIFS(OverValue,OverEmp,$C97,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA97)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA97,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97)))))))","v":177.11999999999989},{"$f":"IF($F97=\"Terminated\",0,IF($AA97=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C97,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMIFS(OverValue,OverEmp,$C97,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA97)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA97,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97)))))))","v":1500},{"$f":"IF($F97=\"Terminated\",0,IF($AA97=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C97,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMIFS(OverValue,OverEmp,$C97,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA97)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA97,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97)))))))","v":0},{"$f":"IF($F97=\"Terminated\",0,IF($AA97=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C97,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMIFS(OverValue,OverEmp,$C97,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA97)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA97,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC97,PayEmp,$C97)))))))","v":0},1677.12,151677.12,58716.07,{"$f":"IF(OR($B97<=Setup!$E$12,$B97>=Setup!$D$12+1),0,IF($F97<>\"Active\",0,IF($AE97=\"Yes\",$AB97,((YEAR($AC97)*12)+MONTH($AC97))-((YEAR($AD97)*12)+MONTH($AD97)-1))))","v":7},{"$f":"IF(OR($B97<=Setup!$E$12,$B97>=Setup!$D$12+1),0,((YEAR($AC97)*12)+MONTH($AC97))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":7},45194,{"$f":"IF(ISNA(VLOOKUP($C97,EmpAll,COLUMN(Emp!$E$4),0)),$AC97,IF(VLOOKUP($C97,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C97,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C97,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C97,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C97,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A97=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C97,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMIFS(OverValue,OverEmp,$C97,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1)),IF(ISNA(VLOOKUP($C97,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$N$4),0)))","v":5},{"$f":"VLOOKUP($AG97,MedList,COLUMN(Setup!$C$49),1)","v":1466},17592,{"$f":"IF(ISNA(VLOOKUP($C97,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C97,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C97,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C97,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C97,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1800000,{"$f":"-IF($F97=\"Terminated\",0,IF($AA97=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C97,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA97*12)+(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB97/3,0))*4)+(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB97/6,0))*2)+(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F97=\"Terminated\",0,IF($AA97=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C97,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA97*12)+(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB97/3,0))*4)+(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB97/6,0))*2)+(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F97=\"Terminated\",0,IF($AA97=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C97,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA97*12)+(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB97/3,0))*4)+(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB97/6,0))*2)+(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F97=\"Terminated\",0,IF($AA97=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C97,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA97*12)+(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB97/3,0))*4)+(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB97/6,0))*2)+(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1665000,1800000,{"$f":"-IF($F97=\"Terminated\",0,IF($AA97=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C97,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA97*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F97=\"Terminated\",0,IF($AA97=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C97,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA97*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F97=\"Terminated\",0,IF($AA97=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C97,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA97*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F97=\"Terminated\",0,IF($AA97=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C97,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC97),MONTH($AC97)+1,1),OverEnd,\">=\"&DATE(YEAR($AC97),MONTH($AC97),1))>0,SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA97*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C97)*(PayDate<=$AC97)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA97*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C97,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C97,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1665000,0,{"$f":"IF(ISNUMBER($AL97),($AR97*$AL97)-$AI97-$AK97,MAX(0,IF($AL97=\"B\",IF($AR97<Setup!$C$32,($AR97*Setup!$D$32)-$AI97-$AK97,(($AR97-VLOOKUP($AR97,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR97,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR97,TaxBracket2,1),0,1,1)-$AI97-$AK97),IF($AR97<Setup!$C$21,($AR97*Setup!$D$21)-$AI97-$AK97,(($AR97-VLOOKUP($AR97,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR97,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR97,TaxBracket1,1),0,1,1)-$AI97-$AK97))))","v":547342},{"$f":"IF(ISNUMBER($AL97),($AX97*$AL97)-$AI97-$AK97,MAX(0,IF($AL97=\"B\",IF($AX97<Setup!$C$32,($AX97*Setup!$D$32)-$AI97-$AK97,(($AX97-VLOOKUP($AX97,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX97,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX97,TaxBracket2,1),0,1,1)-$AI97-$AK97),IF($AX97<Setup!$C$21,($AX97*Setup!$D$21)-$AI97-$AK97,(($AX97-VLOOKUP($AX97,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX97,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX97,TaxBracket1,1),0,1,1)-$AI97-$AK97))))","v":547342},0,1,0,1800000]
[{"$f":"IF(ROW($A98)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B98,\"yyyy\")&TEXT($B98,\"mm\")&\"-\"&$C98)","v":"202309-EXS002"},{"$f":"IF(ROW($A98)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A98)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A98)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A98)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45194},{"$f":"IF(ROW($A98)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A98)-ROW($A$6)-IF(ROW($A98)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A98)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS002"},{"$f":"IF(ISNA(VLOOKUP($C98,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C98,EmpAll,COLUMN(Emp!$B$4),0))","v":"Smith F"},{"$f":"IF(ISNA(VLOOKUP($C98,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C98,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C98,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C98,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC98),MONTH($AC98)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C98,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC98),MONTH($AC98),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F98<>\"Active\",0,IF(COUNTIFS(OverEmp,$C98,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMIFS(OverValue,OverEmp,$C98,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1)),IF(AND($AC98>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C98)>0),SUMIFS(EmpIncrease,EmpCode,$C98),SUMIFS(EmpSalary,EmpCode,$C98))))","v":120000},{"$f":"IF($F98<>\"Active\",0,IF(COUNTIFS(OverEmp,$C98,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMIFS(OverValue,OverEmp,$C98,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1)),0))","v":0},{"$f":"IF($F98<>\"Active\",0,IF(COUNTIFS(OverEmp,$C98,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMIFS(OverValue,OverEmp,$C98,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1)),IF(MONTH(B98)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C98),0)))","v":0},{"$f":"IF($F98<>\"Active\",0,IF(COUNTIFS(OverEmp,$C98,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMIFS(OverValue,OverEmp,$C98,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1)),0))","v":0},{"$f":"IF($F98<>\"Active\",0,IF(COUNTIFS(OverEmp,$C98,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMIFS(OverValue,OverEmp,$C98,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1)),0))","v":0},120000,{"$f":"IF(COUNTIFS(OverEmp,$C98,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMIFS(OverValue,OverEmp,$C98,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1)),(($BA98/12*$AA98)+(BB98*IF(1-$BC98=0,0,BD98/(1-$BC98))))-IF($F98=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC98,PayEmp,$C98)))","v":38498.333333333372},{"$f":"IF($F98=\"Terminated\",0,IF($AA98=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C98,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMIFS(OverValue,OverEmp,$C98,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA98)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA98,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98))))))","v":177.11999999999989},{"$f":"IF($F98=\"Terminated\",0,IF($AA98=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C98,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMIFS(OverValue,OverEmp,$C98,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA98)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA98,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98))))))","v":0},{"$f":"IF($F98=\"Terminated\",0,IF($AA98=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C98,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMIFS(OverValue,OverEmp,$C98,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA98)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA98,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98))))))","v":0},{"$f":"IF($F98=\"Terminated\",0,IF($AA98=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C98,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMIFS(OverValue,OverEmp,$C98,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA98)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA98,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98))))))","v":0},38675.453333333375,81324.55,{"$f":"IF($F98=\"Terminated\",0,IF($AA98=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C98,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMIFS(OverValue,OverEmp,$C98,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA98)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA98,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98)))))))","v":177.11999999999989},{"$f":"IF($F98=\"Terminated\",0,IF($AA98=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C98,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMIFS(OverValue,OverEmp,$C98,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA98)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA98,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98)))))))","v":1200},{"$f":"IF($F98=\"Terminated\",0,IF($AA98=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C98,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMIFS(OverValue,OverEmp,$C98,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA98)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA98,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98)))))))","v":0},{"$f":"IF($F98=\"Terminated\",0,IF($AA98=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C98,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMIFS(OverValue,OverEmp,$C98,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA98)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA98,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC98,PayEmp,$C98)))))))","v":0},1377.12,121377.12,40052.57,{"$f":"IF(OR($B98<=Setup!$E$12,$B98>=Setup!$D$12+1),0,IF($F98<>\"Active\",0,IF($AE98=\"Yes\",$AB98,((YEAR($AC98)*12)+MONTH($AC98))-((YEAR($AD98)*12)+MONTH($AD98)-1))))","v":7},{"$f":"IF(OR($B98<=Setup!$E$12,$B98>=Setup!$D$12+1),0,((YEAR($AC98)*12)+MONTH($AC98))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":7},45194,{"$f":"IF(ISNA(VLOOKUP($C98,EmpAll,COLUMN(Emp!$E$4),0)),$AC98,IF(VLOOKUP($C98,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C98,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C98,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C98,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C98,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A98=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C98,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMIFS(OverValue,OverEmp,$C98,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1)),IF(ISNA(VLOOKUP($C98,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$N$4),0)))","v":3},{"$f":"VLOOKUP($AG98,MedList,COLUMN(Setup!$C$49),1)","v":974},10704,{"$f":"IF(ISNA(VLOOKUP($C98,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C98,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C98,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C98,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C98,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1440000,{"$f":"-IF($F98=\"Terminated\",0,IF($AA98=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C98,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA98*12)+(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB98/3,0))*4)+(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB98/6,0))*2)+(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F98=\"Terminated\",0,IF($AA98=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C98,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA98*12)+(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB98/3,0))*4)+(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB98/6,0))*2)+(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F98=\"Terminated\",0,IF($AA98=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C98,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA98*12)+(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB98/3,0))*4)+(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB98/6,0))*2)+(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F98=\"Terminated\",0,IF($AA98=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C98,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA98*12)+(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB98/3,0))*4)+(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB98/6,0))*2)+(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1440000,1440000,{"$f":"-IF($F98=\"Terminated\",0,IF($AA98=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C98,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA98*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F98=\"Terminated\",0,IF($AA98=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C98,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA98*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F98=\"Terminated\",0,IF($AA98=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C98,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA98*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F98=\"Terminated\",0,IF($AA98=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C98,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC98),MONTH($AC98)+1,1),OverEnd,\">=\"&DATE(YEAR($AC98),MONTH($AC98),1))>0,SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA98*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C98)*(PayDate<=$AC98)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA98*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C98,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C98,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1440000,0,{"$f":"IF(ISNUMBER($AL98),($AR98*$AL98)-$AI98-$AK98,MAX(0,IF($AL98=\"B\",IF($AR98<Setup!$C$32,($AR98*Setup!$D$32)-$AI98-$AK98,(($AR98-VLOOKUP($AR98,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR98,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR98,TaxBracket2,1),0,1,1)-$AI98-$AK98),IF($AR98<Setup!$C$21,($AR98*Setup!$D$21)-$AI98-$AK98,(($AR98-VLOOKUP($AR98,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR98,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR98,TaxBracket1,1),0,1,1)-$AI98-$AK98))))","v":461980},{"$f":"IF(ISNUMBER($AL98),($AX98*$AL98)-$AI98-$AK98,MAX(0,IF($AL98=\"B\",IF($AX98<Setup!$C$32,($AX98*Setup!$D$32)-$AI98-$AK98,(($AX98-VLOOKUP($AX98,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX98,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX98,TaxBracket2,1),0,1,1)-$AI98-$AK98),IF($AX98<Setup!$C$21,($AX98*Setup!$D$21)-$AI98-$AK98,(($AX98-VLOOKUP($AX98,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX98,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX98,TaxBracket1,1),0,1,1)-$AI98-$AK98))))","v":461980},0,1,0,1440000]
[{"$f":"IF(ROW($A99)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B99,\"yyyy\")&TEXT($B99,\"mm\")&\"-\"&$C99)","v":"202309-EXS003"},{"$f":"IF(ROW($A99)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A99)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A99)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A99)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45194},{"$f":"IF(ROW($A99)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A99)-ROW($A$6)-IF(ROW($A99)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A99)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS003"},{"$f":"IF(ISNA(VLOOKUP($C99,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C99,EmpAll,COLUMN(Emp!$B$4),0))","v":"Wilson PG"},{"$f":"IF(ISNA(VLOOKUP($C99,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C99,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C99,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C99,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC99),MONTH($AC99)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C99,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC99),MONTH($AC99),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F99<>\"Active\",0,IF(COUNTIFS(OverEmp,$C99,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMIFS(OverValue,OverEmp,$C99,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1)),IF(AND($AC99>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C99)>0),SUMIFS(EmpIncrease,EmpCode,$C99),SUMIFS(EmpSalary,EmpCode,$C99))))","v":15000},{"$f":"IF($F99<>\"Active\",0,IF(COUNTIFS(OverEmp,$C99,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMIFS(OverValue,OverEmp,$C99,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1)),0))","v":0},{"$f":"IF($F99<>\"Active\",0,IF(COUNTIFS(OverEmp,$C99,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMIFS(OverValue,OverEmp,$C99,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1)),IF(MONTH(B99)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C99),0)))","v":0},{"$f":"IF($F99<>\"Active\",0,IF(COUNTIFS(OverEmp,$C99,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMIFS(OverValue,OverEmp,$C99,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1)),0))","v":10000},{"$f":"IF($F99<>\"Active\",0,IF(COUNTIFS(OverEmp,$C99,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMIFS(OverValue,OverEmp,$C99,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1)),0))","v":0},25000,{"$f":"IF(COUNTIFS(OverEmp,$C99,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMIFS(OverValue,OverEmp,$C99,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1)),(($BA99/12*$AA99)+(BB99*IF(1-$BC99=0,0,BD99/(1-$BC99))))-IF($F99=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC99,PayEmp,$C99)))","v":899.75},{"$f":"IF($F99=\"Terminated\",0,IF($AA99=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C99,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMIFS(OverValue,OverEmp,$C99,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA99)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA99,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99))))))","v":150},{"$f":"IF($F99=\"Terminated\",0,IF($AA99=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C99,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMIFS(OverValue,OverEmp,$C99,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA99)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA99,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99))))))","v":0},{"$f":"IF($F99=\"Terminated\",0,IF($AA99=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C99,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMIFS(OverValue,OverEmp,$C99,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA99)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA99,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99))))))","v":0},{"$f":"IF($F99=\"Terminated\",0,IF($AA99=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C99,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMIFS(OverValue,OverEmp,$C99,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA99)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA99,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99))))))","v":0},1049.75,23950.25,{"$f":"IF($F99=\"Terminated\",0,IF($AA99=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C99,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMIFS(OverValue,OverEmp,$C99,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA99)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA99,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99)))))))","v":150},{"$f":"IF($F99=\"Terminated\",0,IF($AA99=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C99,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMIFS(OverValue,OverEmp,$C99,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA99)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA99,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99)))))))","v":150},{"$f":"IF($F99=\"Terminated\",0,IF($AA99=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C99,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMIFS(OverValue,OverEmp,$C99,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA99)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA99,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99)))))))","v":0},{"$f":"IF($F99=\"Terminated\",0,IF($AA99=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C99,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMIFS(OverValue,OverEmp,$C99,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA99)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA99,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC99,PayEmp,$C99)))))))","v":0},300,25300,1349.75,{"$f":"IF(OR($B99<=Setup!$E$12,$B99>=Setup!$D$12+1),0,IF($F99<>\"Active\",0,IF($AE99=\"Yes\",$AB99,((YEAR($AC99)*12)+MONTH($AC99))-((YEAR($AD99)*12)+MONTH($AD99)-1))))","v":7},{"$f":"IF(OR($B99<=Setup!$E$12,$B99>=Setup!$D$12+1),0,((YEAR($AC99)*12)+MONTH($AC99))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":7},45194,{"$f":"IF(ISNA(VLOOKUP($C99,EmpAll,COLUMN(Emp!$E$4),0)),$AC99,IF(VLOOKUP($C99,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C99,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C99,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C99,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C99,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A99=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C99,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMIFS(OverValue,OverEmp,$C99,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1)),IF(ISNA(VLOOKUP($C99,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG99,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C99,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C99,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C99,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C99,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C99,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},180000,{"$f":"-IF($F99=\"Terminated\",0,IF($AA99=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C99,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA99*12)+(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB99/3,0))*4)+(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB99/6,0))*2)+(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F99=\"Terminated\",0,IF($AA99=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C99,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA99*12)+(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB99/3,0))*4)+(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB99/6,0))*2)+(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F99=\"Terminated\",0,IF($AA99=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C99,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA99*12)+(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB99/3,0))*4)+(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB99/6,0))*2)+(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F99=\"Terminated\",0,IF($AA99=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C99,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA99*12)+(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB99/3,0))*4)+(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB99/6,0))*2)+(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},180000,180000,{"$f":"-IF($F99=\"Terminated\",0,IF($AA99=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C99,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA99*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F99=\"Terminated\",0,IF($AA99=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C99,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA99*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F99=\"Terminated\",0,IF($AA99=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C99,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA99*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F99=\"Terminated\",0,IF($AA99=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C99,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC99),MONTH($AC99)+1,1),OverEnd,\">=\"&DATE(YEAR($AC99),MONTH($AC99),1))>0,SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA99*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C99)*(PayDate<=$AC99)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA99*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C99,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C99,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,0,{"$f":"IF(ISNUMBER($AL99),($AR99*$AL99)-$AI99-$AK99,MAX(0,IF($AL99=\"B\",IF($AR99<Setup!$C$32,($AR99*Setup!$D$32)-$AI99-$AK99,(($AR99-VLOOKUP($AR99,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR99,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR99,TaxBracket2,1),0,1,1)-$AI99-$AK99),IF($AR99<Setup!$C$21,($AR99*Setup!$D$21)-$AI99-$AK99,(($AR99-VLOOKUP($AR99,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR99,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR99,TaxBracket1,1),0,1,1)-$AI99-$AK99))))","v":10797},{"$f":"IF(ISNUMBER($AL99),($AX99*$AL99)-$AI99-$AK99,MAX(0,IF($AL99=\"B\",IF($AX99<Setup!$C$32,($AX99*Setup!$D$32)-$AI99-$AK99,(($AX99-VLOOKUP($AX99,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX99,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX99,TaxBracket2,1),0,1,1)-$AI99-$AK99),IF($AX99<Setup!$C$21,($AX99*Setup!$D$21)-$AI99-$AK99,(($AX99-VLOOKUP($AX99,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX99,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX99,TaxBracket1,1),0,1,1)-$AI99-$AK99))))","v":10797},0,1,0,180000]
[{"$f":"IF(ROW($A100)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B100,\"yyyy\")&TEXT($B100,\"mm\")&\"-\"&$C100)","v":"202309-EXS004"},{"$f":"IF(ROW($A100)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A100)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A100)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A100)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45194},{"$f":"IF(ROW($A100)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A100)-ROW($A$6)-IF(ROW($A100)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A100)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS004"},{"$f":"IF(ISNA(VLOOKUP($C100,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C100,EmpAll,COLUMN(Emp!$B$4),0))","v":"Osborne S"},{"$f":"IF(ISNA(VLOOKUP($C100,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C100,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C100,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C100,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC100),MONTH($AC100)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C100,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC100),MONTH($AC100),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F100<>\"Active\",0,IF(COUNTIFS(OverEmp,$C100,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMIFS(OverValue,OverEmp,$C100,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1)),IF(AND($AC100>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C100)>0),SUMIFS(EmpIncrease,EmpCode,$C100),SUMIFS(EmpSalary,EmpCode,$C100))))","v":15000},{"$f":"IF($F100<>\"Active\",0,IF(COUNTIFS(OverEmp,$C100,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMIFS(OverValue,OverEmp,$C100,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1)),0))","v":0},{"$f":"IF($F100<>\"Active\",0,IF(COUNTIFS(OverEmp,$C100,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMIFS(OverValue,OverEmp,$C100,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1)),IF(MONTH(B100)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C100),0)))","v":0},{"$f":"IF($F100<>\"Active\",0,IF(COUNTIFS(OverEmp,$C100,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMIFS(OverValue,OverEmp,$C100,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1)),0))","v":0},{"$f":"IF($F100<>\"Active\",0,IF(COUNTIFS(OverEmp,$C100,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMIFS(OverValue,OverEmp,$C100,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1)),0))","v":0},15000,{"$f":"IF(COUNTIFS(OverEmp,$C100,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMIFS(OverValue,OverEmp,$C100,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1)),(($BA100/12*$AA100)+(BB100*IF(1-$BC100=0,0,BD100/(1-$BC100))))-IF($F100=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC100,PayEmp,$C100)))","v":899.75},{"$f":"IF($F100=\"Terminated\",0,IF($AA100=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C100,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMIFS(OverValue,OverEmp,$C100,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA100)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA100,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100))))))","v":150},{"$f":"IF($F100=\"Terminated\",0,IF($AA100=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C100,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMIFS(OverValue,OverEmp,$C100,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA100)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA100,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100))))))","v":0},{"$f":"IF($F100=\"Terminated\",0,IF($AA100=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C100,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMIFS(OverValue,OverEmp,$C100,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA100)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA100,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100))))))","v":500},{"$f":"IF($F100=\"Terminated\",0,IF($AA100=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C100,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMIFS(OverValue,OverEmp,$C100,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA100)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA100,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100))))))","v":0},1549.75,13450.25,{"$f":"IF($F100=\"Terminated\",0,IF($AA100=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C100,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMIFS(OverValue,OverEmp,$C100,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA100)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA100,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100)))))))","v":150},{"$f":"IF($F100=\"Terminated\",0,IF($AA100=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C100,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMIFS(OverValue,OverEmp,$C100,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA100)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA100,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100)))))))","v":150},{"$f":"IF($F100=\"Terminated\",0,IF($AA100=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C100,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMIFS(OverValue,OverEmp,$C100,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA100)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA100,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100)))))))","v":0},{"$f":"IF($F100=\"Terminated\",0,IF($AA100=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C100,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMIFS(OverValue,OverEmp,$C100,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA100)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA100,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC100,PayEmp,$C100)))))))","v":0},300,15300,1849.75,{"$f":"IF(OR($B100<=Setup!$E$12,$B100>=Setup!$D$12+1),0,IF($F100<>\"Active\",0,IF($AE100=\"Yes\",$AB100,((YEAR($AC100)*12)+MONTH($AC100))-((YEAR($AD100)*12)+MONTH($AD100)-1))))","v":7},{"$f":"IF(OR($B100<=Setup!$E$12,$B100>=Setup!$D$12+1),0,((YEAR($AC100)*12)+MONTH($AC100))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":7},45194,{"$f":"IF(ISNA(VLOOKUP($C100,EmpAll,COLUMN(Emp!$E$4),0)),$AC100,IF(VLOOKUP($C100,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C100,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C100,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C100,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C100,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A100=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C100,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMIFS(OverValue,OverEmp,$C100,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1)),IF(ISNA(VLOOKUP($C100,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG100,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C100,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C100,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C100,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C100,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C100,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},183600,{"$f":"-IF($F100=\"Terminated\",0,IF($AA100=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C100,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA100*12)+(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB100/3,0))*4)+(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB100/6,0))*2)+(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F100=\"Terminated\",0,IF($AA100=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C100,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA100*12)+(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB100/3,0))*4)+(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB100/6,0))*2)+(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F100=\"Terminated\",0,IF($AA100=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C100,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA100*12)+(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB100/3,0))*4)+(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB100/6,0))*2)+(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F100=\"Terminated\",0,IF($AA100=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C100,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA100*12)+(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB100/3,0))*4)+(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB100/6,0))*2)+(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},183600,180000,{"$f":"-IF($F100=\"Terminated\",0,IF($AA100=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C100,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA100*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F100=\"Terminated\",0,IF($AA100=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C100,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA100*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F100=\"Terminated\",0,IF($AA100=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C100,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA100*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F100=\"Terminated\",0,IF($AA100=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C100,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC100),MONTH($AC100)+1,1),OverEnd,\">=\"&DATE(YEAR($AC100),MONTH($AC100),1))>0,SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA100*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C100)*(PayDate<=$AC100)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA100*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C100,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C100,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,3600,{"$f":"IF(ISNUMBER($AL100),($AR100*$AL100)-$AI100-$AK100,MAX(0,IF($AL100=\"B\",IF($AR100<Setup!$C$32,($AR100*Setup!$D$32)-$AI100-$AK100,(($AR100-VLOOKUP($AR100,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR100,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR100,TaxBracket2,1),0,1,1)-$AI100-$AK100),IF($AR100<Setup!$C$21,($AR100*Setup!$D$21)-$AI100-$AK100,(($AR100-VLOOKUP($AR100,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR100,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR100,TaxBracket1,1),0,1,1)-$AI100-$AK100))))","v":11445},{"$f":"IF(ISNUMBER($AL100),($AX100*$AL100)-$AI100-$AK100,MAX(0,IF($AL100=\"B\",IF($AX100<Setup!$C$32,($AX100*Setup!$D$32)-$AI100-$AK100,(($AX100-VLOOKUP($AX100,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX100,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX100,TaxBracket2,1),0,1,1)-$AI100-$AK100),IF($AX100<Setup!$C$21,($AX100*Setup!$D$21)-$AI100-$AK100,(($AX100-VLOOKUP($AX100,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX100,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX100,TaxBracket1,1),0,1,1)-$AI100-$AK100))))","v":10797},648,0.98039215686274506,1.9607843137254902E-2,183600]
[{"$f":"IF(ROW($A101)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B101,\"yyyy\")&TEXT($B101,\"mm\")&\"-\"&$C101)","v":"202309-EXS005"},{"$f":"IF(ROW($A101)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A101)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A101)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A101)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45194},{"$f":"IF(ROW($A101)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A101)-ROW($A$6)-IF(ROW($A101)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A101)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS005"},{"$f":"IF(ISNA(VLOOKUP($C101,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C101,EmpAll,COLUMN(Emp!$B$4),0))","v":"Miller R"},{"$f":"IF(ISNA(VLOOKUP($C101,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C101,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C101,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C101,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC101),MONTH($AC101)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C101,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC101),MONTH($AC101),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F101<>\"Active\",0,IF(COUNTIFS(OverEmp,$C101,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMIFS(OverValue,OverEmp,$C101,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1)),IF(AND($AC101>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C101)>0),SUMIFS(EmpIncrease,EmpCode,$C101),SUMIFS(EmpSalary,EmpCode,$C101))))","v":10000},{"$f":"IF($F101<>\"Active\",0,IF(COUNTIFS(OverEmp,$C101,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMIFS(OverValue,OverEmp,$C101,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1)),0))","v":0},{"$f":"IF($F101<>\"Active\",0,IF(COUNTIFS(OverEmp,$C101,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMIFS(OverValue,OverEmp,$C101,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1)),IF(MONTH(B101)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C101),0)))","v":0},{"$f":"IF($F101<>\"Active\",0,IF(COUNTIFS(OverEmp,$C101,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMIFS(OverValue,OverEmp,$C101,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1)),0))","v":0},{"$f":"IF($F101<>\"Active\",0,IF(COUNTIFS(OverEmp,$C101,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMIFS(OverValue,OverEmp,$C101,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C101,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMIFS(OverValue,OverEmp,$C101,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1)),(($BA101/12*$AA101)+(BB101*IF(1-$BC101=0,0,BD101/(1-$BC101))))-IF($F101=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC101,PayEmp,$C101)))","v":0},{"$f":"IF($F101=\"Terminated\",0,IF($AA101=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C101,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMIFS(OverValue,OverEmp,$C101,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA101)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA101,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101))))))","v":100},{"$f":"IF($F101=\"Terminated\",0,IF($AA101=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C101,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMIFS(OverValue,OverEmp,$C101,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA101)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA101,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101))))))","v":0},{"$f":"IF($F101=\"Terminated\",0,IF($AA101=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C101,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMIFS(OverValue,OverEmp,$C101,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA101)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA101,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101))))))","v":0},{"$f":"IF($F101=\"Terminated\",0,IF($AA101=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C101,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMIFS(OverValue,OverEmp,$C101,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA101)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA101,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101))))))","v":0},100,9900,{"$f":"IF($F101=\"Terminated\",0,IF($AA101=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C101,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMIFS(OverValue,OverEmp,$C101,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA101)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA101,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101)))))))","v":100},{"$f":"IF($F101=\"Terminated\",0,IF($AA101=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C101,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMIFS(OverValue,OverEmp,$C101,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA101)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA101,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101)))))))","v":100},{"$f":"IF($F101=\"Terminated\",0,IF($AA101=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C101,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMIFS(OverValue,OverEmp,$C101,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA101)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA101,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101)))))))","v":0},{"$f":"IF($F101=\"Terminated\",0,IF($AA101=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C101,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMIFS(OverValue,OverEmp,$C101,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA101)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA101,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC101,PayEmp,$C101)))))))","v":0},{"$f":"SUM(OFFSET($T101,0,0,1,COLUMN($X$6)-COLUMN($T$7)))","v":200},10200,{"$f":"ROUND(SUM(R101,X101),2)","v":300},{"$f":"IF(OR($B101<=Setup!$E$12,$B101>=Setup!$D$12+1),0,IF($F101<>\"Active\",0,IF($AE101=\"Yes\",$AB101,((YEAR($AC101)*12)+MONTH($AC101))-((YEAR($AD101)*12)+MONTH($AD101)-1))))","v":7},{"$f":"IF(OR($B101<=Setup!$E$12,$B101>=Setup!$D$12+1),0,((YEAR($AC101)*12)+MONTH($AC101))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":7},{"$f":"DATE(YEAR($B101),MONTH($B101),DAY($B101))","v":45194},{"$f":"IF(ISNA(VLOOKUP($C101,EmpAll,COLUMN(Emp!$E$4),0)),$AC101,IF(VLOOKUP($C101,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C101,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C101,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C101,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C101,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A101=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C101,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMIFS(OverValue,OverEmp,$C101,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1)),IF(ISNA(VLOOKUP($C101,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG101,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C101,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C101,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($AJ101,RebateList,4,0)),VLOOKUP(\"A\",RebateList,3,0),VLOOKUP($AJ101,RebateList,4,0))","v":17235},{"$f":"IF(ISNA(VLOOKUP($C101,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C101,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C101,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},120000,{"$f":"-IF($F101=\"Terminated\",0,IF($AA101=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C101,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA101*12)+(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB101/3,0))*4)+(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB101/6,0))*2)+(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F101=\"Terminated\",0,IF($AA101=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C101,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA101*12)+(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB101/3,0))*4)+(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB101/6,0))*2)+(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F101=\"Terminated\",0,IF($AA101=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C101,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA101*12)+(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB101/3,0))*4)+(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB101/6,0))*2)+(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F101=\"Terminated\",0,IF($AA101=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C101,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA101*12)+(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB101/3,0))*4)+(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB101/6,0))*2)+(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},{"$f":"$AM101+SUM(OFFSET($AM101,0,1,1,COLUMN($AR$2)-COLUMN($AM$2)-1))","v":120000},120000,{"$f":"-IF($F101=\"Terminated\",0,IF($AA101=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C101,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA101*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F101=\"Terminated\",0,IF($AA101=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C101,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA101*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F101=\"Terminated\",0,IF($AA101=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C101,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA101*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F101=\"Terminated\",0,IF($AA101=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C101,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC101),MONTH($AC101)+1,1),OverEnd,\">=\"&DATE(YEAR($AC101),MONTH($AC101),1))>0,SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA101*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C101)*(PayDate<=$AC101)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA101*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C101,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C101,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,0,{"$f":"IF(ISNUMBER($AL101),($AR101*$AL101)-$AI101-$AK101,MAX(0,IF($AL101=\"B\",IF($AR101<Setup!$C$32,($AR101*Setup!$D$32)-$AI101-$AK101,(($AR101-VLOOKUP($AR101,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR101,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR101,TaxBracket2,1),0,1,1)-$AI101-$AK101),IF($AR101<Setup!$C$21,($AR101*Setup!$D$21)-$AI101-$AK101,(($AR101-VLOOKUP($AR101,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR101,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR101,TaxBracket1,1),0,1,1)-$AI101-$AK101))))","v":0},{"$f":"IF(ISNUMBER($AL101),($AX101*$AL101)-$AI101-$AK101,MAX(0,IF($AL101=\"B\",IF($AX101<Setup!$C$32,($AX101*Setup!$D$32)-$AI101-$AK101,(($AX101-VLOOKUP($AX101,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX101,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX101,TaxBracket2,1),0,1,1)-$AI101-$AK101),IF($AX101<Setup!$C$21,($AX101*Setup!$D$21)-$AI101-$AK101,(($AX101-VLOOKUP($AX101,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX101,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX101,TaxBracket1,1),0,1,1)-$AI101-$AK101))))","v":0},{"$f":"AZ101-BA101","v":0},1,0,120000]
[{"$f":"IF(ROW($A102)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B102,\"yyyy\")&TEXT($B102,\"mm\")&\"-\"&$C102)","v":"202309-EXS006"},{"$f":"IF(ROW($A102)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A102)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A102)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A102)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45194},{"$f":"IF(ROW($A102)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A102)-ROW($A$6)-IF(ROW($A102)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A102)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS006"},{"$f":"IF(ISNA(VLOOKUP($C102,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C102,EmpAll,COLUMN(Emp!$B$4),0))","v":"Andrews MS"},{"$f":"IF(ISNA(VLOOKUP($C102,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C102,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C102,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C102,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC102),MONTH($AC102)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C102,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC102),MONTH($AC102),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F102<>\"Active\",0,IF(COUNTIFS(OverEmp,$C102,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMIFS(OverValue,OverEmp,$C102,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1)),IF(AND($AC102>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C102)>0),SUMIFS(EmpIncrease,EmpCode,$C102),SUMIFS(EmpSalary,EmpCode,$C102))))","v":10000},{"$f":"IF($F102<>\"Active\",0,IF(COUNTIFS(OverEmp,$C102,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMIFS(OverValue,OverEmp,$C102,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1)),0))","v":0},{"$f":"IF($F102<>\"Active\",0,IF(COUNTIFS(OverEmp,$C102,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMIFS(OverValue,OverEmp,$C102,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1)),IF(MONTH(B102)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C102),0)))","v":0},{"$f":"IF($F102<>\"Active\",0,IF(COUNTIFS(OverEmp,$C102,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMIFS(OverValue,OverEmp,$C102,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1)),0))","v":0},{"$f":"IF($F102<>\"Active\",0,IF(COUNTIFS(OverEmp,$C102,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMIFS(OverValue,OverEmp,$C102,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C102,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMIFS(OverValue,OverEmp,$C102,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1)),(($BA102/12*$AA102)+(BB102*IF(1-$BC102=0,0,BD102/(1-$BC102))))-IF($F102=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC102,PayEmp,$C102)))","v":0},{"$f":"IF($F102=\"Terminated\",0,IF($AA102=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C102,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMIFS(OverValue,OverEmp,$C102,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA102)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA102,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102))))))","v":100},{"$f":"IF($F102=\"Terminated\",0,IF($AA102=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C102,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMIFS(OverValue,OverEmp,$C102,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA102)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA102,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102))))))","v":0},{"$f":"IF($F102=\"Terminated\",0,IF($AA102=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C102,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMIFS(OverValue,OverEmp,$C102,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA102)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA102,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102))))))","v":0},{"$f":"IF($F102=\"Terminated\",0,IF($AA102=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C102,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMIFS(OverValue,OverEmp,$C102,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA102)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA102,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102))))))","v":0},100,9900,{"$f":"IF($F102=\"Terminated\",0,IF($AA102=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C102,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMIFS(OverValue,OverEmp,$C102,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA102)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA102,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102)))))))","v":100},{"$f":"IF($F102=\"Terminated\",0,IF($AA102=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C102,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMIFS(OverValue,OverEmp,$C102,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA102)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA102,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102)))))))","v":100},{"$f":"IF($F102=\"Terminated\",0,IF($AA102=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C102,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMIFS(OverValue,OverEmp,$C102,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA102)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA102,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102)))))))","v":0},{"$f":"IF($F102=\"Terminated\",0,IF($AA102=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C102,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMIFS(OverValue,OverEmp,$C102,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA102)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA102,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC102,PayEmp,$C102)))))))","v":0},200,10200,300,{"$f":"IF(OR($B102<=Setup!$E$12,$B102>=Setup!$D$12+1),0,IF($F102<>\"Active\",0,IF($AE102=\"Yes\",$AB102,((YEAR($AC102)*12)+MONTH($AC102))-((YEAR($AD102)*12)+MONTH($AD102)-1))))","v":7},{"$f":"IF(OR($B102<=Setup!$E$12,$B102>=Setup!$D$12+1),0,((YEAR($AC102)*12)+MONTH($AC102))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":7},45194,{"$f":"IF(ISNA(VLOOKUP($C102,EmpAll,COLUMN(Emp!$E$4),0)),$AC102,IF(VLOOKUP($C102,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C102,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C102,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C102,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C102,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A102=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C102,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMIFS(OverValue,OverEmp,$C102,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1)),IF(ISNA(VLOOKUP($C102,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG102,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C102,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C102,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C102,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C102,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C102,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},120000,{"$f":"-IF($F102=\"Terminated\",0,IF($AA102=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C102,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA102*12)+(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB102/3,0))*4)+(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB102/6,0))*2)+(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F102=\"Terminated\",0,IF($AA102=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C102,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA102*12)+(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB102/3,0))*4)+(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB102/6,0))*2)+(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F102=\"Terminated\",0,IF($AA102=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C102,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA102*12)+(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB102/3,0))*4)+(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB102/6,0))*2)+(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F102=\"Terminated\",0,IF($AA102=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C102,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA102*12)+(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB102/3,0))*4)+(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB102/6,0))*2)+(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},120000,120000,{"$f":"-IF($F102=\"Terminated\",0,IF($AA102=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C102,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA102*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F102=\"Terminated\",0,IF($AA102=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C102,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA102*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F102=\"Terminated\",0,IF($AA102=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C102,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA102*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F102=\"Terminated\",0,IF($AA102=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C102,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC102),MONTH($AC102)+1,1),OverEnd,\">=\"&DATE(YEAR($AC102),MONTH($AC102),1))>0,SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA102*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C102)*(PayDate<=$AC102)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA102*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C102,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C102,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,0,{"$f":"IF(ISNUMBER($AL102),($AR102*$AL102)-$AI102-$AK102,MAX(0,IF($AL102=\"B\",IF($AR102<Setup!$C$32,($AR102*Setup!$D$32)-$AI102-$AK102,(($AR102-VLOOKUP($AR102,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR102,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR102,TaxBracket2,1),0,1,1)-$AI102-$AK102),IF($AR102<Setup!$C$21,($AR102*Setup!$D$21)-$AI102-$AK102,(($AR102-VLOOKUP($AR102,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR102,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR102,TaxBracket1,1),0,1,1)-$AI102-$AK102))))","v":0},{"$f":"IF(ISNUMBER($AL102),($AX102*$AL102)-$AI102-$AK102,MAX(0,IF($AL102=\"B\",IF($AX102<Setup!$C$32,($AX102*Setup!$D$32)-$AI102-$AK102,(($AX102-VLOOKUP($AX102,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX102,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX102,TaxBracket2,1),0,1,1)-$AI102-$AK102),IF($AX102<Setup!$C$21,($AX102*Setup!$D$21)-$AI102-$AK102,(($AX102-VLOOKUP($AX102,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX102,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX102,TaxBracket1,1),0,1,1)-$AI102-$AK102))))","v":0},0,1,0,120000]
[{"$f":"IF(ROW($A103)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B103,\"yyyy\")&TEXT($B103,\"mm\")&\"-\"&$C103)","v":"202309-EXS007"},{"$f":"IF(ROW($A103)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A103)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A103)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A103)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45194},{"$f":"IF(ROW($A103)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A103)-ROW($A$6)-IF(ROW($A103)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A103)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS007"},{"$f":"IF(ISNA(VLOOKUP($C103,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C103,EmpAll,COLUMN(Emp!$B$4),0))","v":"Phillips KE"},{"$f":"IF(ISNA(VLOOKUP($C103,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C103,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C103,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C103,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC103),MONTH($AC103)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C103,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC103),MONTH($AC103),0)),\"Terminated\",\"Active\")))","v":"Terminated"},{"$f":"IF($F103<>\"Active\",0,IF(COUNTIFS(OverEmp,$C103,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMIFS(OverValue,OverEmp,$C103,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1)),IF(AND($AC103>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C103)>0),SUMIFS(EmpIncrease,EmpCode,$C103),SUMIFS(EmpSalary,EmpCode,$C103))))","v":0},{"$f":"IF($F103<>\"Active\",0,IF(COUNTIFS(OverEmp,$C103,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMIFS(OverValue,OverEmp,$C103,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1)),0))","v":0},{"$f":"IF($F103<>\"Active\",0,IF(COUNTIFS(OverEmp,$C103,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMIFS(OverValue,OverEmp,$C103,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1)),IF(MONTH(B103)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C103),0)))","v":0},{"$f":"IF($F103<>\"Active\",0,IF(COUNTIFS(OverEmp,$C103,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMIFS(OverValue,OverEmp,$C103,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1)),0))","v":0},{"$f":"IF($F103<>\"Active\",0,IF(COUNTIFS(OverEmp,$C103,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMIFS(OverValue,OverEmp,$C103,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1)),0))","v":0},{"$f":"IF($AA103=0,0,SUM(OFFSET($G103,0,0,1,COLUMN($L$6)-COLUMN($G$6))))","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C103,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMIFS(OverValue,OverEmp,$C103,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1)),(($BA103/12*$AA103)+(BB103*IF(1-$BC103=0,0,BD103/(1-$BC103))))-IF($F103=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC103,PayEmp,$C103)))","v":0},{"$f":"IF($F103=\"Terminated\",0,IF($AA103=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C103,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMIFS(OverValue,OverEmp,$C103,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA103)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA103,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103))))))","v":0},{"$f":"IF($F103=\"Terminated\",0,IF($AA103=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C103,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMIFS(OverValue,OverEmp,$C103,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA103)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA103,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103))))))","v":0},{"$f":"IF($F103=\"Terminated\",0,IF($AA103=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C103,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMIFS(OverValue,OverEmp,$C103,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA103)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA103,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103))))))","v":0},{"$f":"IF($F103=\"Terminated\",0,IF($AA103=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C103,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMIFS(OverValue,OverEmp,$C103,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA103)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA103,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103))))))","v":0},{"$f":"SUM(OFFSET(M103,0,0,1,COLUMN($R$6)-COLUMN($M$6)))","v":0},{"$f":"ROUND(SUM(L103,-R103),2)","v":0},{"$f":"IF($F103=\"Terminated\",0,IF($AA103=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C103,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMIFS(OverValue,OverEmp,$C103,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA103)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA103,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103)))))))","v":0},{"$f":"IF($F103=\"Terminated\",0,IF($AA103=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C103,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMIFS(OverValue,OverEmp,$C103,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA103)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA103,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103)))))))","v":0},{"$f":"IF($F103=\"Terminated\",0,IF($AA103=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C103,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMIFS(OverValue,OverEmp,$C103,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA103)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA103,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103)))))))","v":0},{"$f":"IF($F103=\"Terminated\",0,IF($AA103=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C103,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMIFS(OverValue,OverEmp,$C103,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA103)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA103,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC103,PayEmp,$C103)))))))","v":0},0,{"$f":"L103+X103","v":0},0,{"$f":"IF(OR($B103<=Setup!$E$12,$B103>=Setup!$D$12+1),0,IF($F103<>\"Active\",0,IF($AE103=\"Yes\",$AB103,((YEAR($AC103)*12)+MONTH($AC103))-((YEAR($AD103)*12)+MONTH($AD103)-1))))","v":0},{"$f":"IF(OR($B103<=Setup!$E$12,$B103>=Setup!$D$12+1),0,((YEAR($AC103)*12)+MONTH($AC103))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":7},45194,{"$f":"IF(ISNA(VLOOKUP($C103,EmpAll,COLUMN(Emp!$E$4),0)),$AC103,IF(VLOOKUP($C103,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C103,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C103,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C103,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C103,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A103=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C103,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMIFS(OverValue,OverEmp,$C103,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1)),IF(ISNA(VLOOKUP($C103,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG103,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C103,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C103,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C103,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C103,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C103,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F103=\"Terminated\",0,IF($AA103=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C103,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA103*12)+(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB103/3,0))*4)+(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB103/6,0))*2)+(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F103=\"Terminated\",0,IF($AA103=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C103,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA103*12)+(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB103/3,0))*4)+(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB103/6,0))*2)+(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F103=\"Terminated\",0,IF($AA103=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C103,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA103*12)+(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB103/3,0))*4)+(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB103/6,0))*2)+(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F103=\"Terminated\",0,IF($AA103=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C103,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA103*12)+(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB103/3,0))*4)+(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB103/6,0))*2)+(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F103=\"Terminated\",0,IF($AA103=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C103,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA103*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F103=\"Terminated\",0,IF($AA103=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C103,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA103*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F103=\"Terminated\",0,IF($AA103=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C103,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA103*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F103=\"Terminated\",0,IF($AA103=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C103,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC103),MONTH($AC103)+1,1),OverEnd,\">=\"&DATE(YEAR($AC103),MONTH($AC103),1))>0,SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA103*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C103)*(PayDate<=$AC103)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA103*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C103,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C103,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},{"$f":"$AS103+SUM(OFFSET($AT103,0,0,1,COLUMN($AX$2)-COLUMN($AT$2)))","v":0},{"$f":"AR103-AX103","v":0},{"$f":"IF(ISNUMBER($AL103),($AR103*$AL103)-$AI103-$AK103,MAX(0,IF($AL103=\"B\",IF($AR103<Setup!$C$32,($AR103*Setup!$D$32)-$AI103-$AK103,(($AR103-VLOOKUP($AR103,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR103,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR103,TaxBracket2,1),0,1,1)-$AI103-$AK103),IF($AR103<Setup!$C$21,($AR103*Setup!$D$21)-$AI103-$AK103,(($AR103-VLOOKUP($AR103,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR103,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR103,TaxBracket1,1),0,1,1)-$AI103-$AK103))))","v":0},{"$f":"IF(ISNUMBER($AL103),($AX103*$AL103)-$AI103-$AK103,MAX(0,IF($AL103=\"B\",IF($AX103<Setup!$C$32,($AX103*Setup!$D$32)-$AI103-$AK103,(($AX103-VLOOKUP($AX103,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX103,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX103,TaxBracket2,1),0,1,1)-$AI103-$AK103),IF($AX103<Setup!$C$21,($AX103*Setup!$D$21)-$AI103-$AK103,(($AX103-VLOOKUP($AX103,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX103,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX103,TaxBracket1,1),0,1,1)-$AI103-$AK103))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A104)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B104,\"yyyy\")&TEXT($B104,\"mm\")&\"-\"&$C104)","v":"202309-EXS008"},{"$f":"IF(ROW($A104)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A104)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A104)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A104)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45194},{"$f":"IF(ROW($A104)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A104)-ROW($A$6)-IF(ROW($A104)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A104)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS008"},{"$f":"IF(ISNA(VLOOKUP($C104,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C104,EmpAll,COLUMN(Emp!$B$4),0))","v":"Matthews B"},{"$f":"IF(ISNA(VLOOKUP($C104,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C104,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C104,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C104,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC104),MONTH($AC104)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C104,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC104),MONTH($AC104),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F104<>\"Active\",0,IF(COUNTIFS(OverEmp,$C104,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMIFS(OverValue,OverEmp,$C104,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1)),IF(AND($AC104>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C104)>0),SUMIFS(EmpIncrease,EmpCode,$C104),SUMIFS(EmpSalary,EmpCode,$C104))))","v":9000},{"$f":"IF($F104<>\"Active\",0,IF(COUNTIFS(OverEmp,$C104,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMIFS(OverValue,OverEmp,$C104,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1)),0))","v":0},{"$f":"IF($F104<>\"Active\",0,IF(COUNTIFS(OverEmp,$C104,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMIFS(OverValue,OverEmp,$C104,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1)),IF(MONTH(B104)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C104),0)))","v":0},{"$f":"IF($F104<>\"Active\",0,IF(COUNTIFS(OverEmp,$C104,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMIFS(OverValue,OverEmp,$C104,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1)),0))","v":0},{"$f":"IF($F104<>\"Active\",0,IF(COUNTIFS(OverEmp,$C104,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMIFS(OverValue,OverEmp,$C104,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C104,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMIFS(OverValue,OverEmp,$C104,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1)),(($BA104/12*$AA104)+(BB104*IF(1-$BC104=0,0,BD104/(1-$BC104))))-IF($F104=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC104,PayEmp,$C104)))","v":183.75},{"$f":"IF($F104=\"Terminated\",0,IF($AA104=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C104,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMIFS(OverValue,OverEmp,$C104,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA104)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA104,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104))))))","v":90},{"$f":"IF($F104=\"Terminated\",0,IF($AA104=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C104,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMIFS(OverValue,OverEmp,$C104,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA104)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA104,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104))))))","v":0},{"$f":"IF($F104=\"Terminated\",0,IF($AA104=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C104,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMIFS(OverValue,OverEmp,$C104,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA104)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA104,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104))))))","v":0},{"$f":"IF($F104=\"Terminated\",0,IF($AA104=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C104,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMIFS(OverValue,OverEmp,$C104,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA104)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA104,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104))))))","v":0},273.75,8726.25,{"$f":"IF($F104=\"Terminated\",0,IF($AA104=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C104,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMIFS(OverValue,OverEmp,$C104,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA104)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA104,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104)))))))","v":90},{"$f":"IF($F104=\"Terminated\",0,IF($AA104=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C104,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMIFS(OverValue,OverEmp,$C104,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA104)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA104,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104)))))))","v":90},{"$f":"IF($F104=\"Terminated\",0,IF($AA104=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C104,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMIFS(OverValue,OverEmp,$C104,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA104)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA104,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104)))))))","v":0},{"$f":"IF($F104=\"Terminated\",0,IF($AA104=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C104,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMIFS(OverValue,OverEmp,$C104,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA104)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA104,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC104,PayEmp,$C104)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B104<=Setup!$E$12,$B104>=Setup!$D$12+1),0,IF($F104<>\"Active\",0,IF($AE104=\"Yes\",$AB104,((YEAR($AC104)*12)+MONTH($AC104))-((YEAR($AD104)*12)+MONTH($AD104)-1))))","v":7},{"$f":"IF(OR($B104<=Setup!$E$12,$B104>=Setup!$D$12+1),0,((YEAR($AC104)*12)+MONTH($AC104))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":7},45194,{"$f":"IF(ISNA(VLOOKUP($C104,EmpAll,COLUMN(Emp!$E$4),0)),$AC104,IF(VLOOKUP($C104,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C104,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C104,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C104,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C104,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A104=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C104,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMIFS(OverValue,OverEmp,$C104,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1)),IF(ISNA(VLOOKUP($C104,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG104,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C104,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C104,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C104,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C104,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C104,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F104=\"Terminated\",0,IF($AA104=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C104,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA104*12)+(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB104/3,0))*4)+(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB104/6,0))*2)+(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F104=\"Terminated\",0,IF($AA104=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C104,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA104*12)+(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB104/3,0))*4)+(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB104/6,0))*2)+(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F104=\"Terminated\",0,IF($AA104=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C104,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA104*12)+(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB104/3,0))*4)+(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB104/6,0))*2)+(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F104=\"Terminated\",0,IF($AA104=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C104,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA104*12)+(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB104/3,0))*4)+(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB104/6,0))*2)+(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F104=\"Terminated\",0,IF($AA104=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C104,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA104*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F104=\"Terminated\",0,IF($AA104=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C104,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA104*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F104=\"Terminated\",0,IF($AA104=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C104,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA104*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F104=\"Terminated\",0,IF($AA104=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C104,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC104),MONTH($AC104)+1,1),OverEnd,\">=\"&DATE(YEAR($AC104),MONTH($AC104),1))>0,SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA104*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C104)*(PayDate<=$AC104)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA104*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C104,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C104,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL104),($AR104*$AL104)-$AI104-$AK104,MAX(0,IF($AL104=\"B\",IF($AR104<Setup!$C$32,($AR104*Setup!$D$32)-$AI104-$AK104,(($AR104-VLOOKUP($AR104,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR104,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR104,TaxBracket2,1),0,1,1)-$AI104-$AK104),IF($AR104<Setup!$C$21,($AR104*Setup!$D$21)-$AI104-$AK104,(($AR104-VLOOKUP($AR104,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR104,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR104,TaxBracket1,1),0,1,1)-$AI104-$AK104))))","v":2205},{"$f":"IF(ISNUMBER($AL104),($AX104*$AL104)-$AI104-$AK104,MAX(0,IF($AL104=\"B\",IF($AX104<Setup!$C$32,($AX104*Setup!$D$32)-$AI104-$AK104,(($AX104-VLOOKUP($AX104,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX104,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX104,TaxBracket2,1),0,1,1)-$AI104-$AK104),IF($AX104<Setup!$C$21,($AX104*Setup!$D$21)-$AI104-$AK104,(($AX104-VLOOKUP($AX104,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX104,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX104,TaxBracket1,1),0,1,1)-$AI104-$AK104))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A105)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B105,\"yyyy\")&TEXT($B105,\"mm\")&\"-\"&$C105)","v":"202309-EXS009"},{"$f":"IF(ROW($A105)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A105)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A105)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A105)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45194},{"$f":"IF(ROW($A105)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A105)-ROW($A$6)-IF(ROW($A105)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A105)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS009"},{"$f":"IF(ISNA(VLOOKUP($C105,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C105,EmpAll,COLUMN(Emp!$B$4),0))","v":"Brown JT"},{"$f":"IF(ISNA(VLOOKUP($C105,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C105,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C105,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C105,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC105),MONTH($AC105)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C105,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC105),MONTH($AC105),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F105<>\"Active\",0,IF(COUNTIFS(OverEmp,$C105,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMIFS(OverValue,OverEmp,$C105,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1)),IF(AND($AC105>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C105)>0),SUMIFS(EmpIncrease,EmpCode,$C105),SUMIFS(EmpSalary,EmpCode,$C105))))","v":9000},{"$f":"IF($F105<>\"Active\",0,IF(COUNTIFS(OverEmp,$C105,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMIFS(OverValue,OverEmp,$C105,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1)),0))","v":0},{"$f":"IF($F105<>\"Active\",0,IF(COUNTIFS(OverEmp,$C105,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMIFS(OverValue,OverEmp,$C105,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1)),IF(MONTH(B105)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C105),0)))","v":0},{"$f":"IF($F105<>\"Active\",0,IF(COUNTIFS(OverEmp,$C105,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMIFS(OverValue,OverEmp,$C105,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1)),0))","v":0},{"$f":"IF($F105<>\"Active\",0,IF(COUNTIFS(OverEmp,$C105,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMIFS(OverValue,OverEmp,$C105,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C105,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMIFS(OverValue,OverEmp,$C105,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1)),(($BA105/12*$AA105)+(BB105*IF(1-$BC105=0,0,BD105/(1-$BC105))))-IF($F105=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC105,PayEmp,$C105)))","v":183.75},{"$f":"IF($F105=\"Terminated\",0,IF($AA105=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C105,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMIFS(OverValue,OverEmp,$C105,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA105)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA105,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105))))))","v":90},{"$f":"IF($F105=\"Terminated\",0,IF($AA105=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C105,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMIFS(OverValue,OverEmp,$C105,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA105)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA105,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105))))))","v":0},{"$f":"IF($F105=\"Terminated\",0,IF($AA105=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C105,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMIFS(OverValue,OverEmp,$C105,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA105)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA105,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105))))))","v":0},{"$f":"IF($F105=\"Terminated\",0,IF($AA105=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C105,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMIFS(OverValue,OverEmp,$C105,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA105)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA105,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105))))))","v":0},273.75,8726.25,{"$f":"IF($F105=\"Terminated\",0,IF($AA105=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C105,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMIFS(OverValue,OverEmp,$C105,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA105)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA105,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105)))))))","v":90},{"$f":"IF($F105=\"Terminated\",0,IF($AA105=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C105,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMIFS(OverValue,OverEmp,$C105,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA105)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA105,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105)))))))","v":90},{"$f":"IF($F105=\"Terminated\",0,IF($AA105=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C105,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMIFS(OverValue,OverEmp,$C105,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA105)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA105,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105)))))))","v":0},{"$f":"IF($F105=\"Terminated\",0,IF($AA105=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C105,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMIFS(OverValue,OverEmp,$C105,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA105)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA105,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC105,PayEmp,$C105)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B105<=Setup!$E$12,$B105>=Setup!$D$12+1),0,IF($F105<>\"Active\",0,IF($AE105=\"Yes\",$AB105,((YEAR($AC105)*12)+MONTH($AC105))-((YEAR($AD105)*12)+MONTH($AD105)-1))))","v":7},{"$f":"IF(OR($B105<=Setup!$E$12,$B105>=Setup!$D$12+1),0,((YEAR($AC105)*12)+MONTH($AC105))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":7},45194,{"$f":"IF(ISNA(VLOOKUP($C105,EmpAll,COLUMN(Emp!$E$4),0)),$AC105,IF(VLOOKUP($C105,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C105,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C105,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C105,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C105,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A105=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C105,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMIFS(OverValue,OverEmp,$C105,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1)),IF(ISNA(VLOOKUP($C105,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG105,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C105,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C105,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C105,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C105,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C105,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F105=\"Terminated\",0,IF($AA105=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C105,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA105*12)+(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB105/3,0))*4)+(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB105/6,0))*2)+(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F105=\"Terminated\",0,IF($AA105=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C105,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA105*12)+(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB105/3,0))*4)+(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB105/6,0))*2)+(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F105=\"Terminated\",0,IF($AA105=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C105,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA105*12)+(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB105/3,0))*4)+(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB105/6,0))*2)+(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F105=\"Terminated\",0,IF($AA105=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C105,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA105*12)+(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB105/3,0))*4)+(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB105/6,0))*2)+(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F105=\"Terminated\",0,IF($AA105=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C105,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA105*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F105=\"Terminated\",0,IF($AA105=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C105,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA105*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F105=\"Terminated\",0,IF($AA105=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C105,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA105*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F105=\"Terminated\",0,IF($AA105=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C105,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC105),MONTH($AC105)+1,1),OverEnd,\">=\"&DATE(YEAR($AC105),MONTH($AC105),1))>0,SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA105*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C105)*(PayDate<=$AC105)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA105*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C105,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C105,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL105),($AR105*$AL105)-$AI105-$AK105,MAX(0,IF($AL105=\"B\",IF($AR105<Setup!$C$32,($AR105*Setup!$D$32)-$AI105-$AK105,(($AR105-VLOOKUP($AR105,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR105,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR105,TaxBracket2,1),0,1,1)-$AI105-$AK105),IF($AR105<Setup!$C$21,($AR105*Setup!$D$21)-$AI105-$AK105,(($AR105-VLOOKUP($AR105,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR105,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR105,TaxBracket1,1),0,1,1)-$AI105-$AK105))))","v":2205},{"$f":"IF(ISNUMBER($AL105),($AX105*$AL105)-$AI105-$AK105,MAX(0,IF($AL105=\"B\",IF($AX105<Setup!$C$32,($AX105*Setup!$D$32)-$AI105-$AK105,(($AX105-VLOOKUP($AX105,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX105,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX105,TaxBracket2,1),0,1,1)-$AI105-$AK105),IF($AX105<Setup!$C$21,($AX105*Setup!$D$21)-$AI105-$AK105,(($AX105-VLOOKUP($AX105,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX105,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX105,TaxBracket1,1),0,1,1)-$AI105-$AK105))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A106)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B106,\"yyyy\")&TEXT($B106,\"mm\")&\"-\"&$C106)","v":"202309-EXS010"},{"$f":"IF(ROW($A106)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A106)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A106)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A106)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45194},{"$f":"IF(ROW($A106)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A106)-ROW($A$6)-IF(ROW($A106)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A106)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS010"},{"$f":"IF(ISNA(VLOOKUP($C106,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C106,EmpAll,COLUMN(Emp!$B$4),0))","v":"Lewis I"},{"$f":"IF(ISNA(VLOOKUP($C106,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C106,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C106,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C106,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC106),MONTH($AC106)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C106,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC106),MONTH($AC106),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F106<>\"Active\",0,IF(COUNTIFS(OverEmp,$C106,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMIFS(OverValue,OverEmp,$C106,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1)),IF(AND($AC106>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C106)>0),SUMIFS(EmpIncrease,EmpCode,$C106),SUMIFS(EmpSalary,EmpCode,$C106))))","v":9000},{"$f":"IF($F106<>\"Active\",0,IF(COUNTIFS(OverEmp,$C106,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMIFS(OverValue,OverEmp,$C106,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1)),0))","v":0},{"$f":"IF($F106<>\"Active\",0,IF(COUNTIFS(OverEmp,$C106,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMIFS(OverValue,OverEmp,$C106,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1)),IF(MONTH(B106)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C106),0)))","v":0},{"$f":"IF($F106<>\"Active\",0,IF(COUNTIFS(OverEmp,$C106,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMIFS(OverValue,OverEmp,$C106,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1)),0))","v":0},{"$f":"IF($F106<>\"Active\",0,IF(COUNTIFS(OverEmp,$C106,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMIFS(OverValue,OverEmp,$C106,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C106,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMIFS(OverValue,OverEmp,$C106,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1)),(($BA106/12*$AA106)+(BB106*IF(1-$BC106=0,0,BD106/(1-$BC106))))-IF($F106=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC106,PayEmp,$C106)))","v":183.75},{"$f":"IF($F106=\"Terminated\",0,IF($AA106=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C106,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMIFS(OverValue,OverEmp,$C106,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA106)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA106,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106))))))","v":90},{"$f":"IF($F106=\"Terminated\",0,IF($AA106=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C106,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMIFS(OverValue,OverEmp,$C106,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA106)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA106,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106))))))","v":0},{"$f":"IF($F106=\"Terminated\",0,IF($AA106=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C106,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMIFS(OverValue,OverEmp,$C106,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA106)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA106,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106))))))","v":0},{"$f":"IF($F106=\"Terminated\",0,IF($AA106=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C106,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMIFS(OverValue,OverEmp,$C106,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA106)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA106,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106))))))","v":0},273.75,8726.25,{"$f":"IF($F106=\"Terminated\",0,IF($AA106=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C106,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMIFS(OverValue,OverEmp,$C106,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA106)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA106,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106)))))))","v":90},{"$f":"IF($F106=\"Terminated\",0,IF($AA106=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C106,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMIFS(OverValue,OverEmp,$C106,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA106)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA106,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106)))))))","v":90},{"$f":"IF($F106=\"Terminated\",0,IF($AA106=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C106,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMIFS(OverValue,OverEmp,$C106,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA106)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA106,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106)))))))","v":0},{"$f":"IF($F106=\"Terminated\",0,IF($AA106=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C106,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMIFS(OverValue,OverEmp,$C106,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA106)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA106,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC106,PayEmp,$C106)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B106<=Setup!$E$12,$B106>=Setup!$D$12+1),0,IF($F106<>\"Active\",0,IF($AE106=\"Yes\",$AB106,((YEAR($AC106)*12)+MONTH($AC106))-((YEAR($AD106)*12)+MONTH($AD106)-1))))","v":7},{"$f":"IF(OR($B106<=Setup!$E$12,$B106>=Setup!$D$12+1),0,((YEAR($AC106)*12)+MONTH($AC106))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":7},45194,{"$f":"IF(ISNA(VLOOKUP($C106,EmpAll,COLUMN(Emp!$E$4),0)),$AC106,IF(VLOOKUP($C106,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C106,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C106,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C106,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C106,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A106=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C106,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMIFS(OverValue,OverEmp,$C106,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1)),IF(ISNA(VLOOKUP($C106,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG106,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C106,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C106,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C106,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C106,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C106,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F106=\"Terminated\",0,IF($AA106=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C106,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA106*12)+(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB106/3,0))*4)+(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB106/6,0))*2)+(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F106=\"Terminated\",0,IF($AA106=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C106,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA106*12)+(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB106/3,0))*4)+(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB106/6,0))*2)+(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F106=\"Terminated\",0,IF($AA106=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C106,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA106*12)+(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB106/3,0))*4)+(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB106/6,0))*2)+(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F106=\"Terminated\",0,IF($AA106=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C106,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA106*12)+(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB106/3,0))*4)+(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB106/6,0))*2)+(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F106=\"Terminated\",0,IF($AA106=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C106,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA106*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F106=\"Terminated\",0,IF($AA106=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C106,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA106*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F106=\"Terminated\",0,IF($AA106=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C106,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA106*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F106=\"Terminated\",0,IF($AA106=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C106,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC106),MONTH($AC106)+1,1),OverEnd,\">=\"&DATE(YEAR($AC106),MONTH($AC106),1))>0,SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA106*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C106)*(PayDate<=$AC106)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA106*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C106,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C106,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL106),($AR106*$AL106)-$AI106-$AK106,MAX(0,IF($AL106=\"B\",IF($AR106<Setup!$C$32,($AR106*Setup!$D$32)-$AI106-$AK106,(($AR106-VLOOKUP($AR106,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR106,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR106,TaxBracket2,1),0,1,1)-$AI106-$AK106),IF($AR106<Setup!$C$21,($AR106*Setup!$D$21)-$AI106-$AK106,(($AR106-VLOOKUP($AR106,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR106,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR106,TaxBracket1,1),0,1,1)-$AI106-$AK106))))","v":2205},{"$f":"IF(ISNUMBER($AL106),($AX106*$AL106)-$AI106-$AK106,MAX(0,IF($AL106=\"B\",IF($AX106<Setup!$C$32,($AX106*Setup!$D$32)-$AI106-$AK106,(($AX106-VLOOKUP($AX106,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX106,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX106,TaxBracket2,1),0,1,1)-$AI106-$AK106),IF($AX106<Setup!$C$21,($AX106*Setup!$D$21)-$AI106-$AK106,(($AX106-VLOOKUP($AX106,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX106,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX106,TaxBracket1,1),0,1,1)-$AI106-$AK106))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A107)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B107,\"yyyy\")&TEXT($B107,\"mm\")&\"-\"&$C107)","v":"202309-EXS011"},{"$f":"IF(ROW($A107)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A107)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A107)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A107)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45194},{"$f":"IF(ROW($A107)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A107)-ROW($A$6)-IF(ROW($A107)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A107)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS011"},{"$f":"IF(ISNA(VLOOKUP($C107,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C107,EmpAll,COLUMN(Emp!$B$4),0))","v":"Newport GD"},{"$f":"IF(ISNA(VLOOKUP($C107,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C107,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C107,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C107,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC107),MONTH($AC107)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C107,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC107),MONTH($AC107),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F107<>\"Active\",0,IF(COUNTIFS(OverEmp,$C107,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMIFS(OverValue,OverEmp,$C107,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1)),IF(AND($AC107>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C107)>0),SUMIFS(EmpIncrease,EmpCode,$C107),SUMIFS(EmpSalary,EmpCode,$C107))))","v":5000},{"$f":"IF($F107<>\"Active\",0,IF(COUNTIFS(OverEmp,$C107,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMIFS(OverValue,OverEmp,$C107,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1)),0))","v":0},{"$f":"IF($F107<>\"Active\",0,IF(COUNTIFS(OverEmp,$C107,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMIFS(OverValue,OverEmp,$C107,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1)),IF(MONTH(B107)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C107),0)))","v":0},{"$f":"IF($F107<>\"Active\",0,IF(COUNTIFS(OverEmp,$C107,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMIFS(OverValue,OverEmp,$C107,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1)),0))","v":0},{"$f":"IF($F107<>\"Active\",0,IF(COUNTIFS(OverEmp,$C107,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMIFS(OverValue,OverEmp,$C107,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C107,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMIFS(OverValue,OverEmp,$C107,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1)),(($BA107/12*$AA107)+(BB107*IF(1-$BC107=0,0,BD107/(1-$BC107))))-IF($F107=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC107,PayEmp,$C107)))","v":0},{"$f":"IF($F107=\"Terminated\",0,IF($AA107=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C107,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMIFS(OverValue,OverEmp,$C107,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA107)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA107,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107))))))","v":50},{"$f":"IF($F107=\"Terminated\",0,IF($AA107=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C107,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMIFS(OverValue,OverEmp,$C107,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA107)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA107,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107))))))","v":0},{"$f":"IF($F107=\"Terminated\",0,IF($AA107=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C107,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMIFS(OverValue,OverEmp,$C107,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA107)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA107,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107))))))","v":0},{"$f":"IF($F107=\"Terminated\",0,IF($AA107=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C107,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMIFS(OverValue,OverEmp,$C107,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA107)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA107,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107))))))","v":0},50,4950,{"$f":"IF($F107=\"Terminated\",0,IF($AA107=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C107,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMIFS(OverValue,OverEmp,$C107,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA107)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA107,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107)))))))","v":50},{"$f":"IF($F107=\"Terminated\",0,IF($AA107=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C107,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMIFS(OverValue,OverEmp,$C107,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA107)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA107,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107)))))))","v":50},{"$f":"IF($F107=\"Terminated\",0,IF($AA107=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C107,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMIFS(OverValue,OverEmp,$C107,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA107)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA107,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107)))))))","v":0},{"$f":"IF($F107=\"Terminated\",0,IF($AA107=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C107,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMIFS(OverValue,OverEmp,$C107,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA107)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA107,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC107,PayEmp,$C107)))))))","v":0},100,5100,150,{"$f":"IF(OR($B107<=Setup!$E$12,$B107>=Setup!$D$12+1),0,IF($F107<>\"Active\",0,IF($AE107=\"Yes\",$AB107,((YEAR($AC107)*12)+MONTH($AC107))-((YEAR($AD107)*12)+MONTH($AD107)-1))))","v":7},{"$f":"IF(OR($B107<=Setup!$E$12,$B107>=Setup!$D$12+1),0,((YEAR($AC107)*12)+MONTH($AC107))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":7},45194,{"$f":"IF(ISNA(VLOOKUP($C107,EmpAll,COLUMN(Emp!$E$4),0)),$AC107,IF(VLOOKUP($C107,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C107,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C107,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C107,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C107,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A107=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C107,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMIFS(OverValue,OverEmp,$C107,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1)),IF(ISNA(VLOOKUP($C107,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG107,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C107,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C107,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C107,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C107,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C107,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F107=\"Terminated\",0,IF($AA107=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C107,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA107*12)+(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB107/3,0))*4)+(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB107/6,0))*2)+(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F107=\"Terminated\",0,IF($AA107=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C107,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA107*12)+(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB107/3,0))*4)+(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB107/6,0))*2)+(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F107=\"Terminated\",0,IF($AA107=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C107,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA107*12)+(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB107/3,0))*4)+(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB107/6,0))*2)+(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F107=\"Terminated\",0,IF($AA107=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C107,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA107*12)+(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB107/3,0))*4)+(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB107/6,0))*2)+(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F107=\"Terminated\",0,IF($AA107=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C107,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA107*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F107=\"Terminated\",0,IF($AA107=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C107,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA107*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F107=\"Terminated\",0,IF($AA107=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C107,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA107*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F107=\"Terminated\",0,IF($AA107=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C107,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC107),MONTH($AC107)+1,1),OverEnd,\">=\"&DATE(YEAR($AC107),MONTH($AC107),1))>0,SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA107*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C107)*(PayDate<=$AC107)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA107*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C107,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C107,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL107),($AR107*$AL107)-$AI107-$AK107,MAX(0,IF($AL107=\"B\",IF($AR107<Setup!$C$32,($AR107*Setup!$D$32)-$AI107-$AK107,(($AR107-VLOOKUP($AR107,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR107,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR107,TaxBracket2,1),0,1,1)-$AI107-$AK107),IF($AR107<Setup!$C$21,($AR107*Setup!$D$21)-$AI107-$AK107,(($AR107-VLOOKUP($AR107,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR107,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR107,TaxBracket1,1),0,1,1)-$AI107-$AK107))))","v":0},{"$f":"IF(ISNUMBER($AL107),($AX107*$AL107)-$AI107-$AK107,MAX(0,IF($AL107=\"B\",IF($AX107<Setup!$C$32,($AX107*Setup!$D$32)-$AI107-$AK107,(($AX107-VLOOKUP($AX107,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX107,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX107,TaxBracket2,1),0,1,1)-$AI107-$AK107),IF($AX107<Setup!$C$21,($AX107*Setup!$D$21)-$AI107-$AK107,(($AX107-VLOOKUP($AX107,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX107,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX107,TaxBracket1,1),0,1,1)-$AI107-$AK107))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A108)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B108,\"yyyy\")&TEXT($B108,\"mm\")&\"-\"&$C108)","v":"202309-EXS012"},{"$f":"IF(ROW($A108)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A108)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A108)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A108)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45194},{"$f":"IF(ROW($A108)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A108)-ROW($A$6)-IF(ROW($A108)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A108)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS012"},{"$f":"IF(ISNA(VLOOKUP($C108,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C108,EmpAll,COLUMN(Emp!$B$4),0))","v":"Williams VS"},{"$f":"IF(ISNA(VLOOKUP($C108,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C108,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C108,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C108,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC108),MONTH($AC108)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C108,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC108),MONTH($AC108),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F108<>\"Active\",0,IF(COUNTIFS(OverEmp,$C108,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMIFS(OverValue,OverEmp,$C108,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1)),IF(AND($AC108>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C108)>0),SUMIFS(EmpIncrease,EmpCode,$C108),SUMIFS(EmpSalary,EmpCode,$C108))))","v":5000},{"$f":"IF($F108<>\"Active\",0,IF(COUNTIFS(OverEmp,$C108,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMIFS(OverValue,OverEmp,$C108,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1)),0))","v":0},{"$f":"IF($F108<>\"Active\",0,IF(COUNTIFS(OverEmp,$C108,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMIFS(OverValue,OverEmp,$C108,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1)),IF(MONTH(B108)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C108),0)))","v":0},{"$f":"IF($F108<>\"Active\",0,IF(COUNTIFS(OverEmp,$C108,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMIFS(OverValue,OverEmp,$C108,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1)),0))","v":0},{"$f":"IF($F108<>\"Active\",0,IF(COUNTIFS(OverEmp,$C108,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMIFS(OverValue,OverEmp,$C108,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C108,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMIFS(OverValue,OverEmp,$C108,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1)),(($BA108/12*$AA108)+(BB108*IF(1-$BC108=0,0,BD108/(1-$BC108))))-IF($F108=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC108,PayEmp,$C108)))","v":0},{"$f":"IF($F108=\"Terminated\",0,IF($AA108=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C108,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMIFS(OverValue,OverEmp,$C108,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA108)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA108,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108))))))","v":50},{"$f":"IF($F108=\"Terminated\",0,IF($AA108=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C108,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMIFS(OverValue,OverEmp,$C108,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA108)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA108,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108))))))","v":0},{"$f":"IF($F108=\"Terminated\",0,IF($AA108=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C108,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMIFS(OverValue,OverEmp,$C108,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA108)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA108,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108))))))","v":0},{"$f":"IF($F108=\"Terminated\",0,IF($AA108=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C108,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMIFS(OverValue,OverEmp,$C108,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA108)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA108,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108))))))","v":0},50,4950,{"$f":"IF($F108=\"Terminated\",0,IF($AA108=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C108,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMIFS(OverValue,OverEmp,$C108,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA108)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA108,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108)))))))","v":50},{"$f":"IF($F108=\"Terminated\",0,IF($AA108=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C108,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMIFS(OverValue,OverEmp,$C108,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA108)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA108,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108)))))))","v":50},{"$f":"IF($F108=\"Terminated\",0,IF($AA108=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C108,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMIFS(OverValue,OverEmp,$C108,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA108)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA108,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108)))))))","v":0},{"$f":"IF($F108=\"Terminated\",0,IF($AA108=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C108,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMIFS(OverValue,OverEmp,$C108,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA108)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA108,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC108,PayEmp,$C108)))))))","v":0},100,5100,150,{"$f":"IF(OR($B108<=Setup!$E$12,$B108>=Setup!$D$12+1),0,IF($F108<>\"Active\",0,IF($AE108=\"Yes\",$AB108,((YEAR($AC108)*12)+MONTH($AC108))-((YEAR($AD108)*12)+MONTH($AD108)-1))))","v":7},{"$f":"IF(OR($B108<=Setup!$E$12,$B108>=Setup!$D$12+1),0,((YEAR($AC108)*12)+MONTH($AC108))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":7},45194,{"$f":"IF(ISNA(VLOOKUP($C108,EmpAll,COLUMN(Emp!$E$4),0)),$AC108,IF(VLOOKUP($C108,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C108,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C108,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C108,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C108,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A108=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C108,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMIFS(OverValue,OverEmp,$C108,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1)),IF(ISNA(VLOOKUP($C108,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG108,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C108,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C108,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C108,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C108,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C108,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F108=\"Terminated\",0,IF($AA108=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C108,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA108*12)+(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB108/3,0))*4)+(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB108/6,0))*2)+(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F108=\"Terminated\",0,IF($AA108=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C108,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA108*12)+(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB108/3,0))*4)+(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB108/6,0))*2)+(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F108=\"Terminated\",0,IF($AA108=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C108,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA108*12)+(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB108/3,0))*4)+(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB108/6,0))*2)+(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F108=\"Terminated\",0,IF($AA108=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C108,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA108*12)+(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB108/3,0))*4)+(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB108/6,0))*2)+(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F108=\"Terminated\",0,IF($AA108=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C108,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA108*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F108=\"Terminated\",0,IF($AA108=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C108,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA108*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F108=\"Terminated\",0,IF($AA108=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C108,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA108*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F108=\"Terminated\",0,IF($AA108=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C108,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC108),MONTH($AC108)+1,1),OverEnd,\">=\"&DATE(YEAR($AC108),MONTH($AC108),1))>0,SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA108*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C108)*(PayDate<=$AC108)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA108*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C108,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C108,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL108),($AR108*$AL108)-$AI108-$AK108,MAX(0,IF($AL108=\"B\",IF($AR108<Setup!$C$32,($AR108*Setup!$D$32)-$AI108-$AK108,(($AR108-VLOOKUP($AR108,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR108,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR108,TaxBracket2,1),0,1,1)-$AI108-$AK108),IF($AR108<Setup!$C$21,($AR108*Setup!$D$21)-$AI108-$AK108,(($AR108-VLOOKUP($AR108,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR108,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR108,TaxBracket1,1),0,1,1)-$AI108-$AK108))))","v":0},{"$f":"IF(ISNUMBER($AL108),($AX108*$AL108)-$AI108-$AK108,MAX(0,IF($AL108=\"B\",IF($AX108<Setup!$C$32,($AX108*Setup!$D$32)-$AI108-$AK108,(($AX108-VLOOKUP($AX108,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX108,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX108,TaxBracket2,1),0,1,1)-$AI108-$AK108),IF($AX108<Setup!$C$21,($AX108*Setup!$D$21)-$AI108-$AK108,(($AX108-VLOOKUP($AX108,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX108,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX108,TaxBracket1,1),0,1,1)-$AI108-$AK108))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A109)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B109,\"yyyy\")&TEXT($B109,\"mm\")&\"-\"&$C109)","v":"202309-EXS013"},{"$f":"IF(ROW($A109)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A109)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A109)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A109)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45194},{"$f":"IF(ROW($A109)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A109)-ROW($A$6)-IF(ROW($A109)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A109)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS013"},{"$f":"IF(ISNA(VLOOKUP($C109,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C109,EmpAll,COLUMN(Emp!$B$4),0))","v":"East WD"},{"$f":"IF(ISNA(VLOOKUP($C109,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C109,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C109,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C109,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC109),MONTH($AC109)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C109,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC109),MONTH($AC109),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F109<>\"Active\",0,IF(COUNTIFS(OverEmp,$C109,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMIFS(OverValue,OverEmp,$C109,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1)),IF(AND($AC109>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C109)>0),SUMIFS(EmpIncrease,EmpCode,$C109),SUMIFS(EmpSalary,EmpCode,$C109))))","v":5000},{"$f":"IF($F109<>\"Active\",0,IF(COUNTIFS(OverEmp,$C109,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMIFS(OverValue,OverEmp,$C109,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1)),0))","v":0},{"$f":"IF($F109<>\"Active\",0,IF(COUNTIFS(OverEmp,$C109,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMIFS(OverValue,OverEmp,$C109,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1)),IF(MONTH(B109)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C109),0)))","v":0},{"$f":"IF($F109<>\"Active\",0,IF(COUNTIFS(OverEmp,$C109,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMIFS(OverValue,OverEmp,$C109,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1)),0))","v":0},{"$f":"IF($F109<>\"Active\",0,IF(COUNTIFS(OverEmp,$C109,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMIFS(OverValue,OverEmp,$C109,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C109,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMIFS(OverValue,OverEmp,$C109,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1)),(($BA109/12*$AA109)+(BB109*IF(1-$BC109=0,0,BD109/(1-$BC109))))-IF($F109=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC109,PayEmp,$C109)))","v":0},{"$f":"IF($F109=\"Terminated\",0,IF($AA109=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C109,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMIFS(OverValue,OverEmp,$C109,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA109)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA109,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109))))))","v":50},{"$f":"IF($F109=\"Terminated\",0,IF($AA109=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C109,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMIFS(OverValue,OverEmp,$C109,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA109)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA109,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109))))))","v":0},{"$f":"IF($F109=\"Terminated\",0,IF($AA109=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C109,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMIFS(OverValue,OverEmp,$C109,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA109)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA109,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109))))))","v":0},{"$f":"IF($F109=\"Terminated\",0,IF($AA109=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C109,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMIFS(OverValue,OverEmp,$C109,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA109)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA109,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109))))))","v":0},50,4950,{"$f":"IF($F109=\"Terminated\",0,IF($AA109=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C109,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMIFS(OverValue,OverEmp,$C109,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA109)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA109,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109)))))))","v":50},{"$f":"IF($F109=\"Terminated\",0,IF($AA109=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C109,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMIFS(OverValue,OverEmp,$C109,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA109)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA109,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109)))))))","v":50},{"$f":"IF($F109=\"Terminated\",0,IF($AA109=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C109,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMIFS(OverValue,OverEmp,$C109,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA109)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA109,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109)))))))","v":0},{"$f":"IF($F109=\"Terminated\",0,IF($AA109=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C109,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMIFS(OverValue,OverEmp,$C109,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA109)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA109,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC109,PayEmp,$C109)))))))","v":0},100,5100,150,{"$f":"IF(OR($B109<=Setup!$E$12,$B109>=Setup!$D$12+1),0,IF($F109<>\"Active\",0,IF($AE109=\"Yes\",$AB109,((YEAR($AC109)*12)+MONTH($AC109))-((YEAR($AD109)*12)+MONTH($AD109)-1))))","v":7},{"$f":"IF(OR($B109<=Setup!$E$12,$B109>=Setup!$D$12+1),0,((YEAR($AC109)*12)+MONTH($AC109))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":7},45194,{"$f":"IF(ISNA(VLOOKUP($C109,EmpAll,COLUMN(Emp!$E$4),0)),$AC109,IF(VLOOKUP($C109,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C109,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C109,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C109,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C109,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A109=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C109,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMIFS(OverValue,OverEmp,$C109,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1)),IF(ISNA(VLOOKUP($C109,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG109,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C109,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C109,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C109,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C109,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C109,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F109=\"Terminated\",0,IF($AA109=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C109,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA109*12)+(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB109/3,0))*4)+(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB109/6,0))*2)+(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F109=\"Terminated\",0,IF($AA109=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C109,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA109*12)+(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB109/3,0))*4)+(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB109/6,0))*2)+(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F109=\"Terminated\",0,IF($AA109=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C109,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA109*12)+(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB109/3,0))*4)+(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB109/6,0))*2)+(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F109=\"Terminated\",0,IF($AA109=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C109,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA109*12)+(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB109/3,0))*4)+(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB109/6,0))*2)+(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F109=\"Terminated\",0,IF($AA109=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C109,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA109*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F109=\"Terminated\",0,IF($AA109=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C109,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA109*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F109=\"Terminated\",0,IF($AA109=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C109,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA109*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F109=\"Terminated\",0,IF($AA109=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C109,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC109),MONTH($AC109)+1,1),OverEnd,\">=\"&DATE(YEAR($AC109),MONTH($AC109),1))>0,SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA109*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C109)*(PayDate<=$AC109)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA109*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C109,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C109,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL109),($AR109*$AL109)-$AI109-$AK109,MAX(0,IF($AL109=\"B\",IF($AR109<Setup!$C$32,($AR109*Setup!$D$32)-$AI109-$AK109,(($AR109-VLOOKUP($AR109,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR109,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR109,TaxBracket2,1),0,1,1)-$AI109-$AK109),IF($AR109<Setup!$C$21,($AR109*Setup!$D$21)-$AI109-$AK109,(($AR109-VLOOKUP($AR109,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR109,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR109,TaxBracket1,1),0,1,1)-$AI109-$AK109))))","v":0},{"$f":"IF(ISNUMBER($AL109),($AX109*$AL109)-$AI109-$AK109,MAX(0,IF($AL109=\"B\",IF($AX109<Setup!$C$32,($AX109*Setup!$D$32)-$AI109-$AK109,(($AX109-VLOOKUP($AX109,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX109,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX109,TaxBracket2,1),0,1,1)-$AI109-$AK109),IF($AX109<Setup!$C$21,($AX109*Setup!$D$21)-$AI109-$AK109,(($AX109-VLOOKUP($AX109,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX109,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX109,TaxBracket1,1),0,1,1)-$AI109-$AK109))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A110)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B110,\"yyyy\")&TEXT($B110,\"mm\")&\"-\"&$C110)","v":"202309-EXS014"},{"$f":"IF(ROW($A110)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A110)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A110)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A110)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45194},{"$f":"IF(ROW($A110)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A110)-ROW($A$6)-IF(ROW($A110)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A110)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS014"},{"$f":"IF(ISNA(VLOOKUP($C110,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C110,EmpAll,COLUMN(Emp!$B$4),0))","v":"Ross Q"},{"$f":"IF(ISNA(VLOOKUP($C110,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C110,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C110,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C110,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC110),MONTH($AC110)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C110,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC110),MONTH($AC110),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F110<>\"Active\",0,IF(COUNTIFS(OverEmp,$C110,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMIFS(OverValue,OverEmp,$C110,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1)),IF(AND($AC110>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C110)>0),SUMIFS(EmpIncrease,EmpCode,$C110),SUMIFS(EmpSalary,EmpCode,$C110))))","v":29150},{"$f":"IF($F110<>\"Active\",0,IF(COUNTIFS(OverEmp,$C110,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMIFS(OverValue,OverEmp,$C110,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1)),0))","v":0},{"$f":"IF($F110<>\"Active\",0,IF(COUNTIFS(OverEmp,$C110,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMIFS(OverValue,OverEmp,$C110,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1)),IF(MONTH(B110)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C110),0)))","v":0},{"$f":"IF($F110<>\"Active\",0,IF(COUNTIFS(OverEmp,$C110,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMIFS(OverValue,OverEmp,$C110,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1)),0))","v":0},{"$f":"IF($F110<>\"Active\",0,IF(COUNTIFS(OverEmp,$C110,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMIFS(OverValue,OverEmp,$C110,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1)),0))","v":0},29150,{"$f":"IF(COUNTIFS(OverEmp,$C110,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMIFS(OverValue,OverEmp,$C110,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1)),(($BA110/12*$AA110)+(BB110*IF(1-$BC110=0,0,BD110/(1-$BC110))))-IF($F110=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC110,PayEmp,$C110)))","v":4562.0833333333321},{"$f":"IF($F110=\"Terminated\",0,IF($AA110=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C110,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMIFS(OverValue,OverEmp,$C110,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA110)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA110,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110))))))","v":177.12},{"$f":"IF($F110=\"Terminated\",0,IF($AA110=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C110,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMIFS(OverValue,OverEmp,$C110,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA110)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA110,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110))))))","v":0},{"$f":"IF($F110=\"Terminated\",0,IF($AA110=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C110,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMIFS(OverValue,OverEmp,$C110,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA110)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA110,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110))))))","v":0},{"$f":"IF($F110=\"Terminated\",0,IF($AA110=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C110,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMIFS(OverValue,OverEmp,$C110,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA110)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA110,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110))))))","v":0},4739.203333333332,24410.799999999999,{"$f":"IF($F110=\"Terminated\",0,IF($AA110=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C110,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMIFS(OverValue,OverEmp,$C110,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA110)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA110,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110)))))))","v":177.12},{"$f":"IF($F110=\"Terminated\",0,IF($AA110=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C110,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMIFS(OverValue,OverEmp,$C110,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA110)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA110,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110)))))))","v":291.5},{"$f":"IF($F110=\"Terminated\",0,IF($AA110=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C110,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMIFS(OverValue,OverEmp,$C110,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA110)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA110,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110)))))))","v":0},{"$f":"IF($F110=\"Terminated\",0,IF($AA110=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C110,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMIFS(OverValue,OverEmp,$C110,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA110)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA110,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC110,PayEmp,$C110)))))))","v":0},468.62,29618.62,5207.82,{"$f":"IF(OR($B110<=Setup!$E$12,$B110>=Setup!$D$12+1),0,IF($F110<>\"Active\",0,IF($AE110=\"Yes\",$AB110,((YEAR($AC110)*12)+MONTH($AC110))-((YEAR($AD110)*12)+MONTH($AD110)-1))))","v":4},{"$f":"IF(OR($B110<=Setup!$E$12,$B110>=Setup!$D$12+1),0,((YEAR($AC110)*12)+MONTH($AC110))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":7},45194,{"$f":"IF(ISNA(VLOOKUP($C110,EmpAll,COLUMN(Emp!$E$4),0)),$AC110,IF(VLOOKUP($C110,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C110,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-06-25"},{"$f":"IF(ISNA(VLOOKUP($C110,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C110,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C110,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A110=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C110,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMIFS(OverValue,OverEmp,$C110,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1)),IF(ISNA(VLOOKUP($C110,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG110,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C110,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C110,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C110,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C110,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C110,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},349800,{"$f":"-IF($F110=\"Terminated\",0,IF($AA110=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C110,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA110*12)+(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB110/3,0))*4)+(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB110/6,0))*2)+(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F110=\"Terminated\",0,IF($AA110=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C110,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA110*12)+(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB110/3,0))*4)+(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB110/6,0))*2)+(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F110=\"Terminated\",0,IF($AA110=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C110,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA110*12)+(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB110/3,0))*4)+(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB110/6,0))*2)+(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F110=\"Terminated\",0,IF($AA110=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C110,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA110*12)+(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB110/3,0))*4)+(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB110/6,0))*2)+(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},349800,349800,{"$f":"-IF($F110=\"Terminated\",0,IF($AA110=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C110,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA110*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F110=\"Terminated\",0,IF($AA110=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C110,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA110*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F110=\"Terminated\",0,IF($AA110=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C110,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA110*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F110=\"Terminated\",0,IF($AA110=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C110,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC110),MONTH($AC110)+1,1),OverEnd,\">=\"&DATE(YEAR($AC110),MONTH($AC110),1))>0,SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA110*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C110)*(PayDate<=$AC110)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA110*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C110,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C110,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},349800,0,{"$f":"IF(ISNUMBER($AL110),($AR110*$AL110)-$AI110-$AK110,MAX(0,IF($AL110=\"B\",IF($AR110<Setup!$C$32,($AR110*Setup!$D$32)-$AI110-$AK110,(($AR110-VLOOKUP($AR110,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR110,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR110,TaxBracket2,1),0,1,1)-$AI110-$AK110),IF($AR110<Setup!$C$21,($AR110*Setup!$D$21)-$AI110-$AK110,(($AR110-VLOOKUP($AR110,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR110,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR110,TaxBracket1,1),0,1,1)-$AI110-$AK110))))","v":54745},{"$f":"IF(ISNUMBER($AL110),($AX110*$AL110)-$AI110-$AK110,MAX(0,IF($AL110=\"B\",IF($AX110<Setup!$C$32,($AX110*Setup!$D$32)-$AI110-$AK110,(($AX110-VLOOKUP($AX110,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX110,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX110,TaxBracket2,1),0,1,1)-$AI110-$AK110),IF($AX110<Setup!$C$21,($AX110*Setup!$D$21)-$AI110-$AK110,(($AX110-VLOOKUP($AX110,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX110,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX110,TaxBracket1,1),0,1,1)-$AI110-$AK110))))","v":54745},0,1,0,349800]
[{"$f":"IF(ROW($A111)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B111,\"yyyy\")&TEXT($B111,\"mm\")&\"-\"&$C111)","v":"202309-EXS015"},{"$f":"IF(ROW($A111)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A111)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A111)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A111)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45194},{"$f":"IF(ROW($A111)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A111)-ROW($A$6)-IF(ROW($A111)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A111)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS015"},{"$f":"IF(ISNA(VLOOKUP($C111,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C111,EmpAll,COLUMN(Emp!$B$4),0))","v":"Graham L"},{"$f":"IF(ISNA(VLOOKUP($C111,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C111,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C111,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C111,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC111),MONTH($AC111)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C111,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC111),MONTH($AC111),0)),\"Terminated\",\"Active\")))","v":"Inactive"},{"$f":"IF($F111<>\"Active\",0,IF(COUNTIFS(OverEmp,$C111,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMIFS(OverValue,OverEmp,$C111,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1)),IF(AND($AC111>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C111)>0),SUMIFS(EmpIncrease,EmpCode,$C111),SUMIFS(EmpSalary,EmpCode,$C111))))","v":0},{"$f":"IF($F111<>\"Active\",0,IF(COUNTIFS(OverEmp,$C111,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMIFS(OverValue,OverEmp,$C111,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1)),0))","v":0},{"$f":"IF($F111<>\"Active\",0,IF(COUNTIFS(OverEmp,$C111,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMIFS(OverValue,OverEmp,$C111,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1)),IF(MONTH(B111)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C111),0)))","v":0},{"$f":"IF($F111<>\"Active\",0,IF(COUNTIFS(OverEmp,$C111,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMIFS(OverValue,OverEmp,$C111,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1)),0))","v":0},{"$f":"IF($F111<>\"Active\",0,IF(COUNTIFS(OverEmp,$C111,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMIFS(OverValue,OverEmp,$C111,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C111,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMIFS(OverValue,OverEmp,$C111,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1)),(($BA111/12*$AA111)+(BB111*IF(1-$BC111=0,0,BD111/(1-$BC111))))-IF($F111=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC111,PayEmp,$C111)))","v":0},{"$f":"IF($F111=\"Terminated\",0,IF($AA111=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C111,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMIFS(OverValue,OverEmp,$C111,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA111)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA111,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111))))))","v":0},{"$f":"IF($F111=\"Terminated\",0,IF($AA111=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C111,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMIFS(OverValue,OverEmp,$C111,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA111)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA111,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111))))))","v":0},{"$f":"IF($F111=\"Terminated\",0,IF($AA111=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C111,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMIFS(OverValue,OverEmp,$C111,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA111)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA111,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111))))))","v":0},{"$f":"IF($F111=\"Terminated\",0,IF($AA111=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C111,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMIFS(OverValue,OverEmp,$C111,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA111)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA111,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111))))))","v":0},0,0,{"$f":"IF($F111=\"Terminated\",0,IF($AA111=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C111,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMIFS(OverValue,OverEmp,$C111,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA111)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA111,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111)))))))","v":0},{"$f":"IF($F111=\"Terminated\",0,IF($AA111=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C111,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMIFS(OverValue,OverEmp,$C111,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA111)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA111,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111)))))))","v":0},{"$f":"IF($F111=\"Terminated\",0,IF($AA111=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C111,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMIFS(OverValue,OverEmp,$C111,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA111)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA111,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111)))))))","v":0},{"$f":"IF($F111=\"Terminated\",0,IF($AA111=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C111,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMIFS(OverValue,OverEmp,$C111,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA111)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA111,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC111,PayEmp,$C111)))))))","v":0},0,0,0,{"$f":"IF(OR($B111<=Setup!$E$12,$B111>=Setup!$D$12+1),0,IF($F111<>\"Active\",0,IF($AE111=\"Yes\",$AB111,((YEAR($AC111)*12)+MONTH($AC111))-((YEAR($AD111)*12)+MONTH($AD111)-1))))","v":0},{"$f":"IF(OR($B111<=Setup!$E$12,$B111>=Setup!$D$12+1),0,((YEAR($AC111)*12)+MONTH($AC111))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":7},45194,{"$f":"IF(ISNA(VLOOKUP($C111,EmpAll,COLUMN(Emp!$E$4),0)),$AC111,IF(VLOOKUP($C111,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C111,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-01-25"},{"$f":"IF(ISNA(VLOOKUP($C111,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C111,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C111,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A111=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C111,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMIFS(OverValue,OverEmp,$C111,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1)),IF(ISNA(VLOOKUP($C111,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG111,MedList,COLUMN(Setup!$C$49),1)","v":364},6916,{"$f":"IF(ISNA(VLOOKUP($C111,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C111,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C111,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C111,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C111,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F111=\"Terminated\",0,IF($AA111=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C111,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA111*12)+(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB111/3,0))*4)+(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB111/6,0))*2)+(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F111=\"Terminated\",0,IF($AA111=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C111,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA111*12)+(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB111/3,0))*4)+(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB111/6,0))*2)+(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F111=\"Terminated\",0,IF($AA111=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C111,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA111*12)+(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB111/3,0))*4)+(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB111/6,0))*2)+(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F111=\"Terminated\",0,IF($AA111=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C111,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA111*12)+(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB111/3,0))*4)+(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB111/6,0))*2)+(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F111=\"Terminated\",0,IF($AA111=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C111,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA111*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F111=\"Terminated\",0,IF($AA111=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C111,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA111*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F111=\"Terminated\",0,IF($AA111=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C111,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA111*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F111=\"Terminated\",0,IF($AA111=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C111,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC111),MONTH($AC111)+1,1),OverEnd,\">=\"&DATE(YEAR($AC111),MONTH($AC111),1))>0,SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA111*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C111)*(PayDate<=$AC111)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA111*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C111,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C111,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL111),($AR111*$AL111)-$AI111-$AK111,MAX(0,IF($AL111=\"B\",IF($AR111<Setup!$C$32,($AR111*Setup!$D$32)-$AI111-$AK111,(($AR111-VLOOKUP($AR111,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR111,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR111,TaxBracket2,1),0,1,1)-$AI111-$AK111),IF($AR111<Setup!$C$21,($AR111*Setup!$D$21)-$AI111-$AK111,(($AR111-VLOOKUP($AR111,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR111,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR111,TaxBracket1,1),0,1,1)-$AI111-$AK111))))","v":0},{"$f":"IF(ISNUMBER($AL111),($AX111*$AL111)-$AI111-$AK111,MAX(0,IF($AL111=\"B\",IF($AX111<Setup!$C$32,($AX111*Setup!$D$32)-$AI111-$AK111,(($AX111-VLOOKUP($AX111,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX111,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX111,TaxBracket2,1),0,1,1)-$AI111-$AK111),IF($AX111<Setup!$C$21,($AX111*Setup!$D$21)-$AI111-$AK111,(($AX111-VLOOKUP($AX111,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX111,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX111,TaxBracket1,1),0,1,1)-$AI111-$AK111))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A112)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B112,\"yyyy\")&TEXT($B112,\"mm\")&\"-\"&$C112)","v":"202310-EXS001"},{"$f":"IF(ROW($A112)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A112)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A112)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A112)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45224},{"$f":"IF(ROW($A112)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A112)-ROW($A$6)-IF(ROW($A112)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A112)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS001"},{"$f":"IF(ISNA(VLOOKUP($C112,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C112,EmpAll,COLUMN(Emp!$B$4),0))","v":"Taylor AE"},{"$f":"IF(ISNA(VLOOKUP($C112,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C112,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C112,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C112,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC112),MONTH($AC112)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C112,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC112),MONTH($AC112),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F112<>\"Active\",0,IF(COUNTIFS(OverEmp,$C112,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMIFS(OverValue,OverEmp,$C112,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1)),IF(AND($AC112>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C112)>0),SUMIFS(EmpIncrease,EmpCode,$C112),SUMIFS(EmpSalary,EmpCode,$C112))))","v":150000},{"$f":"IF($F112<>\"Active\",0,IF(COUNTIFS(OverEmp,$C112,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMIFS(OverValue,OverEmp,$C112,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1)),0))","v":0},{"$f":"IF($F112<>\"Active\",0,IF(COUNTIFS(OverEmp,$C112,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMIFS(OverValue,OverEmp,$C112,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1)),IF(MONTH(B112)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C112),0)))","v":0},{"$f":"IF($F112<>\"Active\",0,IF(COUNTIFS(OverEmp,$C112,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMIFS(OverValue,OverEmp,$C112,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1)),0))","v":0},{"$f":"IF($F112<>\"Active\",0,IF(COUNTIFS(OverEmp,$C112,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMIFS(OverValue,OverEmp,$C112,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1)),0))","v":0},150000,{"$f":"IF(COUNTIFS(OverEmp,$C112,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMIFS(OverValue,OverEmp,$C112,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1)),(($BA112/12*$AA112)+(BB112*IF(1-$BC112=0,0,BD112/(1-$BC112))))-IF($F112=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC112,PayEmp,$C112)))","v":45611.833333333314},{"$f":"IF($F112=\"Terminated\",0,IF($AA112=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C112,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMIFS(OverValue,OverEmp,$C112,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA112)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA112,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112))))))","v":177.12000000000012},{"$f":"IF($F112=\"Terminated\",0,IF($AA112=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C112,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMIFS(OverValue,OverEmp,$C112,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA112)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA112,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112))))))","v":11250},{"$f":"IF($F112=\"Terminated\",0,IF($AA112=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C112,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMIFS(OverValue,OverEmp,$C112,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA112)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA112,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112))))))","v":0},{"$f":"IF($F112=\"Terminated\",0,IF($AA112=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C112,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMIFS(OverValue,OverEmp,$C112,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA112)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA112,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112))))))","v":0},57038.953333333317,92961.05,{"$f":"IF($F112=\"Terminated\",0,IF($AA112=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C112,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMIFS(OverValue,OverEmp,$C112,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA112)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA112,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112)))))))","v":177.12000000000012},{"$f":"IF($F112=\"Terminated\",0,IF($AA112=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C112,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMIFS(OverValue,OverEmp,$C112,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA112)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA112,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112)))))))","v":1500},{"$f":"IF($F112=\"Terminated\",0,IF($AA112=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C112,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMIFS(OverValue,OverEmp,$C112,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA112)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA112,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112)))))))","v":0},{"$f":"IF($F112=\"Terminated\",0,IF($AA112=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C112,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMIFS(OverValue,OverEmp,$C112,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA112)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA112,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC112,PayEmp,$C112)))))))","v":0},1677.1200000000001,151677.12,58716.07,{"$f":"IF(OR($B112<=Setup!$E$12,$B112>=Setup!$D$12+1),0,IF($F112<>\"Active\",0,IF($AE112=\"Yes\",$AB112,((YEAR($AC112)*12)+MONTH($AC112))-((YEAR($AD112)*12)+MONTH($AD112)-1))))","v":8},{"$f":"IF(OR($B112<=Setup!$E$12,$B112>=Setup!$D$12+1),0,((YEAR($AC112)*12)+MONTH($AC112))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":8},45224,{"$f":"IF(ISNA(VLOOKUP($C112,EmpAll,COLUMN(Emp!$E$4),0)),$AC112,IF(VLOOKUP($C112,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C112,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C112,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C112,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C112,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A112=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C112,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMIFS(OverValue,OverEmp,$C112,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1)),IF(ISNA(VLOOKUP($C112,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$N$4),0)))","v":5},{"$f":"VLOOKUP($AG112,MedList,COLUMN(Setup!$C$49),1)","v":1466},17592,{"$f":"IF(ISNA(VLOOKUP($C112,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C112,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C112,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C112,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C112,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1800000,{"$f":"-IF($F112=\"Terminated\",0,IF($AA112=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C112,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA112*12)+(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB112/3,0))*4)+(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB112/6,0))*2)+(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F112=\"Terminated\",0,IF($AA112=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C112,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA112*12)+(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB112/3,0))*4)+(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB112/6,0))*2)+(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F112=\"Terminated\",0,IF($AA112=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C112,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA112*12)+(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB112/3,0))*4)+(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB112/6,0))*2)+(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F112=\"Terminated\",0,IF($AA112=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C112,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA112*12)+(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB112/3,0))*4)+(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB112/6,0))*2)+(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1665000,1800000,{"$f":"-IF($F112=\"Terminated\",0,IF($AA112=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C112,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA112*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F112=\"Terminated\",0,IF($AA112=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C112,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA112*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F112=\"Terminated\",0,IF($AA112=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C112,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA112*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F112=\"Terminated\",0,IF($AA112=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C112,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC112),MONTH($AC112)+1,1),OverEnd,\">=\"&DATE(YEAR($AC112),MONTH($AC112),1))>0,SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA112*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C112)*(PayDate<=$AC112)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA112*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C112,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C112,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1665000,0,{"$f":"IF(ISNUMBER($AL112),($AR112*$AL112)-$AI112-$AK112,MAX(0,IF($AL112=\"B\",IF($AR112<Setup!$C$32,($AR112*Setup!$D$32)-$AI112-$AK112,(($AR112-VLOOKUP($AR112,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR112,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR112,TaxBracket2,1),0,1,1)-$AI112-$AK112),IF($AR112<Setup!$C$21,($AR112*Setup!$D$21)-$AI112-$AK112,(($AR112-VLOOKUP($AR112,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR112,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR112,TaxBracket1,1),0,1,1)-$AI112-$AK112))))","v":547342},{"$f":"IF(ISNUMBER($AL112),($AX112*$AL112)-$AI112-$AK112,MAX(0,IF($AL112=\"B\",IF($AX112<Setup!$C$32,($AX112*Setup!$D$32)-$AI112-$AK112,(($AX112-VLOOKUP($AX112,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX112,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX112,TaxBracket2,1),0,1,1)-$AI112-$AK112),IF($AX112<Setup!$C$21,($AX112*Setup!$D$21)-$AI112-$AK112,(($AX112-VLOOKUP($AX112,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX112,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX112,TaxBracket1,1),0,1,1)-$AI112-$AK112))))","v":547342},0,1,0,1800000]
[{"$f":"IF(ROW($A113)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B113,\"yyyy\")&TEXT($B113,\"mm\")&\"-\"&$C113)","v":"202310-EXS002"},{"$f":"IF(ROW($A113)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A113)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A113)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A113)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45224},{"$f":"IF(ROW($A113)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A113)-ROW($A$6)-IF(ROW($A113)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A113)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS002"},{"$f":"IF(ISNA(VLOOKUP($C113,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C113,EmpAll,COLUMN(Emp!$B$4),0))","v":"Smith F"},{"$f":"IF(ISNA(VLOOKUP($C113,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C113,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C113,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C113,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC113),MONTH($AC113)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C113,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC113),MONTH($AC113),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F113<>\"Active\",0,IF(COUNTIFS(OverEmp,$C113,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMIFS(OverValue,OverEmp,$C113,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1)),IF(AND($AC113>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C113)>0),SUMIFS(EmpIncrease,EmpCode,$C113),SUMIFS(EmpSalary,EmpCode,$C113))))","v":120000},{"$f":"IF($F113<>\"Active\",0,IF(COUNTIFS(OverEmp,$C113,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMIFS(OverValue,OverEmp,$C113,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1)),0))","v":0},{"$f":"IF($F113<>\"Active\",0,IF(COUNTIFS(OverEmp,$C113,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMIFS(OverValue,OverEmp,$C113,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1)),IF(MONTH(B113)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C113),0)))","v":0},{"$f":"IF($F113<>\"Active\",0,IF(COUNTIFS(OverEmp,$C113,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMIFS(OverValue,OverEmp,$C113,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1)),0))","v":0},{"$f":"IF($F113<>\"Active\",0,IF(COUNTIFS(OverEmp,$C113,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMIFS(OverValue,OverEmp,$C113,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1)),0))","v":0},120000,{"$f":"IF(COUNTIFS(OverEmp,$C113,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMIFS(OverValue,OverEmp,$C113,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1)),(($BA113/12*$AA113)+(BB113*IF(1-$BC113=0,0,BD113/(1-$BC113))))-IF($F113=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC113,PayEmp,$C113)))","v":38498.333333333314},{"$f":"IF($F113=\"Terminated\",0,IF($AA113=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C113,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMIFS(OverValue,OverEmp,$C113,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA113)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA113,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113))))))","v":177.12000000000012},{"$f":"IF($F113=\"Terminated\",0,IF($AA113=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C113,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMIFS(OverValue,OverEmp,$C113,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA113)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA113,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113))))))","v":0},{"$f":"IF($F113=\"Terminated\",0,IF($AA113=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C113,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMIFS(OverValue,OverEmp,$C113,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA113)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA113,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113))))))","v":0},{"$f":"IF($F113=\"Terminated\",0,IF($AA113=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C113,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMIFS(OverValue,OverEmp,$C113,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA113)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA113,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113))))))","v":0},38675.453333333317,81324.55,{"$f":"IF($F113=\"Terminated\",0,IF($AA113=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C113,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMIFS(OverValue,OverEmp,$C113,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA113)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA113,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113)))))))","v":177.12000000000012},{"$f":"IF($F113=\"Terminated\",0,IF($AA113=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C113,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMIFS(OverValue,OverEmp,$C113,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA113)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA113,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113)))))))","v":1200},{"$f":"IF($F113=\"Terminated\",0,IF($AA113=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C113,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMIFS(OverValue,OverEmp,$C113,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA113)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA113,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113)))))))","v":0},{"$f":"IF($F113=\"Terminated\",0,IF($AA113=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C113,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMIFS(OverValue,OverEmp,$C113,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA113)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA113,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC113,PayEmp,$C113)))))))","v":0},1377.1200000000001,121377.12,40052.57,{"$f":"IF(OR($B113<=Setup!$E$12,$B113>=Setup!$D$12+1),0,IF($F113<>\"Active\",0,IF($AE113=\"Yes\",$AB113,((YEAR($AC113)*12)+MONTH($AC113))-((YEAR($AD113)*12)+MONTH($AD113)-1))))","v":8},{"$f":"IF(OR($B113<=Setup!$E$12,$B113>=Setup!$D$12+1),0,((YEAR($AC113)*12)+MONTH($AC113))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":8},45224,{"$f":"IF(ISNA(VLOOKUP($C113,EmpAll,COLUMN(Emp!$E$4),0)),$AC113,IF(VLOOKUP($C113,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C113,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C113,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C113,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C113,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A113=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C113,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMIFS(OverValue,OverEmp,$C113,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1)),IF(ISNA(VLOOKUP($C113,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$N$4),0)))","v":3},{"$f":"VLOOKUP($AG113,MedList,COLUMN(Setup!$C$49),1)","v":974},10704,{"$f":"IF(ISNA(VLOOKUP($C113,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C113,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C113,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C113,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C113,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1440000,{"$f":"-IF($F113=\"Terminated\",0,IF($AA113=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C113,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA113*12)+(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB113/3,0))*4)+(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB113/6,0))*2)+(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F113=\"Terminated\",0,IF($AA113=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C113,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA113*12)+(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB113/3,0))*4)+(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB113/6,0))*2)+(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F113=\"Terminated\",0,IF($AA113=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C113,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA113*12)+(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB113/3,0))*4)+(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB113/6,0))*2)+(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F113=\"Terminated\",0,IF($AA113=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C113,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA113*12)+(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB113/3,0))*4)+(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB113/6,0))*2)+(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1440000,1440000,{"$f":"-IF($F113=\"Terminated\",0,IF($AA113=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C113,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA113*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F113=\"Terminated\",0,IF($AA113=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C113,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA113*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F113=\"Terminated\",0,IF($AA113=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C113,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA113*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F113=\"Terminated\",0,IF($AA113=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C113,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC113),MONTH($AC113)+1,1),OverEnd,\">=\"&DATE(YEAR($AC113),MONTH($AC113),1))>0,SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA113*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C113)*(PayDate<=$AC113)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA113*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C113,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C113,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1440000,0,{"$f":"IF(ISNUMBER($AL113),($AR113*$AL113)-$AI113-$AK113,MAX(0,IF($AL113=\"B\",IF($AR113<Setup!$C$32,($AR113*Setup!$D$32)-$AI113-$AK113,(($AR113-VLOOKUP($AR113,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR113,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR113,TaxBracket2,1),0,1,1)-$AI113-$AK113),IF($AR113<Setup!$C$21,($AR113*Setup!$D$21)-$AI113-$AK113,(($AR113-VLOOKUP($AR113,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR113,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR113,TaxBracket1,1),0,1,1)-$AI113-$AK113))))","v":461980},{"$f":"IF(ISNUMBER($AL113),($AX113*$AL113)-$AI113-$AK113,MAX(0,IF($AL113=\"B\",IF($AX113<Setup!$C$32,($AX113*Setup!$D$32)-$AI113-$AK113,(($AX113-VLOOKUP($AX113,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX113,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX113,TaxBracket2,1),0,1,1)-$AI113-$AK113),IF($AX113<Setup!$C$21,($AX113*Setup!$D$21)-$AI113-$AK113,(($AX113-VLOOKUP($AX113,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX113,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX113,TaxBracket1,1),0,1,1)-$AI113-$AK113))))","v":461980},0,1,0,1440000]
[{"$f":"IF(ROW($A114)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B114,\"yyyy\")&TEXT($B114,\"mm\")&\"-\"&$C114)","v":"202310-EXS003"},{"$f":"IF(ROW($A114)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A114)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A114)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A114)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45224},{"$f":"IF(ROW($A114)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A114)-ROW($A$6)-IF(ROW($A114)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A114)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS003"},{"$f":"IF(ISNA(VLOOKUP($C114,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C114,EmpAll,COLUMN(Emp!$B$4),0))","v":"Wilson PG"},{"$f":"IF(ISNA(VLOOKUP($C114,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C114,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C114,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C114,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC114),MONTH($AC114)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C114,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC114),MONTH($AC114),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F114<>\"Active\",0,IF(COUNTIFS(OverEmp,$C114,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMIFS(OverValue,OverEmp,$C114,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1)),IF(AND($AC114>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C114)>0),SUMIFS(EmpIncrease,EmpCode,$C114),SUMIFS(EmpSalary,EmpCode,$C114))))","v":15000},{"$f":"IF($F114<>\"Active\",0,IF(COUNTIFS(OverEmp,$C114,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMIFS(OverValue,OverEmp,$C114,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1)),0))","v":0},{"$f":"IF($F114<>\"Active\",0,IF(COUNTIFS(OverEmp,$C114,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMIFS(OverValue,OverEmp,$C114,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1)),IF(MONTH(B114)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C114),0)))","v":0},{"$f":"IF($F114<>\"Active\",0,IF(COUNTIFS(OverEmp,$C114,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMIFS(OverValue,OverEmp,$C114,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1)),0))","v":0},{"$f":"IF($F114<>\"Active\",0,IF(COUNTIFS(OverEmp,$C114,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMIFS(OverValue,OverEmp,$C114,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1)),0))","v":0},15000,{"$f":"IF(COUNTIFS(OverEmp,$C114,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMIFS(OverValue,OverEmp,$C114,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1)),(($BA114/12*$AA114)+(BB114*IF(1-$BC114=0,0,BD114/(1-$BC114))))-IF($F114=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC114,PayEmp,$C114)))","v":899.75},{"$f":"IF($F114=\"Terminated\",0,IF($AA114=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C114,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMIFS(OverValue,OverEmp,$C114,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA114)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA114,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114))))))","v":150},{"$f":"IF($F114=\"Terminated\",0,IF($AA114=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C114,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMIFS(OverValue,OverEmp,$C114,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA114)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA114,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114))))))","v":0},{"$f":"IF($F114=\"Terminated\",0,IF($AA114=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C114,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMIFS(OverValue,OverEmp,$C114,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA114)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA114,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114))))))","v":2000},{"$f":"IF($F114=\"Terminated\",0,IF($AA114=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C114,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMIFS(OverValue,OverEmp,$C114,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA114)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA114,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114))))))","v":0},3049.75,11950.25,{"$f":"IF($F114=\"Terminated\",0,IF($AA114=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C114,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMIFS(OverValue,OverEmp,$C114,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA114)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA114,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114)))))))","v":150},{"$f":"IF($F114=\"Terminated\",0,IF($AA114=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C114,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMIFS(OverValue,OverEmp,$C114,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA114)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA114,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114)))))))","v":150},{"$f":"IF($F114=\"Terminated\",0,IF($AA114=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C114,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMIFS(OverValue,OverEmp,$C114,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA114)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA114,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114)))))))","v":0},{"$f":"IF($F114=\"Terminated\",0,IF($AA114=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C114,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMIFS(OverValue,OverEmp,$C114,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA114)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA114,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC114,PayEmp,$C114)))))))","v":0},300,15300,3349.75,{"$f":"IF(OR($B114<=Setup!$E$12,$B114>=Setup!$D$12+1),0,IF($F114<>\"Active\",0,IF($AE114=\"Yes\",$AB114,((YEAR($AC114)*12)+MONTH($AC114))-((YEAR($AD114)*12)+MONTH($AD114)-1))))","v":8},{"$f":"IF(OR($B114<=Setup!$E$12,$B114>=Setup!$D$12+1),0,((YEAR($AC114)*12)+MONTH($AC114))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":8},45224,{"$f":"IF(ISNA(VLOOKUP($C114,EmpAll,COLUMN(Emp!$E$4),0)),$AC114,IF(VLOOKUP($C114,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C114,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C114,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C114,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C114,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A114=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C114,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMIFS(OverValue,OverEmp,$C114,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1)),IF(ISNA(VLOOKUP($C114,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG114,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C114,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C114,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C114,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C114,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C114,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},180000,{"$f":"-IF($F114=\"Terminated\",0,IF($AA114=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C114,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA114*12)+(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB114/3,0))*4)+(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB114/6,0))*2)+(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F114=\"Terminated\",0,IF($AA114=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C114,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA114*12)+(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB114/3,0))*4)+(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB114/6,0))*2)+(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F114=\"Terminated\",0,IF($AA114=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C114,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA114*12)+(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB114/3,0))*4)+(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB114/6,0))*2)+(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F114=\"Terminated\",0,IF($AA114=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C114,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA114*12)+(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB114/3,0))*4)+(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB114/6,0))*2)+(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},180000,180000,{"$f":"-IF($F114=\"Terminated\",0,IF($AA114=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C114,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA114*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F114=\"Terminated\",0,IF($AA114=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C114,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA114*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F114=\"Terminated\",0,IF($AA114=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C114,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA114*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F114=\"Terminated\",0,IF($AA114=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C114,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC114),MONTH($AC114)+1,1),OverEnd,\">=\"&DATE(YEAR($AC114),MONTH($AC114),1))>0,SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA114*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C114)*(PayDate<=$AC114)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA114*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C114,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C114,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,0,{"$f":"IF(ISNUMBER($AL114),($AR114*$AL114)-$AI114-$AK114,MAX(0,IF($AL114=\"B\",IF($AR114<Setup!$C$32,($AR114*Setup!$D$32)-$AI114-$AK114,(($AR114-VLOOKUP($AR114,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR114,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR114,TaxBracket2,1),0,1,1)-$AI114-$AK114),IF($AR114<Setup!$C$21,($AR114*Setup!$D$21)-$AI114-$AK114,(($AR114-VLOOKUP($AR114,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR114,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR114,TaxBracket1,1),0,1,1)-$AI114-$AK114))))","v":10797},{"$f":"IF(ISNUMBER($AL114),($AX114*$AL114)-$AI114-$AK114,MAX(0,IF($AL114=\"B\",IF($AX114<Setup!$C$32,($AX114*Setup!$D$32)-$AI114-$AK114,(($AX114-VLOOKUP($AX114,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX114,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX114,TaxBracket2,1),0,1,1)-$AI114-$AK114),IF($AX114<Setup!$C$21,($AX114*Setup!$D$21)-$AI114-$AK114,(($AX114-VLOOKUP($AX114,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX114,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX114,TaxBracket1,1),0,1,1)-$AI114-$AK114))))","v":10797},0,1,0,180000]
[{"$f":"IF(ROW($A115)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B115,\"yyyy\")&TEXT($B115,\"mm\")&\"-\"&$C115)","v":"202310-EXS004"},{"$f":"IF(ROW($A115)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A115)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A115)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A115)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45224},{"$f":"IF(ROW($A115)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A115)-ROW($A$6)-IF(ROW($A115)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A115)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS004"},{"$f":"IF(ISNA(VLOOKUP($C115,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C115,EmpAll,COLUMN(Emp!$B$4),0))","v":"Osborne S"},{"$f":"IF(ISNA(VLOOKUP($C115,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C115,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C115,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C115,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC115),MONTH($AC115)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C115,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC115),MONTH($AC115),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F115<>\"Active\",0,IF(COUNTIFS(OverEmp,$C115,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMIFS(OverValue,OverEmp,$C115,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1)),IF(AND($AC115>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C115)>0),SUMIFS(EmpIncrease,EmpCode,$C115),SUMIFS(EmpSalary,EmpCode,$C115))))","v":15000},{"$f":"IF($F115<>\"Active\",0,IF(COUNTIFS(OverEmp,$C115,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMIFS(OverValue,OverEmp,$C115,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1)),0))","v":0},{"$f":"IF($F115<>\"Active\",0,IF(COUNTIFS(OverEmp,$C115,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMIFS(OverValue,OverEmp,$C115,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1)),IF(MONTH(B115)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C115),0)))","v":0},{"$f":"IF($F115<>\"Active\",0,IF(COUNTIFS(OverEmp,$C115,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMIFS(OverValue,OverEmp,$C115,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1)),0))","v":0},{"$f":"IF($F115<>\"Active\",0,IF(COUNTIFS(OverEmp,$C115,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMIFS(OverValue,OverEmp,$C115,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1)),0))","v":0},15000,{"$f":"IF(COUNTIFS(OverEmp,$C115,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMIFS(OverValue,OverEmp,$C115,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1)),(($BA115/12*$AA115)+(BB115*IF(1-$BC115=0,0,BD115/(1-$BC115))))-IF($F115=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC115,PayEmp,$C115)))","v":899.75},{"$f":"IF($F115=\"Terminated\",0,IF($AA115=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C115,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMIFS(OverValue,OverEmp,$C115,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA115)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA115,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115))))))","v":150},{"$f":"IF($F115=\"Terminated\",0,IF($AA115=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C115,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMIFS(OverValue,OverEmp,$C115,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA115)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA115,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115))))))","v":0},{"$f":"IF($F115=\"Terminated\",0,IF($AA115=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C115,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMIFS(OverValue,OverEmp,$C115,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA115)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA115,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115))))))","v":500},{"$f":"IF($F115=\"Terminated\",0,IF($AA115=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C115,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMIFS(OverValue,OverEmp,$C115,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA115)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA115,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115))))))","v":0},1549.75,13450.25,{"$f":"IF($F115=\"Terminated\",0,IF($AA115=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C115,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMIFS(OverValue,OverEmp,$C115,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA115)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA115,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115)))))))","v":150},{"$f":"IF($F115=\"Terminated\",0,IF($AA115=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C115,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMIFS(OverValue,OverEmp,$C115,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA115)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA115,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115)))))))","v":150},{"$f":"IF($F115=\"Terminated\",0,IF($AA115=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C115,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMIFS(OverValue,OverEmp,$C115,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA115)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA115,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115)))))))","v":0},{"$f":"IF($F115=\"Terminated\",0,IF($AA115=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C115,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMIFS(OverValue,OverEmp,$C115,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA115)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA115,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC115,PayEmp,$C115)))))))","v":0},300,15300,1849.75,{"$f":"IF(OR($B115<=Setup!$E$12,$B115>=Setup!$D$12+1),0,IF($F115<>\"Active\",0,IF($AE115=\"Yes\",$AB115,((YEAR($AC115)*12)+MONTH($AC115))-((YEAR($AD115)*12)+MONTH($AD115)-1))))","v":8},{"$f":"IF(OR($B115<=Setup!$E$12,$B115>=Setup!$D$12+1),0,((YEAR($AC115)*12)+MONTH($AC115))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":8},45224,{"$f":"IF(ISNA(VLOOKUP($C115,EmpAll,COLUMN(Emp!$E$4),0)),$AC115,IF(VLOOKUP($C115,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C115,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C115,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C115,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C115,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A115=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C115,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMIFS(OverValue,OverEmp,$C115,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1)),IF(ISNA(VLOOKUP($C115,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG115,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C115,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C115,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C115,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C115,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C115,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},183600,{"$f":"-IF($F115=\"Terminated\",0,IF($AA115=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C115,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA115*12)+(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB115/3,0))*4)+(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB115/6,0))*2)+(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F115=\"Terminated\",0,IF($AA115=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C115,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA115*12)+(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB115/3,0))*4)+(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB115/6,0))*2)+(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F115=\"Terminated\",0,IF($AA115=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C115,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA115*12)+(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB115/3,0))*4)+(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB115/6,0))*2)+(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F115=\"Terminated\",0,IF($AA115=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C115,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA115*12)+(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB115/3,0))*4)+(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB115/6,0))*2)+(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},183600,180000,{"$f":"-IF($F115=\"Terminated\",0,IF($AA115=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C115,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA115*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F115=\"Terminated\",0,IF($AA115=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C115,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA115*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F115=\"Terminated\",0,IF($AA115=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C115,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA115*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F115=\"Terminated\",0,IF($AA115=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C115,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC115),MONTH($AC115)+1,1),OverEnd,\">=\"&DATE(YEAR($AC115),MONTH($AC115),1))>0,SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA115*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C115)*(PayDate<=$AC115)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA115*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C115,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C115,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,3600,{"$f":"IF(ISNUMBER($AL115),($AR115*$AL115)-$AI115-$AK115,MAX(0,IF($AL115=\"B\",IF($AR115<Setup!$C$32,($AR115*Setup!$D$32)-$AI115-$AK115,(($AR115-VLOOKUP($AR115,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR115,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR115,TaxBracket2,1),0,1,1)-$AI115-$AK115),IF($AR115<Setup!$C$21,($AR115*Setup!$D$21)-$AI115-$AK115,(($AR115-VLOOKUP($AR115,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR115,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR115,TaxBracket1,1),0,1,1)-$AI115-$AK115))))","v":11445},{"$f":"IF(ISNUMBER($AL115),($AX115*$AL115)-$AI115-$AK115,MAX(0,IF($AL115=\"B\",IF($AX115<Setup!$C$32,($AX115*Setup!$D$32)-$AI115-$AK115,(($AX115-VLOOKUP($AX115,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX115,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX115,TaxBracket2,1),0,1,1)-$AI115-$AK115),IF($AX115<Setup!$C$21,($AX115*Setup!$D$21)-$AI115-$AK115,(($AX115-VLOOKUP($AX115,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX115,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX115,TaxBracket1,1),0,1,1)-$AI115-$AK115))))","v":10797},648,0.98039215686274506,1.9607843137254902E-2,183600]
[{"$f":"IF(ROW($A116)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B116,\"yyyy\")&TEXT($B116,\"mm\")&\"-\"&$C116)","v":"202310-EXS005"},{"$f":"IF(ROW($A116)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A116)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A116)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A116)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45224},{"$f":"IF(ROW($A116)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A116)-ROW($A$6)-IF(ROW($A116)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A116)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS005"},{"$f":"IF(ISNA(VLOOKUP($C116,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C116,EmpAll,COLUMN(Emp!$B$4),0))","v":"Miller R"},{"$f":"IF(ISNA(VLOOKUP($C116,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C116,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C116,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C116,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC116),MONTH($AC116)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C116,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC116),MONTH($AC116),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F116<>\"Active\",0,IF(COUNTIFS(OverEmp,$C116,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMIFS(OverValue,OverEmp,$C116,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1)),IF(AND($AC116>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C116)>0),SUMIFS(EmpIncrease,EmpCode,$C116),SUMIFS(EmpSalary,EmpCode,$C116))))","v":10000},{"$f":"IF($F116<>\"Active\",0,IF(COUNTIFS(OverEmp,$C116,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMIFS(OverValue,OverEmp,$C116,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1)),0))","v":0},{"$f":"IF($F116<>\"Active\",0,IF(COUNTIFS(OverEmp,$C116,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMIFS(OverValue,OverEmp,$C116,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1)),IF(MONTH(B116)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C116),0)))","v":0},{"$f":"IF($F116<>\"Active\",0,IF(COUNTIFS(OverEmp,$C116,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMIFS(OverValue,OverEmp,$C116,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1)),0))","v":0},{"$f":"IF($F116<>\"Active\",0,IF(COUNTIFS(OverEmp,$C116,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMIFS(OverValue,OverEmp,$C116,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C116,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMIFS(OverValue,OverEmp,$C116,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1)),(($BA116/12*$AA116)+(BB116*IF(1-$BC116=0,0,BD116/(1-$BC116))))-IF($F116=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC116,PayEmp,$C116)))","v":0},{"$f":"IF($F116=\"Terminated\",0,IF($AA116=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C116,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMIFS(OverValue,OverEmp,$C116,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA116)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA116,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116))))))","v":100},{"$f":"IF($F116=\"Terminated\",0,IF($AA116=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C116,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMIFS(OverValue,OverEmp,$C116,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA116)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA116,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116))))))","v":0},{"$f":"IF($F116=\"Terminated\",0,IF($AA116=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C116,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMIFS(OverValue,OverEmp,$C116,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA116)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA116,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116))))))","v":0},{"$f":"IF($F116=\"Terminated\",0,IF($AA116=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C116,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMIFS(OverValue,OverEmp,$C116,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA116)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA116,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116))))))","v":0},100,9900,{"$f":"IF($F116=\"Terminated\",0,IF($AA116=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C116,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMIFS(OverValue,OverEmp,$C116,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA116)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA116,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116)))))))","v":100},{"$f":"IF($F116=\"Terminated\",0,IF($AA116=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C116,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMIFS(OverValue,OverEmp,$C116,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA116)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA116,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116)))))))","v":100},{"$f":"IF($F116=\"Terminated\",0,IF($AA116=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C116,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMIFS(OverValue,OverEmp,$C116,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA116)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA116,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116)))))))","v":0},{"$f":"IF($F116=\"Terminated\",0,IF($AA116=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C116,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMIFS(OverValue,OverEmp,$C116,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA116)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA116,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC116,PayEmp,$C116)))))))","v":0},200,10200,300,{"$f":"IF(OR($B116<=Setup!$E$12,$B116>=Setup!$D$12+1),0,IF($F116<>\"Active\",0,IF($AE116=\"Yes\",$AB116,((YEAR($AC116)*12)+MONTH($AC116))-((YEAR($AD116)*12)+MONTH($AD116)-1))))","v":8},{"$f":"IF(OR($B116<=Setup!$E$12,$B116>=Setup!$D$12+1),0,((YEAR($AC116)*12)+MONTH($AC116))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":8},45224,{"$f":"IF(ISNA(VLOOKUP($C116,EmpAll,COLUMN(Emp!$E$4),0)),$AC116,IF(VLOOKUP($C116,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C116,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C116,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C116,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C116,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A116=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C116,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMIFS(OverValue,OverEmp,$C116,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1)),IF(ISNA(VLOOKUP($C116,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG116,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C116,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C116,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C116,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C116,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C116,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},120000,{"$f":"-IF($F116=\"Terminated\",0,IF($AA116=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C116,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA116*12)+(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB116/3,0))*4)+(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB116/6,0))*2)+(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F116=\"Terminated\",0,IF($AA116=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C116,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA116*12)+(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB116/3,0))*4)+(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB116/6,0))*2)+(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F116=\"Terminated\",0,IF($AA116=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C116,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA116*12)+(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB116/3,0))*4)+(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB116/6,0))*2)+(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F116=\"Terminated\",0,IF($AA116=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C116,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA116*12)+(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB116/3,0))*4)+(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB116/6,0))*2)+(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},120000,120000,{"$f":"-IF($F116=\"Terminated\",0,IF($AA116=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C116,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA116*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F116=\"Terminated\",0,IF($AA116=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C116,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA116*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F116=\"Terminated\",0,IF($AA116=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C116,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA116*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F116=\"Terminated\",0,IF($AA116=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C116,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC116),MONTH($AC116)+1,1),OverEnd,\">=\"&DATE(YEAR($AC116),MONTH($AC116),1))>0,SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA116*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C116)*(PayDate<=$AC116)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA116*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C116,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C116,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,0,{"$f":"IF(ISNUMBER($AL116),($AR116*$AL116)-$AI116-$AK116,MAX(0,IF($AL116=\"B\",IF($AR116<Setup!$C$32,($AR116*Setup!$D$32)-$AI116-$AK116,(($AR116-VLOOKUP($AR116,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR116,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR116,TaxBracket2,1),0,1,1)-$AI116-$AK116),IF($AR116<Setup!$C$21,($AR116*Setup!$D$21)-$AI116-$AK116,(($AR116-VLOOKUP($AR116,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR116,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR116,TaxBracket1,1),0,1,1)-$AI116-$AK116))))","v":0},{"$f":"IF(ISNUMBER($AL116),($AX116*$AL116)-$AI116-$AK116,MAX(0,IF($AL116=\"B\",IF($AX116<Setup!$C$32,($AX116*Setup!$D$32)-$AI116-$AK116,(($AX116-VLOOKUP($AX116,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX116,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX116,TaxBracket2,1),0,1,1)-$AI116-$AK116),IF($AX116<Setup!$C$21,($AX116*Setup!$D$21)-$AI116-$AK116,(($AX116-VLOOKUP($AX116,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX116,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX116,TaxBracket1,1),0,1,1)-$AI116-$AK116))))","v":0},0,1,0,120000]
[{"$f":"IF(ROW($A117)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B117,\"yyyy\")&TEXT($B117,\"mm\")&\"-\"&$C117)","v":"202310-EXS006"},{"$f":"IF(ROW($A117)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A117)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A117)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A117)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45224},{"$f":"IF(ROW($A117)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A117)-ROW($A$6)-IF(ROW($A117)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A117)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS006"},{"$f":"IF(ISNA(VLOOKUP($C117,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C117,EmpAll,COLUMN(Emp!$B$4),0))","v":"Andrews MS"},{"$f":"IF(ISNA(VLOOKUP($C117,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C117,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C117,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C117,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC117),MONTH($AC117)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C117,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC117),MONTH($AC117),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F117<>\"Active\",0,IF(COUNTIFS(OverEmp,$C117,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMIFS(OverValue,OverEmp,$C117,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1)),IF(AND($AC117>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C117)>0),SUMIFS(EmpIncrease,EmpCode,$C117),SUMIFS(EmpSalary,EmpCode,$C117))))","v":10000},{"$f":"IF($F117<>\"Active\",0,IF(COUNTIFS(OverEmp,$C117,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMIFS(OverValue,OverEmp,$C117,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1)),0))","v":0},{"$f":"IF($F117<>\"Active\",0,IF(COUNTIFS(OverEmp,$C117,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMIFS(OverValue,OverEmp,$C117,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1)),IF(MONTH(B117)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C117),0)))","v":0},{"$f":"IF($F117<>\"Active\",0,IF(COUNTIFS(OverEmp,$C117,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMIFS(OverValue,OverEmp,$C117,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1)),0))","v":0},{"$f":"IF($F117<>\"Active\",0,IF(COUNTIFS(OverEmp,$C117,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMIFS(OverValue,OverEmp,$C117,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C117,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMIFS(OverValue,OverEmp,$C117,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1)),(($BA117/12*$AA117)+(BB117*IF(1-$BC117=0,0,BD117/(1-$BC117))))-IF($F117=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC117,PayEmp,$C117)))","v":0},{"$f":"IF($F117=\"Terminated\",0,IF($AA117=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C117,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMIFS(OverValue,OverEmp,$C117,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA117)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA117,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117))))))","v":100},{"$f":"IF($F117=\"Terminated\",0,IF($AA117=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C117,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMIFS(OverValue,OverEmp,$C117,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA117)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA117,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117))))))","v":0},{"$f":"IF($F117=\"Terminated\",0,IF($AA117=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C117,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMIFS(OverValue,OverEmp,$C117,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA117)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA117,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117))))))","v":0},{"$f":"IF($F117=\"Terminated\",0,IF($AA117=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C117,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMIFS(OverValue,OverEmp,$C117,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA117)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA117,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117))))))","v":0},100,9900,{"$f":"IF($F117=\"Terminated\",0,IF($AA117=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C117,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMIFS(OverValue,OverEmp,$C117,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA117)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA117,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117)))))))","v":100},{"$f":"IF($F117=\"Terminated\",0,IF($AA117=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C117,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMIFS(OverValue,OverEmp,$C117,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA117)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA117,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117)))))))","v":100},{"$f":"IF($F117=\"Terminated\",0,IF($AA117=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C117,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMIFS(OverValue,OverEmp,$C117,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA117)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA117,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117)))))))","v":0},{"$f":"IF($F117=\"Terminated\",0,IF($AA117=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C117,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMIFS(OverValue,OverEmp,$C117,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA117)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA117,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC117,PayEmp,$C117)))))))","v":0},200,10200,300,{"$f":"IF(OR($B117<=Setup!$E$12,$B117>=Setup!$D$12+1),0,IF($F117<>\"Active\",0,IF($AE117=\"Yes\",$AB117,((YEAR($AC117)*12)+MONTH($AC117))-((YEAR($AD117)*12)+MONTH($AD117)-1))))","v":8},{"$f":"IF(OR($B117<=Setup!$E$12,$B117>=Setup!$D$12+1),0,((YEAR($AC117)*12)+MONTH($AC117))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":8},45224,{"$f":"IF(ISNA(VLOOKUP($C117,EmpAll,COLUMN(Emp!$E$4),0)),$AC117,IF(VLOOKUP($C117,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C117,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C117,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C117,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C117,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A117=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C117,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMIFS(OverValue,OverEmp,$C117,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1)),IF(ISNA(VLOOKUP($C117,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG117,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C117,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C117,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C117,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C117,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C117,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},120000,{"$f":"-IF($F117=\"Terminated\",0,IF($AA117=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C117,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA117*12)+(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB117/3,0))*4)+(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB117/6,0))*2)+(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F117=\"Terminated\",0,IF($AA117=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C117,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA117*12)+(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB117/3,0))*4)+(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB117/6,0))*2)+(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F117=\"Terminated\",0,IF($AA117=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C117,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA117*12)+(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB117/3,0))*4)+(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB117/6,0))*2)+(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F117=\"Terminated\",0,IF($AA117=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C117,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA117*12)+(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB117/3,0))*4)+(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB117/6,0))*2)+(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},120000,120000,{"$f":"-IF($F117=\"Terminated\",0,IF($AA117=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C117,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA117*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F117=\"Terminated\",0,IF($AA117=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C117,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA117*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F117=\"Terminated\",0,IF($AA117=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C117,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA117*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F117=\"Terminated\",0,IF($AA117=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C117,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC117),MONTH($AC117)+1,1),OverEnd,\">=\"&DATE(YEAR($AC117),MONTH($AC117),1))>0,SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA117*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C117)*(PayDate<=$AC117)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA117*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C117,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C117,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,0,{"$f":"IF(ISNUMBER($AL117),($AR117*$AL117)-$AI117-$AK117,MAX(0,IF($AL117=\"B\",IF($AR117<Setup!$C$32,($AR117*Setup!$D$32)-$AI117-$AK117,(($AR117-VLOOKUP($AR117,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR117,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR117,TaxBracket2,1),0,1,1)-$AI117-$AK117),IF($AR117<Setup!$C$21,($AR117*Setup!$D$21)-$AI117-$AK117,(($AR117-VLOOKUP($AR117,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR117,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR117,TaxBracket1,1),0,1,1)-$AI117-$AK117))))","v":0},{"$f":"IF(ISNUMBER($AL117),($AX117*$AL117)-$AI117-$AK117,MAX(0,IF($AL117=\"B\",IF($AX117<Setup!$C$32,($AX117*Setup!$D$32)-$AI117-$AK117,(($AX117-VLOOKUP($AX117,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX117,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX117,TaxBracket2,1),0,1,1)-$AI117-$AK117),IF($AX117<Setup!$C$21,($AX117*Setup!$D$21)-$AI117-$AK117,(($AX117-VLOOKUP($AX117,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX117,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX117,TaxBracket1,1),0,1,1)-$AI117-$AK117))))","v":0},0,1,0,120000]
[{"$f":"IF(ROW($A118)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B118,\"yyyy\")&TEXT($B118,\"mm\")&\"-\"&$C118)","v":"202310-EXS007"},{"$f":"IF(ROW($A118)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A118)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A118)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A118)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45224},{"$f":"IF(ROW($A118)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A118)-ROW($A$6)-IF(ROW($A118)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A118)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS007"},{"$f":"IF(ISNA(VLOOKUP($C118,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C118,EmpAll,COLUMN(Emp!$B$4),0))","v":"Phillips KE"},{"$f":"IF(ISNA(VLOOKUP($C118,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C118,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C118,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C118,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC118),MONTH($AC118)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C118,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC118),MONTH($AC118),0)),\"Terminated\",\"Active\")))","v":"Terminated"},{"$f":"IF($F118<>\"Active\",0,IF(COUNTIFS(OverEmp,$C118,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMIFS(OverValue,OverEmp,$C118,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1)),IF(AND($AC118>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C118)>0),SUMIFS(EmpIncrease,EmpCode,$C118),SUMIFS(EmpSalary,EmpCode,$C118))))","v":0},{"$f":"IF($F118<>\"Active\",0,IF(COUNTIFS(OverEmp,$C118,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMIFS(OverValue,OverEmp,$C118,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1)),0))","v":0},{"$f":"IF($F118<>\"Active\",0,IF(COUNTIFS(OverEmp,$C118,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMIFS(OverValue,OverEmp,$C118,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1)),IF(MONTH(B118)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C118),0)))","v":0},{"$f":"IF($F118<>\"Active\",0,IF(COUNTIFS(OverEmp,$C118,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMIFS(OverValue,OverEmp,$C118,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1)),0))","v":0},{"$f":"IF($F118<>\"Active\",0,IF(COUNTIFS(OverEmp,$C118,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMIFS(OverValue,OverEmp,$C118,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C118,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMIFS(OverValue,OverEmp,$C118,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1)),(($BA118/12*$AA118)+(BB118*IF(1-$BC118=0,0,BD118/(1-$BC118))))-IF($F118=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC118,PayEmp,$C118)))","v":0},{"$f":"IF($F118=\"Terminated\",0,IF($AA118=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C118,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMIFS(OverValue,OverEmp,$C118,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA118)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA118,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118))))))","v":0},{"$f":"IF($F118=\"Terminated\",0,IF($AA118=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C118,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMIFS(OverValue,OverEmp,$C118,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA118)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA118,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118))))))","v":0},{"$f":"IF($F118=\"Terminated\",0,IF($AA118=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C118,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMIFS(OverValue,OverEmp,$C118,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA118)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA118,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118))))))","v":0},{"$f":"IF($F118=\"Terminated\",0,IF($AA118=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C118,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMIFS(OverValue,OverEmp,$C118,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA118)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA118,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118))))))","v":0},0,0,{"$f":"IF($F118=\"Terminated\",0,IF($AA118=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C118,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMIFS(OverValue,OverEmp,$C118,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA118)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA118,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118)))))))","v":0},{"$f":"IF($F118=\"Terminated\",0,IF($AA118=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C118,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMIFS(OverValue,OverEmp,$C118,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA118)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA118,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118)))))))","v":0},{"$f":"IF($F118=\"Terminated\",0,IF($AA118=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C118,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMIFS(OverValue,OverEmp,$C118,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA118)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA118,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118)))))))","v":0},{"$f":"IF($F118=\"Terminated\",0,IF($AA118=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C118,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMIFS(OverValue,OverEmp,$C118,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA118)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA118,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC118,PayEmp,$C118)))))))","v":0},0,0,0,{"$f":"IF(OR($B118<=Setup!$E$12,$B118>=Setup!$D$12+1),0,IF($F118<>\"Active\",0,IF($AE118=\"Yes\",$AB118,((YEAR($AC118)*12)+MONTH($AC118))-((YEAR($AD118)*12)+MONTH($AD118)-1))))","v":0},{"$f":"IF(OR($B118<=Setup!$E$12,$B118>=Setup!$D$12+1),0,((YEAR($AC118)*12)+MONTH($AC118))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":8},45224,{"$f":"IF(ISNA(VLOOKUP($C118,EmpAll,COLUMN(Emp!$E$4),0)),$AC118,IF(VLOOKUP($C118,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C118,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C118,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C118,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C118,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A118=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C118,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMIFS(OverValue,OverEmp,$C118,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1)),IF(ISNA(VLOOKUP($C118,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG118,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C118,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C118,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C118,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C118,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C118,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F118=\"Terminated\",0,IF($AA118=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C118,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA118*12)+(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB118/3,0))*4)+(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB118/6,0))*2)+(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F118=\"Terminated\",0,IF($AA118=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C118,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA118*12)+(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB118/3,0))*4)+(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB118/6,0))*2)+(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F118=\"Terminated\",0,IF($AA118=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C118,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA118*12)+(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB118/3,0))*4)+(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB118/6,0))*2)+(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F118=\"Terminated\",0,IF($AA118=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C118,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA118*12)+(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB118/3,0))*4)+(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB118/6,0))*2)+(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F118=\"Terminated\",0,IF($AA118=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C118,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA118*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F118=\"Terminated\",0,IF($AA118=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C118,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA118*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F118=\"Terminated\",0,IF($AA118=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C118,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA118*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F118=\"Terminated\",0,IF($AA118=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C118,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC118),MONTH($AC118)+1,1),OverEnd,\">=\"&DATE(YEAR($AC118),MONTH($AC118),1))>0,SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA118*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C118)*(PayDate<=$AC118)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA118*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C118,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C118,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL118),($AR118*$AL118)-$AI118-$AK118,MAX(0,IF($AL118=\"B\",IF($AR118<Setup!$C$32,($AR118*Setup!$D$32)-$AI118-$AK118,(($AR118-VLOOKUP($AR118,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR118,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR118,TaxBracket2,1),0,1,1)-$AI118-$AK118),IF($AR118<Setup!$C$21,($AR118*Setup!$D$21)-$AI118-$AK118,(($AR118-VLOOKUP($AR118,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR118,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR118,TaxBracket1,1),0,1,1)-$AI118-$AK118))))","v":0},{"$f":"IF(ISNUMBER($AL118),($AX118*$AL118)-$AI118-$AK118,MAX(0,IF($AL118=\"B\",IF($AX118<Setup!$C$32,($AX118*Setup!$D$32)-$AI118-$AK118,(($AX118-VLOOKUP($AX118,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX118,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX118,TaxBracket2,1),0,1,1)-$AI118-$AK118),IF($AX118<Setup!$C$21,($AX118*Setup!$D$21)-$AI118-$AK118,(($AX118-VLOOKUP($AX118,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX118,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX118,TaxBracket1,1),0,1,1)-$AI118-$AK118))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A119)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B119,\"yyyy\")&TEXT($B119,\"mm\")&\"-\"&$C119)","v":"202310-EXS008"},{"$f":"IF(ROW($A119)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A119)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A119)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A119)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45224},{"$f":"IF(ROW($A119)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A119)-ROW($A$6)-IF(ROW($A119)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A119)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS008"},{"$f":"IF(ISNA(VLOOKUP($C119,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C119,EmpAll,COLUMN(Emp!$B$4),0))","v":"Matthews B"},{"$f":"IF(ISNA(VLOOKUP($C119,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C119,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C119,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C119,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC119),MONTH($AC119)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C119,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC119),MONTH($AC119),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F119<>\"Active\",0,IF(COUNTIFS(OverEmp,$C119,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMIFS(OverValue,OverEmp,$C119,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1)),IF(AND($AC119>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C119)>0),SUMIFS(EmpIncrease,EmpCode,$C119),SUMIFS(EmpSalary,EmpCode,$C119))))","v":9000},{"$f":"IF($F119<>\"Active\",0,IF(COUNTIFS(OverEmp,$C119,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMIFS(OverValue,OverEmp,$C119,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1)),0))","v":0},{"$f":"IF($F119<>\"Active\",0,IF(COUNTIFS(OverEmp,$C119,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMIFS(OverValue,OverEmp,$C119,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1)),IF(MONTH(B119)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C119),0)))","v":0},{"$f":"IF($F119<>\"Active\",0,IF(COUNTIFS(OverEmp,$C119,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMIFS(OverValue,OverEmp,$C119,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1)),0))","v":0},{"$f":"IF($F119<>\"Active\",0,IF(COUNTIFS(OverEmp,$C119,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMIFS(OverValue,OverEmp,$C119,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C119,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMIFS(OverValue,OverEmp,$C119,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1)),(($BA119/12*$AA119)+(BB119*IF(1-$BC119=0,0,BD119/(1-$BC119))))-IF($F119=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC119,PayEmp,$C119)))","v":183.75},{"$f":"IF($F119=\"Terminated\",0,IF($AA119=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C119,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMIFS(OverValue,OverEmp,$C119,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA119)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA119,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119))))))","v":90},{"$f":"IF($F119=\"Terminated\",0,IF($AA119=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C119,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMIFS(OverValue,OverEmp,$C119,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA119)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA119,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119))))))","v":0},{"$f":"IF($F119=\"Terminated\",0,IF($AA119=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C119,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMIFS(OverValue,OverEmp,$C119,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA119)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA119,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119))))))","v":0},{"$f":"IF($F119=\"Terminated\",0,IF($AA119=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C119,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMIFS(OverValue,OverEmp,$C119,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA119)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA119,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119))))))","v":0},273.75,8726.25,{"$f":"IF($F119=\"Terminated\",0,IF($AA119=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C119,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMIFS(OverValue,OverEmp,$C119,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA119)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA119,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119)))))))","v":90},{"$f":"IF($F119=\"Terminated\",0,IF($AA119=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C119,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMIFS(OverValue,OverEmp,$C119,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA119)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA119,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119)))))))","v":90},{"$f":"IF($F119=\"Terminated\",0,IF($AA119=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C119,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMIFS(OverValue,OverEmp,$C119,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA119)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA119,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119)))))))","v":0},{"$f":"IF($F119=\"Terminated\",0,IF($AA119=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C119,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMIFS(OverValue,OverEmp,$C119,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA119)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA119,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC119,PayEmp,$C119)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B119<=Setup!$E$12,$B119>=Setup!$D$12+1),0,IF($F119<>\"Active\",0,IF($AE119=\"Yes\",$AB119,((YEAR($AC119)*12)+MONTH($AC119))-((YEAR($AD119)*12)+MONTH($AD119)-1))))","v":8},{"$f":"IF(OR($B119<=Setup!$E$12,$B119>=Setup!$D$12+1),0,((YEAR($AC119)*12)+MONTH($AC119))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":8},45224,{"$f":"IF(ISNA(VLOOKUP($C119,EmpAll,COLUMN(Emp!$E$4),0)),$AC119,IF(VLOOKUP($C119,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C119,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C119,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C119,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C119,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A119=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C119,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMIFS(OverValue,OverEmp,$C119,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1)),IF(ISNA(VLOOKUP($C119,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG119,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C119,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C119,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C119,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C119,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C119,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F119=\"Terminated\",0,IF($AA119=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C119,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA119*12)+(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB119/3,0))*4)+(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB119/6,0))*2)+(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F119=\"Terminated\",0,IF($AA119=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C119,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA119*12)+(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB119/3,0))*4)+(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB119/6,0))*2)+(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F119=\"Terminated\",0,IF($AA119=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C119,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA119*12)+(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB119/3,0))*4)+(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB119/6,0))*2)+(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F119=\"Terminated\",0,IF($AA119=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C119,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA119*12)+(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB119/3,0))*4)+(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB119/6,0))*2)+(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F119=\"Terminated\",0,IF($AA119=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C119,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA119*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F119=\"Terminated\",0,IF($AA119=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C119,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA119*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F119=\"Terminated\",0,IF($AA119=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C119,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA119*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F119=\"Terminated\",0,IF($AA119=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C119,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC119),MONTH($AC119)+1,1),OverEnd,\">=\"&DATE(YEAR($AC119),MONTH($AC119),1))>0,SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA119*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C119)*(PayDate<=$AC119)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA119*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C119,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C119,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL119),($AR119*$AL119)-$AI119-$AK119,MAX(0,IF($AL119=\"B\",IF($AR119<Setup!$C$32,($AR119*Setup!$D$32)-$AI119-$AK119,(($AR119-VLOOKUP($AR119,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR119,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR119,TaxBracket2,1),0,1,1)-$AI119-$AK119),IF($AR119<Setup!$C$21,($AR119*Setup!$D$21)-$AI119-$AK119,(($AR119-VLOOKUP($AR119,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR119,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR119,TaxBracket1,1),0,1,1)-$AI119-$AK119))))","v":2205},{"$f":"IF(ISNUMBER($AL119),($AX119*$AL119)-$AI119-$AK119,MAX(0,IF($AL119=\"B\",IF($AX119<Setup!$C$32,($AX119*Setup!$D$32)-$AI119-$AK119,(($AX119-VLOOKUP($AX119,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX119,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX119,TaxBracket2,1),0,1,1)-$AI119-$AK119),IF($AX119<Setup!$C$21,($AX119*Setup!$D$21)-$AI119-$AK119,(($AX119-VLOOKUP($AX119,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX119,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX119,TaxBracket1,1),0,1,1)-$AI119-$AK119))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A120)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B120,\"yyyy\")&TEXT($B120,\"mm\")&\"-\"&$C120)","v":"202310-EXS009"},{"$f":"IF(ROW($A120)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A120)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A120)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A120)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45224},{"$f":"IF(ROW($A120)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A120)-ROW($A$6)-IF(ROW($A120)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A120)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS009"},{"$f":"IF(ISNA(VLOOKUP($C120,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C120,EmpAll,COLUMN(Emp!$B$4),0))","v":"Brown JT"},{"$f":"IF(ISNA(VLOOKUP($C120,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C120,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C120,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C120,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC120),MONTH($AC120)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C120,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC120),MONTH($AC120),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F120<>\"Active\",0,IF(COUNTIFS(OverEmp,$C120,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMIFS(OverValue,OverEmp,$C120,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1)),IF(AND($AC120>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C120)>0),SUMIFS(EmpIncrease,EmpCode,$C120),SUMIFS(EmpSalary,EmpCode,$C120))))","v":9000},{"$f":"IF($F120<>\"Active\",0,IF(COUNTIFS(OverEmp,$C120,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMIFS(OverValue,OverEmp,$C120,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1)),0))","v":0},{"$f":"IF($F120<>\"Active\",0,IF(COUNTIFS(OverEmp,$C120,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMIFS(OverValue,OverEmp,$C120,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1)),IF(MONTH(B120)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C120),0)))","v":0},{"$f":"IF($F120<>\"Active\",0,IF(COUNTIFS(OverEmp,$C120,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMIFS(OverValue,OverEmp,$C120,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1)),0))","v":0},{"$f":"IF($F120<>\"Active\",0,IF(COUNTIFS(OverEmp,$C120,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMIFS(OverValue,OverEmp,$C120,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C120,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMIFS(OverValue,OverEmp,$C120,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1)),(($BA120/12*$AA120)+(BB120*IF(1-$BC120=0,0,BD120/(1-$BC120))))-IF($F120=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC120,PayEmp,$C120)))","v":183.75},{"$f":"IF($F120=\"Terminated\",0,IF($AA120=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C120,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMIFS(OverValue,OverEmp,$C120,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA120)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA120,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120))))))","v":90},{"$f":"IF($F120=\"Terminated\",0,IF($AA120=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C120,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMIFS(OverValue,OverEmp,$C120,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA120)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA120,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120))))))","v":0},{"$f":"IF($F120=\"Terminated\",0,IF($AA120=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C120,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMIFS(OverValue,OverEmp,$C120,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA120)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA120,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120))))))","v":0},{"$f":"IF($F120=\"Terminated\",0,IF($AA120=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C120,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMIFS(OverValue,OverEmp,$C120,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA120)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA120,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120))))))","v":0},273.75,8726.25,{"$f":"IF($F120=\"Terminated\",0,IF($AA120=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C120,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMIFS(OverValue,OverEmp,$C120,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA120)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA120,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120)))))))","v":90},{"$f":"IF($F120=\"Terminated\",0,IF($AA120=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C120,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMIFS(OverValue,OverEmp,$C120,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA120)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA120,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120)))))))","v":90},{"$f":"IF($F120=\"Terminated\",0,IF($AA120=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C120,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMIFS(OverValue,OverEmp,$C120,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA120)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA120,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120)))))))","v":0},{"$f":"IF($F120=\"Terminated\",0,IF($AA120=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C120,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMIFS(OverValue,OverEmp,$C120,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA120)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA120,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC120,PayEmp,$C120)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B120<=Setup!$E$12,$B120>=Setup!$D$12+1),0,IF($F120<>\"Active\",0,IF($AE120=\"Yes\",$AB120,((YEAR($AC120)*12)+MONTH($AC120))-((YEAR($AD120)*12)+MONTH($AD120)-1))))","v":8},{"$f":"IF(OR($B120<=Setup!$E$12,$B120>=Setup!$D$12+1),0,((YEAR($AC120)*12)+MONTH($AC120))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":8},45224,{"$f":"IF(ISNA(VLOOKUP($C120,EmpAll,COLUMN(Emp!$E$4),0)),$AC120,IF(VLOOKUP($C120,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C120,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C120,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C120,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C120,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A120=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C120,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMIFS(OverValue,OverEmp,$C120,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1)),IF(ISNA(VLOOKUP($C120,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG120,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C120,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C120,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C120,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C120,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C120,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F120=\"Terminated\",0,IF($AA120=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C120,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA120*12)+(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB120/3,0))*4)+(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB120/6,0))*2)+(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F120=\"Terminated\",0,IF($AA120=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C120,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA120*12)+(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB120/3,0))*4)+(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB120/6,0))*2)+(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F120=\"Terminated\",0,IF($AA120=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C120,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA120*12)+(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB120/3,0))*4)+(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB120/6,0))*2)+(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F120=\"Terminated\",0,IF($AA120=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C120,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA120*12)+(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB120/3,0))*4)+(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB120/6,0))*2)+(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F120=\"Terminated\",0,IF($AA120=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C120,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA120*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F120=\"Terminated\",0,IF($AA120=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C120,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA120*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F120=\"Terminated\",0,IF($AA120=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C120,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA120*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F120=\"Terminated\",0,IF($AA120=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C120,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC120),MONTH($AC120)+1,1),OverEnd,\">=\"&DATE(YEAR($AC120),MONTH($AC120),1))>0,SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA120*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C120)*(PayDate<=$AC120)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA120*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C120,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C120,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL120),($AR120*$AL120)-$AI120-$AK120,MAX(0,IF($AL120=\"B\",IF($AR120<Setup!$C$32,($AR120*Setup!$D$32)-$AI120-$AK120,(($AR120-VLOOKUP($AR120,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR120,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR120,TaxBracket2,1),0,1,1)-$AI120-$AK120),IF($AR120<Setup!$C$21,($AR120*Setup!$D$21)-$AI120-$AK120,(($AR120-VLOOKUP($AR120,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR120,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR120,TaxBracket1,1),0,1,1)-$AI120-$AK120))))","v":2205},{"$f":"IF(ISNUMBER($AL120),($AX120*$AL120)-$AI120-$AK120,MAX(0,IF($AL120=\"B\",IF($AX120<Setup!$C$32,($AX120*Setup!$D$32)-$AI120-$AK120,(($AX120-VLOOKUP($AX120,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX120,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX120,TaxBracket2,1),0,1,1)-$AI120-$AK120),IF($AX120<Setup!$C$21,($AX120*Setup!$D$21)-$AI120-$AK120,(($AX120-VLOOKUP($AX120,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX120,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX120,TaxBracket1,1),0,1,1)-$AI120-$AK120))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A121)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B121,\"yyyy\")&TEXT($B121,\"mm\")&\"-\"&$C121)","v":"202310-EXS010"},{"$f":"IF(ROW($A121)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A121)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A121)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A121)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45224},{"$f":"IF(ROW($A121)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A121)-ROW($A$6)-IF(ROW($A121)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A121)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS010"},{"$f":"IF(ISNA(VLOOKUP($C121,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C121,EmpAll,COLUMN(Emp!$B$4),0))","v":"Lewis I"},{"$f":"IF(ISNA(VLOOKUP($C121,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C121,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C121,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C121,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC121),MONTH($AC121)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C121,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC121),MONTH($AC121),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F121<>\"Active\",0,IF(COUNTIFS(OverEmp,$C121,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMIFS(OverValue,OverEmp,$C121,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1)),IF(AND($AC121>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C121)>0),SUMIFS(EmpIncrease,EmpCode,$C121),SUMIFS(EmpSalary,EmpCode,$C121))))","v":9000},{"$f":"IF($F121<>\"Active\",0,IF(COUNTIFS(OverEmp,$C121,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMIFS(OverValue,OverEmp,$C121,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1)),0))","v":0},{"$f":"IF($F121<>\"Active\",0,IF(COUNTIFS(OverEmp,$C121,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMIFS(OverValue,OverEmp,$C121,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1)),IF(MONTH(B121)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C121),0)))","v":0},{"$f":"IF($F121<>\"Active\",0,IF(COUNTIFS(OverEmp,$C121,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMIFS(OverValue,OverEmp,$C121,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1)),0))","v":0},{"$f":"IF($F121<>\"Active\",0,IF(COUNTIFS(OverEmp,$C121,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMIFS(OverValue,OverEmp,$C121,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C121,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMIFS(OverValue,OverEmp,$C121,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1)),(($BA121/12*$AA121)+(BB121*IF(1-$BC121=0,0,BD121/(1-$BC121))))-IF($F121=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC121,PayEmp,$C121)))","v":183.75},{"$f":"IF($F121=\"Terminated\",0,IF($AA121=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C121,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMIFS(OverValue,OverEmp,$C121,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA121)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA121,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121))))))","v":90},{"$f":"IF($F121=\"Terminated\",0,IF($AA121=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C121,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMIFS(OverValue,OverEmp,$C121,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA121)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA121,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121))))))","v":0},{"$f":"IF($F121=\"Terminated\",0,IF($AA121=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C121,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMIFS(OverValue,OverEmp,$C121,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA121)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA121,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121))))))","v":0},{"$f":"IF($F121=\"Terminated\",0,IF($AA121=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C121,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMIFS(OverValue,OverEmp,$C121,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA121)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA121,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121))))))","v":0},273.75,8726.25,{"$f":"IF($F121=\"Terminated\",0,IF($AA121=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C121,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMIFS(OverValue,OverEmp,$C121,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA121)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA121,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121)))))))","v":90},{"$f":"IF($F121=\"Terminated\",0,IF($AA121=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C121,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMIFS(OverValue,OverEmp,$C121,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA121)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA121,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121)))))))","v":90},{"$f":"IF($F121=\"Terminated\",0,IF($AA121=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C121,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMIFS(OverValue,OverEmp,$C121,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA121)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA121,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121)))))))","v":0},{"$f":"IF($F121=\"Terminated\",0,IF($AA121=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C121,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMIFS(OverValue,OverEmp,$C121,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA121)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA121,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC121,PayEmp,$C121)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B121<=Setup!$E$12,$B121>=Setup!$D$12+1),0,IF($F121<>\"Active\",0,IF($AE121=\"Yes\",$AB121,((YEAR($AC121)*12)+MONTH($AC121))-((YEAR($AD121)*12)+MONTH($AD121)-1))))","v":8},{"$f":"IF(OR($B121<=Setup!$E$12,$B121>=Setup!$D$12+1),0,((YEAR($AC121)*12)+MONTH($AC121))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":8},45224,{"$f":"IF(ISNA(VLOOKUP($C121,EmpAll,COLUMN(Emp!$E$4),0)),$AC121,IF(VLOOKUP($C121,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C121,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C121,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C121,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C121,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A121=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C121,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMIFS(OverValue,OverEmp,$C121,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1)),IF(ISNA(VLOOKUP($C121,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG121,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C121,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C121,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C121,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C121,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C121,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F121=\"Terminated\",0,IF($AA121=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C121,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA121*12)+(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB121/3,0))*4)+(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB121/6,0))*2)+(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F121=\"Terminated\",0,IF($AA121=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C121,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA121*12)+(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB121/3,0))*4)+(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB121/6,0))*2)+(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F121=\"Terminated\",0,IF($AA121=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C121,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA121*12)+(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB121/3,0))*4)+(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB121/6,0))*2)+(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F121=\"Terminated\",0,IF($AA121=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C121,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA121*12)+(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB121/3,0))*4)+(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB121/6,0))*2)+(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F121=\"Terminated\",0,IF($AA121=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C121,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA121*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F121=\"Terminated\",0,IF($AA121=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C121,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA121*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F121=\"Terminated\",0,IF($AA121=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C121,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA121*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F121=\"Terminated\",0,IF($AA121=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C121,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC121),MONTH($AC121)+1,1),OverEnd,\">=\"&DATE(YEAR($AC121),MONTH($AC121),1))>0,SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA121*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C121)*(PayDate<=$AC121)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA121*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C121,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C121,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL121),($AR121*$AL121)-$AI121-$AK121,MAX(0,IF($AL121=\"B\",IF($AR121<Setup!$C$32,($AR121*Setup!$D$32)-$AI121-$AK121,(($AR121-VLOOKUP($AR121,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR121,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR121,TaxBracket2,1),0,1,1)-$AI121-$AK121),IF($AR121<Setup!$C$21,($AR121*Setup!$D$21)-$AI121-$AK121,(($AR121-VLOOKUP($AR121,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR121,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR121,TaxBracket1,1),0,1,1)-$AI121-$AK121))))","v":2205},{"$f":"IF(ISNUMBER($AL121),($AX121*$AL121)-$AI121-$AK121,MAX(0,IF($AL121=\"B\",IF($AX121<Setup!$C$32,($AX121*Setup!$D$32)-$AI121-$AK121,(($AX121-VLOOKUP($AX121,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX121,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX121,TaxBracket2,1),0,1,1)-$AI121-$AK121),IF($AX121<Setup!$C$21,($AX121*Setup!$D$21)-$AI121-$AK121,(($AX121-VLOOKUP($AX121,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX121,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX121,TaxBracket1,1),0,1,1)-$AI121-$AK121))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A122)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B122,\"yyyy\")&TEXT($B122,\"mm\")&\"-\"&$C122)","v":"202310-EXS011"},{"$f":"IF(ROW($A122)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A122)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A122)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A122)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45224},{"$f":"IF(ROW($A122)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A122)-ROW($A$6)-IF(ROW($A122)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A122)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS011"},{"$f":"IF(ISNA(VLOOKUP($C122,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C122,EmpAll,COLUMN(Emp!$B$4),0))","v":"Newport GD"},{"$f":"IF(ISNA(VLOOKUP($C122,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C122,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C122,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C122,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC122),MONTH($AC122)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C122,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC122),MONTH($AC122),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F122<>\"Active\",0,IF(COUNTIFS(OverEmp,$C122,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMIFS(OverValue,OverEmp,$C122,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1)),IF(AND($AC122>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C122)>0),SUMIFS(EmpIncrease,EmpCode,$C122),SUMIFS(EmpSalary,EmpCode,$C122))))","v":5000},{"$f":"IF($F122<>\"Active\",0,IF(COUNTIFS(OverEmp,$C122,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMIFS(OverValue,OverEmp,$C122,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1)),0))","v":0},{"$f":"IF($F122<>\"Active\",0,IF(COUNTIFS(OverEmp,$C122,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMIFS(OverValue,OverEmp,$C122,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1)),IF(MONTH(B122)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C122),0)))","v":0},{"$f":"IF($F122<>\"Active\",0,IF(COUNTIFS(OverEmp,$C122,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMIFS(OverValue,OverEmp,$C122,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1)),0))","v":0},{"$f":"IF($F122<>\"Active\",0,IF(COUNTIFS(OverEmp,$C122,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMIFS(OverValue,OverEmp,$C122,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C122,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMIFS(OverValue,OverEmp,$C122,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1)),(($BA122/12*$AA122)+(BB122*IF(1-$BC122=0,0,BD122/(1-$BC122))))-IF($F122=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC122,PayEmp,$C122)))","v":0},{"$f":"IF($F122=\"Terminated\",0,IF($AA122=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C122,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMIFS(OverValue,OverEmp,$C122,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA122)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA122,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122))))))","v":50},{"$f":"IF($F122=\"Terminated\",0,IF($AA122=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C122,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMIFS(OverValue,OverEmp,$C122,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA122)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA122,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122))))))","v":0},{"$f":"IF($F122=\"Terminated\",0,IF($AA122=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C122,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMIFS(OverValue,OverEmp,$C122,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA122)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA122,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122))))))","v":0},{"$f":"IF($F122=\"Terminated\",0,IF($AA122=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C122,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMIFS(OverValue,OverEmp,$C122,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA122)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA122,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122))))))","v":0},50,4950,{"$f":"IF($F122=\"Terminated\",0,IF($AA122=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C122,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMIFS(OverValue,OverEmp,$C122,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA122)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA122,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122)))))))","v":50},{"$f":"IF($F122=\"Terminated\",0,IF($AA122=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C122,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMIFS(OverValue,OverEmp,$C122,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA122)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA122,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122)))))))","v":50},{"$f":"IF($F122=\"Terminated\",0,IF($AA122=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C122,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMIFS(OverValue,OverEmp,$C122,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA122)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA122,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122)))))))","v":0},{"$f":"IF($F122=\"Terminated\",0,IF($AA122=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C122,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMIFS(OverValue,OverEmp,$C122,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA122)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA122,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC122,PayEmp,$C122)))))))","v":0},100,5100,150,{"$f":"IF(OR($B122<=Setup!$E$12,$B122>=Setup!$D$12+1),0,IF($F122<>\"Active\",0,IF($AE122=\"Yes\",$AB122,((YEAR($AC122)*12)+MONTH($AC122))-((YEAR($AD122)*12)+MONTH($AD122)-1))))","v":8},{"$f":"IF(OR($B122<=Setup!$E$12,$B122>=Setup!$D$12+1),0,((YEAR($AC122)*12)+MONTH($AC122))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":8},45224,{"$f":"IF(ISNA(VLOOKUP($C122,EmpAll,COLUMN(Emp!$E$4),0)),$AC122,IF(VLOOKUP($C122,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C122,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C122,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C122,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C122,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A122=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C122,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMIFS(OverValue,OverEmp,$C122,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1)),IF(ISNA(VLOOKUP($C122,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG122,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C122,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C122,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C122,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C122,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C122,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F122=\"Terminated\",0,IF($AA122=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C122,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA122*12)+(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB122/3,0))*4)+(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB122/6,0))*2)+(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F122=\"Terminated\",0,IF($AA122=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C122,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA122*12)+(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB122/3,0))*4)+(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB122/6,0))*2)+(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F122=\"Terminated\",0,IF($AA122=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C122,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA122*12)+(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB122/3,0))*4)+(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB122/6,0))*2)+(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F122=\"Terminated\",0,IF($AA122=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C122,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA122*12)+(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB122/3,0))*4)+(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB122/6,0))*2)+(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F122=\"Terminated\",0,IF($AA122=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C122,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA122*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F122=\"Terminated\",0,IF($AA122=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C122,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA122*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F122=\"Terminated\",0,IF($AA122=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C122,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA122*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F122=\"Terminated\",0,IF($AA122=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C122,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC122),MONTH($AC122)+1,1),OverEnd,\">=\"&DATE(YEAR($AC122),MONTH($AC122),1))>0,SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA122*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C122)*(PayDate<=$AC122)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA122*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C122,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C122,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL122),($AR122*$AL122)-$AI122-$AK122,MAX(0,IF($AL122=\"B\",IF($AR122<Setup!$C$32,($AR122*Setup!$D$32)-$AI122-$AK122,(($AR122-VLOOKUP($AR122,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR122,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR122,TaxBracket2,1),0,1,1)-$AI122-$AK122),IF($AR122<Setup!$C$21,($AR122*Setup!$D$21)-$AI122-$AK122,(($AR122-VLOOKUP($AR122,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR122,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR122,TaxBracket1,1),0,1,1)-$AI122-$AK122))))","v":0},{"$f":"IF(ISNUMBER($AL122),($AX122*$AL122)-$AI122-$AK122,MAX(0,IF($AL122=\"B\",IF($AX122<Setup!$C$32,($AX122*Setup!$D$32)-$AI122-$AK122,(($AX122-VLOOKUP($AX122,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX122,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX122,TaxBracket2,1),0,1,1)-$AI122-$AK122),IF($AX122<Setup!$C$21,($AX122*Setup!$D$21)-$AI122-$AK122,(($AX122-VLOOKUP($AX122,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX122,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX122,TaxBracket1,1),0,1,1)-$AI122-$AK122))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A123)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B123,\"yyyy\")&TEXT($B123,\"mm\")&\"-\"&$C123)","v":"202310-EXS012"},{"$f":"IF(ROW($A123)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A123)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A123)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A123)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45224},{"$f":"IF(ROW($A123)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A123)-ROW($A$6)-IF(ROW($A123)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A123)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS012"},{"$f":"IF(ISNA(VLOOKUP($C123,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C123,EmpAll,COLUMN(Emp!$B$4),0))","v":"Williams VS"},{"$f":"IF(ISNA(VLOOKUP($C123,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C123,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C123,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C123,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC123),MONTH($AC123)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C123,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC123),MONTH($AC123),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F123<>\"Active\",0,IF(COUNTIFS(OverEmp,$C123,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMIFS(OverValue,OverEmp,$C123,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1)),IF(AND($AC123>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C123)>0),SUMIFS(EmpIncrease,EmpCode,$C123),SUMIFS(EmpSalary,EmpCode,$C123))))","v":5000},{"$f":"IF($F123<>\"Active\",0,IF(COUNTIFS(OverEmp,$C123,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMIFS(OverValue,OverEmp,$C123,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1)),0))","v":0},{"$f":"IF($F123<>\"Active\",0,IF(COUNTIFS(OverEmp,$C123,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMIFS(OverValue,OverEmp,$C123,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1)),IF(MONTH(B123)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C123),0)))","v":0},{"$f":"IF($F123<>\"Active\",0,IF(COUNTIFS(OverEmp,$C123,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMIFS(OverValue,OverEmp,$C123,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1)),0))","v":0},{"$f":"IF($F123<>\"Active\",0,IF(COUNTIFS(OverEmp,$C123,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMIFS(OverValue,OverEmp,$C123,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C123,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMIFS(OverValue,OverEmp,$C123,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1)),(($BA123/12*$AA123)+(BB123*IF(1-$BC123=0,0,BD123/(1-$BC123))))-IF($F123=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC123,PayEmp,$C123)))","v":0},{"$f":"IF($F123=\"Terminated\",0,IF($AA123=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C123,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMIFS(OverValue,OverEmp,$C123,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA123)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA123,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123))))))","v":50},{"$f":"IF($F123=\"Terminated\",0,IF($AA123=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C123,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMIFS(OverValue,OverEmp,$C123,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA123)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA123,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123))))))","v":0},{"$f":"IF($F123=\"Terminated\",0,IF($AA123=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C123,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMIFS(OverValue,OverEmp,$C123,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA123)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA123,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123))))))","v":0},{"$f":"IF($F123=\"Terminated\",0,IF($AA123=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C123,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMIFS(OverValue,OverEmp,$C123,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA123)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA123,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123))))))","v":0},50,4950,{"$f":"IF($F123=\"Terminated\",0,IF($AA123=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C123,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMIFS(OverValue,OverEmp,$C123,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA123)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA123,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123)))))))","v":50},{"$f":"IF($F123=\"Terminated\",0,IF($AA123=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C123,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMIFS(OverValue,OverEmp,$C123,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA123)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA123,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123)))))))","v":50},{"$f":"IF($F123=\"Terminated\",0,IF($AA123=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C123,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMIFS(OverValue,OverEmp,$C123,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA123)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA123,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123)))))))","v":0},{"$f":"IF($F123=\"Terminated\",0,IF($AA123=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C123,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMIFS(OverValue,OverEmp,$C123,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA123)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA123,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC123,PayEmp,$C123)))))))","v":0},100,5100,150,{"$f":"IF(OR($B123<=Setup!$E$12,$B123>=Setup!$D$12+1),0,IF($F123<>\"Active\",0,IF($AE123=\"Yes\",$AB123,((YEAR($AC123)*12)+MONTH($AC123))-((YEAR($AD123)*12)+MONTH($AD123)-1))))","v":8},{"$f":"IF(OR($B123<=Setup!$E$12,$B123>=Setup!$D$12+1),0,((YEAR($AC123)*12)+MONTH($AC123))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":8},45224,{"$f":"IF(ISNA(VLOOKUP($C123,EmpAll,COLUMN(Emp!$E$4),0)),$AC123,IF(VLOOKUP($C123,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C123,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C123,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C123,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C123,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A123=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C123,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMIFS(OverValue,OverEmp,$C123,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1)),IF(ISNA(VLOOKUP($C123,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG123,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C123,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C123,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C123,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C123,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C123,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F123=\"Terminated\",0,IF($AA123=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C123,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA123*12)+(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB123/3,0))*4)+(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB123/6,0))*2)+(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F123=\"Terminated\",0,IF($AA123=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C123,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA123*12)+(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB123/3,0))*4)+(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB123/6,0))*2)+(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F123=\"Terminated\",0,IF($AA123=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C123,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA123*12)+(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB123/3,0))*4)+(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB123/6,0))*2)+(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F123=\"Terminated\",0,IF($AA123=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C123,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA123*12)+(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB123/3,0))*4)+(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB123/6,0))*2)+(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F123=\"Terminated\",0,IF($AA123=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C123,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA123*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F123=\"Terminated\",0,IF($AA123=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C123,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA123*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F123=\"Terminated\",0,IF($AA123=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C123,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA123*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F123=\"Terminated\",0,IF($AA123=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C123,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC123),MONTH($AC123)+1,1),OverEnd,\">=\"&DATE(YEAR($AC123),MONTH($AC123),1))>0,SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA123*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C123)*(PayDate<=$AC123)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA123*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C123,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C123,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL123),($AR123*$AL123)-$AI123-$AK123,MAX(0,IF($AL123=\"B\",IF($AR123<Setup!$C$32,($AR123*Setup!$D$32)-$AI123-$AK123,(($AR123-VLOOKUP($AR123,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR123,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR123,TaxBracket2,1),0,1,1)-$AI123-$AK123),IF($AR123<Setup!$C$21,($AR123*Setup!$D$21)-$AI123-$AK123,(($AR123-VLOOKUP($AR123,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR123,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR123,TaxBracket1,1),0,1,1)-$AI123-$AK123))))","v":0},{"$f":"IF(ISNUMBER($AL123),($AX123*$AL123)-$AI123-$AK123,MAX(0,IF($AL123=\"B\",IF($AX123<Setup!$C$32,($AX123*Setup!$D$32)-$AI123-$AK123,(($AX123-VLOOKUP($AX123,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX123,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX123,TaxBracket2,1),0,1,1)-$AI123-$AK123),IF($AX123<Setup!$C$21,($AX123*Setup!$D$21)-$AI123-$AK123,(($AX123-VLOOKUP($AX123,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX123,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX123,TaxBracket1,1),0,1,1)-$AI123-$AK123))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A124)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B124,\"yyyy\")&TEXT($B124,\"mm\")&\"-\"&$C124)","v":"202310-EXS013"},{"$f":"IF(ROW($A124)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A124)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A124)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A124)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45224},{"$f":"IF(ROW($A124)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A124)-ROW($A$6)-IF(ROW($A124)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A124)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS013"},{"$f":"IF(ISNA(VLOOKUP($C124,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C124,EmpAll,COLUMN(Emp!$B$4),0))","v":"East WD"},{"$f":"IF(ISNA(VLOOKUP($C124,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C124,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C124,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C124,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC124),MONTH($AC124)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C124,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC124),MONTH($AC124),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F124<>\"Active\",0,IF(COUNTIFS(OverEmp,$C124,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMIFS(OverValue,OverEmp,$C124,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1)),IF(AND($AC124>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C124)>0),SUMIFS(EmpIncrease,EmpCode,$C124),SUMIFS(EmpSalary,EmpCode,$C124))))","v":5000},{"$f":"IF($F124<>\"Active\",0,IF(COUNTIFS(OverEmp,$C124,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMIFS(OverValue,OverEmp,$C124,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1)),0))","v":0},{"$f":"IF($F124<>\"Active\",0,IF(COUNTIFS(OverEmp,$C124,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMIFS(OverValue,OverEmp,$C124,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1)),IF(MONTH(B124)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C124),0)))","v":0},{"$f":"IF($F124<>\"Active\",0,IF(COUNTIFS(OverEmp,$C124,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMIFS(OverValue,OverEmp,$C124,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1)),0))","v":0},{"$f":"IF($F124<>\"Active\",0,IF(COUNTIFS(OverEmp,$C124,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMIFS(OverValue,OverEmp,$C124,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C124,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMIFS(OverValue,OverEmp,$C124,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1)),(($BA124/12*$AA124)+(BB124*IF(1-$BC124=0,0,BD124/(1-$BC124))))-IF($F124=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC124,PayEmp,$C124)))","v":0},{"$f":"IF($F124=\"Terminated\",0,IF($AA124=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C124,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMIFS(OverValue,OverEmp,$C124,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA124)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA124,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124))))))","v":50},{"$f":"IF($F124=\"Terminated\",0,IF($AA124=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C124,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMIFS(OverValue,OverEmp,$C124,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA124)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA124,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124))))))","v":0},{"$f":"IF($F124=\"Terminated\",0,IF($AA124=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C124,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMIFS(OverValue,OverEmp,$C124,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA124)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA124,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124))))))","v":0},{"$f":"IF($F124=\"Terminated\",0,IF($AA124=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C124,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMIFS(OverValue,OverEmp,$C124,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA124)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA124,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124))))))","v":0},50,4950,{"$f":"IF($F124=\"Terminated\",0,IF($AA124=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C124,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMIFS(OverValue,OverEmp,$C124,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA124)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA124,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124)))))))","v":50},{"$f":"IF($F124=\"Terminated\",0,IF($AA124=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C124,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMIFS(OverValue,OverEmp,$C124,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA124)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA124,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124)))))))","v":50},{"$f":"IF($F124=\"Terminated\",0,IF($AA124=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C124,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMIFS(OverValue,OverEmp,$C124,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA124)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA124,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124)))))))","v":0},{"$f":"IF($F124=\"Terminated\",0,IF($AA124=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C124,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMIFS(OverValue,OverEmp,$C124,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA124)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA124,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC124,PayEmp,$C124)))))))","v":0},100,5100,150,{"$f":"IF(OR($B124<=Setup!$E$12,$B124>=Setup!$D$12+1),0,IF($F124<>\"Active\",0,IF($AE124=\"Yes\",$AB124,((YEAR($AC124)*12)+MONTH($AC124))-((YEAR($AD124)*12)+MONTH($AD124)-1))))","v":8},{"$f":"IF(OR($B124<=Setup!$E$12,$B124>=Setup!$D$12+1),0,((YEAR($AC124)*12)+MONTH($AC124))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":8},45224,{"$f":"IF(ISNA(VLOOKUP($C124,EmpAll,COLUMN(Emp!$E$4),0)),$AC124,IF(VLOOKUP($C124,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C124,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C124,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C124,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C124,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A124=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C124,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMIFS(OverValue,OverEmp,$C124,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1)),IF(ISNA(VLOOKUP($C124,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG124,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C124,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C124,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C124,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C124,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C124,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F124=\"Terminated\",0,IF($AA124=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C124,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA124*12)+(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB124/3,0))*4)+(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB124/6,0))*2)+(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F124=\"Terminated\",0,IF($AA124=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C124,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA124*12)+(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB124/3,0))*4)+(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB124/6,0))*2)+(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F124=\"Terminated\",0,IF($AA124=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C124,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA124*12)+(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB124/3,0))*4)+(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB124/6,0))*2)+(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F124=\"Terminated\",0,IF($AA124=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C124,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA124*12)+(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB124/3,0))*4)+(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB124/6,0))*2)+(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F124=\"Terminated\",0,IF($AA124=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C124,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA124*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F124=\"Terminated\",0,IF($AA124=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C124,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA124*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F124=\"Terminated\",0,IF($AA124=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C124,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA124*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F124=\"Terminated\",0,IF($AA124=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C124,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC124),MONTH($AC124)+1,1),OverEnd,\">=\"&DATE(YEAR($AC124),MONTH($AC124),1))>0,SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA124*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C124)*(PayDate<=$AC124)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA124*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C124,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C124,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL124),($AR124*$AL124)-$AI124-$AK124,MAX(0,IF($AL124=\"B\",IF($AR124<Setup!$C$32,($AR124*Setup!$D$32)-$AI124-$AK124,(($AR124-VLOOKUP($AR124,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR124,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR124,TaxBracket2,1),0,1,1)-$AI124-$AK124),IF($AR124<Setup!$C$21,($AR124*Setup!$D$21)-$AI124-$AK124,(($AR124-VLOOKUP($AR124,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR124,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR124,TaxBracket1,1),0,1,1)-$AI124-$AK124))))","v":0},{"$f":"IF(ISNUMBER($AL124),($AX124*$AL124)-$AI124-$AK124,MAX(0,IF($AL124=\"B\",IF($AX124<Setup!$C$32,($AX124*Setup!$D$32)-$AI124-$AK124,(($AX124-VLOOKUP($AX124,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX124,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX124,TaxBracket2,1),0,1,1)-$AI124-$AK124),IF($AX124<Setup!$C$21,($AX124*Setup!$D$21)-$AI124-$AK124,(($AX124-VLOOKUP($AX124,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX124,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX124,TaxBracket1,1),0,1,1)-$AI124-$AK124))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A125)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B125,\"yyyy\")&TEXT($B125,\"mm\")&\"-\"&$C125)","v":"202310-EXS014"},{"$f":"IF(ROW($A125)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A125)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A125)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A125)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45224},{"$f":"IF(ROW($A125)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A125)-ROW($A$6)-IF(ROW($A125)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A125)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS014"},{"$f":"IF(ISNA(VLOOKUP($C125,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C125,EmpAll,COLUMN(Emp!$B$4),0))","v":"Ross Q"},{"$f":"IF(ISNA(VLOOKUP($C125,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C125,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C125,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C125,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC125),MONTH($AC125)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C125,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC125),MONTH($AC125),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F125<>\"Active\",0,IF(COUNTIFS(OverEmp,$C125,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMIFS(OverValue,OverEmp,$C125,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1)),IF(AND($AC125>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C125)>0),SUMIFS(EmpIncrease,EmpCode,$C125),SUMIFS(EmpSalary,EmpCode,$C125))))","v":29150},{"$f":"IF($F125<>\"Active\",0,IF(COUNTIFS(OverEmp,$C125,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMIFS(OverValue,OverEmp,$C125,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1)),0))","v":0},{"$f":"IF($F125<>\"Active\",0,IF(COUNTIFS(OverEmp,$C125,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMIFS(OverValue,OverEmp,$C125,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1)),IF(MONTH(B125)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C125),0)))","v":0},{"$f":"IF($F125<>\"Active\",0,IF(COUNTIFS(OverEmp,$C125,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMIFS(OverValue,OverEmp,$C125,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1)),0))","v":0},{"$f":"IF($F125<>\"Active\",0,IF(COUNTIFS(OverEmp,$C125,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMIFS(OverValue,OverEmp,$C125,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1)),0))","v":0},29150,{"$f":"IF(COUNTIFS(OverEmp,$C125,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMIFS(OverValue,OverEmp,$C125,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1)),(($BA125/12*$AA125)+(BB125*IF(1-$BC125=0,0,BD125/(1-$BC125))))-IF($F125=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC125,PayEmp,$C125)))","v":4562.0833333333321},{"$f":"IF($F125=\"Terminated\",0,IF($AA125=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C125,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMIFS(OverValue,OverEmp,$C125,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA125)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA125,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125))))))","v":177.12},{"$f":"IF($F125=\"Terminated\",0,IF($AA125=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C125,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMIFS(OverValue,OverEmp,$C125,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA125)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA125,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125))))))","v":0},{"$f":"IF($F125=\"Terminated\",0,IF($AA125=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C125,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMIFS(OverValue,OverEmp,$C125,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA125)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA125,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125))))))","v":0},{"$f":"IF($F125=\"Terminated\",0,IF($AA125=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C125,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMIFS(OverValue,OverEmp,$C125,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA125)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA125,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125))))))","v":0},4739.203333333332,24410.799999999999,{"$f":"IF($F125=\"Terminated\",0,IF($AA125=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C125,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMIFS(OverValue,OverEmp,$C125,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA125)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA125,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125)))))))","v":177.12},{"$f":"IF($F125=\"Terminated\",0,IF($AA125=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C125,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMIFS(OverValue,OverEmp,$C125,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA125)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA125,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125)))))))","v":291.5},{"$f":"IF($F125=\"Terminated\",0,IF($AA125=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C125,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMIFS(OverValue,OverEmp,$C125,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA125)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA125,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125)))))))","v":0},{"$f":"IF($F125=\"Terminated\",0,IF($AA125=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C125,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMIFS(OverValue,OverEmp,$C125,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA125)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA125,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC125,PayEmp,$C125)))))))","v":0},468.62,29618.62,5207.82,{"$f":"IF(OR($B125<=Setup!$E$12,$B125>=Setup!$D$12+1),0,IF($F125<>\"Active\",0,IF($AE125=\"Yes\",$AB125,((YEAR($AC125)*12)+MONTH($AC125))-((YEAR($AD125)*12)+MONTH($AD125)-1))))","v":5},{"$f":"IF(OR($B125<=Setup!$E$12,$B125>=Setup!$D$12+1),0,((YEAR($AC125)*12)+MONTH($AC125))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":8},45224,{"$f":"IF(ISNA(VLOOKUP($C125,EmpAll,COLUMN(Emp!$E$4),0)),$AC125,IF(VLOOKUP($C125,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C125,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-06-25"},{"$f":"IF(ISNA(VLOOKUP($C125,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C125,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C125,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A125=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C125,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMIFS(OverValue,OverEmp,$C125,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1)),IF(ISNA(VLOOKUP($C125,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG125,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C125,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C125,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C125,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C125,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C125,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},349800,{"$f":"-IF($F125=\"Terminated\",0,IF($AA125=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C125,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA125*12)+(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB125/3,0))*4)+(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB125/6,0))*2)+(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F125=\"Terminated\",0,IF($AA125=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C125,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA125*12)+(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB125/3,0))*4)+(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB125/6,0))*2)+(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F125=\"Terminated\",0,IF($AA125=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C125,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA125*12)+(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB125/3,0))*4)+(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB125/6,0))*2)+(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F125=\"Terminated\",0,IF($AA125=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C125,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA125*12)+(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB125/3,0))*4)+(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB125/6,0))*2)+(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},349800,349800,{"$f":"-IF($F125=\"Terminated\",0,IF($AA125=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C125,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA125*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F125=\"Terminated\",0,IF($AA125=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C125,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA125*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F125=\"Terminated\",0,IF($AA125=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C125,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA125*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F125=\"Terminated\",0,IF($AA125=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C125,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC125),MONTH($AC125)+1,1),OverEnd,\">=\"&DATE(YEAR($AC125),MONTH($AC125),1))>0,SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA125*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C125)*(PayDate<=$AC125)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA125*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C125,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C125,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},349800,0,{"$f":"IF(ISNUMBER($AL125),($AR125*$AL125)-$AI125-$AK125,MAX(0,IF($AL125=\"B\",IF($AR125<Setup!$C$32,($AR125*Setup!$D$32)-$AI125-$AK125,(($AR125-VLOOKUP($AR125,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR125,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR125,TaxBracket2,1),0,1,1)-$AI125-$AK125),IF($AR125<Setup!$C$21,($AR125*Setup!$D$21)-$AI125-$AK125,(($AR125-VLOOKUP($AR125,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR125,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR125,TaxBracket1,1),0,1,1)-$AI125-$AK125))))","v":54745},{"$f":"IF(ISNUMBER($AL125),($AX125*$AL125)-$AI125-$AK125,MAX(0,IF($AL125=\"B\",IF($AX125<Setup!$C$32,($AX125*Setup!$D$32)-$AI125-$AK125,(($AX125-VLOOKUP($AX125,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX125,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX125,TaxBracket2,1),0,1,1)-$AI125-$AK125),IF($AX125<Setup!$C$21,($AX125*Setup!$D$21)-$AI125-$AK125,(($AX125-VLOOKUP($AX125,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX125,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX125,TaxBracket1,1),0,1,1)-$AI125-$AK125))))","v":54745},0,1,0,349800]
[{"$f":"IF(ROW($A126)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B126,\"yyyy\")&TEXT($B126,\"mm\")&\"-\"&$C126)","v":"202310-EXS015"},{"$f":"IF(ROW($A126)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A126)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A126)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A126)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45224},{"$f":"IF(ROW($A126)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A126)-ROW($A$6)-IF(ROW($A126)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A126)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS015"},{"$f":"IF(ISNA(VLOOKUP($C126,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C126,EmpAll,COLUMN(Emp!$B$4),0))","v":"Graham L"},{"$f":"IF(ISNA(VLOOKUP($C126,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C126,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C126,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C126,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC126),MONTH($AC126)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C126,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC126),MONTH($AC126),0)),\"Terminated\",\"Active\")))","v":"Inactive"},{"$f":"IF($F126<>\"Active\",0,IF(COUNTIFS(OverEmp,$C126,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMIFS(OverValue,OverEmp,$C126,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1)),IF(AND($AC126>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C126)>0),SUMIFS(EmpIncrease,EmpCode,$C126),SUMIFS(EmpSalary,EmpCode,$C126))))","v":0},{"$f":"IF($F126<>\"Active\",0,IF(COUNTIFS(OverEmp,$C126,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMIFS(OverValue,OverEmp,$C126,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1)),0))","v":0},{"$f":"IF($F126<>\"Active\",0,IF(COUNTIFS(OverEmp,$C126,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMIFS(OverValue,OverEmp,$C126,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1)),IF(MONTH(B126)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C126),0)))","v":0},{"$f":"IF($F126<>\"Active\",0,IF(COUNTIFS(OverEmp,$C126,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMIFS(OverValue,OverEmp,$C126,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1)),0))","v":0},{"$f":"IF($F126<>\"Active\",0,IF(COUNTIFS(OverEmp,$C126,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMIFS(OverValue,OverEmp,$C126,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C126,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMIFS(OverValue,OverEmp,$C126,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1)),(($BA126/12*$AA126)+(BB126*IF(1-$BC126=0,0,BD126/(1-$BC126))))-IF($F126=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC126,PayEmp,$C126)))","v":0},{"$f":"IF($F126=\"Terminated\",0,IF($AA126=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C126,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMIFS(OverValue,OverEmp,$C126,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA126)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA126,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126))))))","v":0},{"$f":"IF($F126=\"Terminated\",0,IF($AA126=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C126,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMIFS(OverValue,OverEmp,$C126,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA126)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA126,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126))))))","v":0},{"$f":"IF($F126=\"Terminated\",0,IF($AA126=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C126,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMIFS(OverValue,OverEmp,$C126,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA126)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA126,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126))))))","v":0},{"$f":"IF($F126=\"Terminated\",0,IF($AA126=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C126,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMIFS(OverValue,OverEmp,$C126,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA126)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA126,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126))))))","v":0},0,0,{"$f":"IF($F126=\"Terminated\",0,IF($AA126=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C126,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMIFS(OverValue,OverEmp,$C126,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA126)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA126,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126)))))))","v":0},{"$f":"IF($F126=\"Terminated\",0,IF($AA126=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C126,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMIFS(OverValue,OverEmp,$C126,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA126)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA126,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126)))))))","v":0},{"$f":"IF($F126=\"Terminated\",0,IF($AA126=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C126,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMIFS(OverValue,OverEmp,$C126,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA126)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA126,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126)))))))","v":0},{"$f":"IF($F126=\"Terminated\",0,IF($AA126=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C126,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMIFS(OverValue,OverEmp,$C126,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA126)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA126,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC126,PayEmp,$C126)))))))","v":0},0,0,0,{"$f":"IF(OR($B126<=Setup!$E$12,$B126>=Setup!$D$12+1),0,IF($F126<>\"Active\",0,IF($AE126=\"Yes\",$AB126,((YEAR($AC126)*12)+MONTH($AC126))-((YEAR($AD126)*12)+MONTH($AD126)-1))))","v":0},{"$f":"IF(OR($B126<=Setup!$E$12,$B126>=Setup!$D$12+1),0,((YEAR($AC126)*12)+MONTH($AC126))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":8},45224,{"$f":"IF(ISNA(VLOOKUP($C126,EmpAll,COLUMN(Emp!$E$4),0)),$AC126,IF(VLOOKUP($C126,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C126,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-01-25"},{"$f":"IF(ISNA(VLOOKUP($C126,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C126,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C126,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A126=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C126,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMIFS(OverValue,OverEmp,$C126,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1)),IF(ISNA(VLOOKUP($C126,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG126,MedList,COLUMN(Setup!$C$49),1)","v":364},7280,{"$f":"IF(ISNA(VLOOKUP($C126,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C126,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C126,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C126,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C126,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F126=\"Terminated\",0,IF($AA126=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C126,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA126*12)+(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB126/3,0))*4)+(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB126/6,0))*2)+(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F126=\"Terminated\",0,IF($AA126=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C126,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA126*12)+(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB126/3,0))*4)+(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB126/6,0))*2)+(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F126=\"Terminated\",0,IF($AA126=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C126,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA126*12)+(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB126/3,0))*4)+(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB126/6,0))*2)+(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F126=\"Terminated\",0,IF($AA126=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C126,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA126*12)+(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB126/3,0))*4)+(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB126/6,0))*2)+(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F126=\"Terminated\",0,IF($AA126=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C126,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA126*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F126=\"Terminated\",0,IF($AA126=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C126,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA126*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F126=\"Terminated\",0,IF($AA126=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C126,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA126*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F126=\"Terminated\",0,IF($AA126=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C126,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC126),MONTH($AC126)+1,1),OverEnd,\">=\"&DATE(YEAR($AC126),MONTH($AC126),1))>0,SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA126*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C126)*(PayDate<=$AC126)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA126*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C126,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C126,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL126),($AR126*$AL126)-$AI126-$AK126,MAX(0,IF($AL126=\"B\",IF($AR126<Setup!$C$32,($AR126*Setup!$D$32)-$AI126-$AK126,(($AR126-VLOOKUP($AR126,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR126,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR126,TaxBracket2,1),0,1,1)-$AI126-$AK126),IF($AR126<Setup!$C$21,($AR126*Setup!$D$21)-$AI126-$AK126,(($AR126-VLOOKUP($AR126,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR126,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR126,TaxBracket1,1),0,1,1)-$AI126-$AK126))))","v":0},{"$f":"IF(ISNUMBER($AL126),($AX126*$AL126)-$AI126-$AK126,MAX(0,IF($AL126=\"B\",IF($AX126<Setup!$C$32,($AX126*Setup!$D$32)-$AI126-$AK126,(($AX126-VLOOKUP($AX126,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX126,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX126,TaxBracket2,1),0,1,1)-$AI126-$AK126),IF($AX126<Setup!$C$21,($AX126*Setup!$D$21)-$AI126-$AK126,(($AX126-VLOOKUP($AX126,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX126,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX126,TaxBracket1,1),0,1,1)-$AI126-$AK126))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A127)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B127,\"yyyy\")&TEXT($B127,\"mm\")&\"-\"&$C127)","v":"202311-EXS001"},{"$f":"IF(ROW($A127)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A127)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A127)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A127)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45255},{"$f":"IF(ROW($A127)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A127)-ROW($A$6)-IF(ROW($A127)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A127)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS001"},{"$f":"IF(ISNA(VLOOKUP($C127,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C127,EmpAll,COLUMN(Emp!$B$4),0))","v":"Taylor AE"},{"$f":"IF(ISNA(VLOOKUP($C127,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C127,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C127,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C127,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC127),MONTH($AC127)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C127,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC127),MONTH($AC127),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F127<>\"Active\",0,IF(COUNTIFS(OverEmp,$C127,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMIFS(OverValue,OverEmp,$C127,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1)),IF(AND($AC127>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C127)>0),SUMIFS(EmpIncrease,EmpCode,$C127),SUMIFS(EmpSalary,EmpCode,$C127))))","v":150000},{"$f":"IF($F127<>\"Active\",0,IF(COUNTIFS(OverEmp,$C127,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMIFS(OverValue,OverEmp,$C127,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1)),0))","v":0},{"$f":"IF($F127<>\"Active\",0,IF(COUNTIFS(OverEmp,$C127,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMIFS(OverValue,OverEmp,$C127,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1)),IF(MONTH(B127)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C127),0)))","v":0},{"$f":"IF($F127<>\"Active\",0,IF(COUNTIFS(OverEmp,$C127,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMIFS(OverValue,OverEmp,$C127,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1)),0))","v":0},{"$f":"IF($F127<>\"Active\",0,IF(COUNTIFS(OverEmp,$C127,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMIFS(OverValue,OverEmp,$C127,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1)),0))","v":0},150000,{"$f":"IF(COUNTIFS(OverEmp,$C127,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMIFS(OverValue,OverEmp,$C127,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1)),(($BA127/12*$AA127)+(BB127*IF(1-$BC127=0,0,BD127/(1-$BC127))))-IF($F127=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC127,PayEmp,$C127)))","v":45611.833333333314},{"$f":"IF($F127=\"Terminated\",0,IF($AA127=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C127,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMIFS(OverValue,OverEmp,$C127,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA127)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA127,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127))))))","v":177.11999999999989},{"$f":"IF($F127=\"Terminated\",0,IF($AA127=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C127,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMIFS(OverValue,OverEmp,$C127,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA127)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA127,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127))))))","v":11250},{"$f":"IF($F127=\"Terminated\",0,IF($AA127=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C127,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMIFS(OverValue,OverEmp,$C127,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA127)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA127,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127))))))","v":0},{"$f":"IF($F127=\"Terminated\",0,IF($AA127=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C127,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMIFS(OverValue,OverEmp,$C127,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA127)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA127,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127))))))","v":0},57038.953333333317,92961.05,{"$f":"IF($F127=\"Terminated\",0,IF($AA127=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C127,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMIFS(OverValue,OverEmp,$C127,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA127)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA127,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127)))))))","v":177.11999999999989},{"$f":"IF($F127=\"Terminated\",0,IF($AA127=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C127,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMIFS(OverValue,OverEmp,$C127,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA127)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA127,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127)))))))","v":1500},{"$f":"IF($F127=\"Terminated\",0,IF($AA127=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C127,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMIFS(OverValue,OverEmp,$C127,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA127)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA127,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127)))))))","v":0},{"$f":"IF($F127=\"Terminated\",0,IF($AA127=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C127,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMIFS(OverValue,OverEmp,$C127,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA127)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA127,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC127,PayEmp,$C127)))))))","v":0},1677.12,151677.12,58716.07,{"$f":"IF(OR($B127<=Setup!$E$12,$B127>=Setup!$D$12+1),0,IF($F127<>\"Active\",0,IF($AE127=\"Yes\",$AB127,((YEAR($AC127)*12)+MONTH($AC127))-((YEAR($AD127)*12)+MONTH($AD127)-1))))","v":9},{"$f":"IF(OR($B127<=Setup!$E$12,$B127>=Setup!$D$12+1),0,((YEAR($AC127)*12)+MONTH($AC127))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":9},45255,{"$f":"IF(ISNA(VLOOKUP($C127,EmpAll,COLUMN(Emp!$E$4),0)),$AC127,IF(VLOOKUP($C127,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C127,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C127,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C127,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C127,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A127=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C127,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMIFS(OverValue,OverEmp,$C127,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1)),IF(ISNA(VLOOKUP($C127,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$N$4),0)))","v":5},{"$f":"VLOOKUP($AG127,MedList,COLUMN(Setup!$C$49),1)","v":1466},17592,{"$f":"IF(ISNA(VLOOKUP($C127,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C127,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C127,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C127,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C127,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1800000,{"$f":"-IF($F127=\"Terminated\",0,IF($AA127=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C127,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA127*12)+(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB127/3,0))*4)+(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB127/6,0))*2)+(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F127=\"Terminated\",0,IF($AA127=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C127,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA127*12)+(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB127/3,0))*4)+(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB127/6,0))*2)+(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F127=\"Terminated\",0,IF($AA127=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C127,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA127*12)+(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB127/3,0))*4)+(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB127/6,0))*2)+(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F127=\"Terminated\",0,IF($AA127=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C127,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA127*12)+(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB127/3,0))*4)+(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB127/6,0))*2)+(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1665000,1800000,{"$f":"-IF($F127=\"Terminated\",0,IF($AA127=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C127,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA127*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F127=\"Terminated\",0,IF($AA127=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C127,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA127*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F127=\"Terminated\",0,IF($AA127=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C127,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA127*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F127=\"Terminated\",0,IF($AA127=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C127,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC127),MONTH($AC127)+1,1),OverEnd,\">=\"&DATE(YEAR($AC127),MONTH($AC127),1))>0,SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA127*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C127)*(PayDate<=$AC127)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA127*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C127,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C127,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1665000,0,{"$f":"IF(ISNUMBER($AL127),($AR127*$AL127)-$AI127-$AK127,MAX(0,IF($AL127=\"B\",IF($AR127<Setup!$C$32,($AR127*Setup!$D$32)-$AI127-$AK127,(($AR127-VLOOKUP($AR127,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR127,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR127,TaxBracket2,1),0,1,1)-$AI127-$AK127),IF($AR127<Setup!$C$21,($AR127*Setup!$D$21)-$AI127-$AK127,(($AR127-VLOOKUP($AR127,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR127,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR127,TaxBracket1,1),0,1,1)-$AI127-$AK127))))","v":547342},{"$f":"IF(ISNUMBER($AL127),($AX127*$AL127)-$AI127-$AK127,MAX(0,IF($AL127=\"B\",IF($AX127<Setup!$C$32,($AX127*Setup!$D$32)-$AI127-$AK127,(($AX127-VLOOKUP($AX127,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX127,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX127,TaxBracket2,1),0,1,1)-$AI127-$AK127),IF($AX127<Setup!$C$21,($AX127*Setup!$D$21)-$AI127-$AK127,(($AX127-VLOOKUP($AX127,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX127,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX127,TaxBracket1,1),0,1,1)-$AI127-$AK127))))","v":547342},0,1,0,1800000]
[{"$f":"IF(ROW($A128)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B128,\"yyyy\")&TEXT($B128,\"mm\")&\"-\"&$C128)","v":"202311-EXS002"},{"$f":"IF(ROW($A128)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A128)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A128)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A128)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45255},{"$f":"IF(ROW($A128)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A128)-ROW($A$6)-IF(ROW($A128)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A128)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS002"},{"$f":"IF(ISNA(VLOOKUP($C128,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C128,EmpAll,COLUMN(Emp!$B$4),0))","v":"Smith F"},{"$f":"IF(ISNA(VLOOKUP($C128,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C128,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C128,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C128,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC128),MONTH($AC128)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C128,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC128),MONTH($AC128),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F128<>\"Active\",0,IF(COUNTIFS(OverEmp,$C128,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMIFS(OverValue,OverEmp,$C128,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1)),IF(AND($AC128>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C128)>0),SUMIFS(EmpIncrease,EmpCode,$C128),SUMIFS(EmpSalary,EmpCode,$C128))))","v":120000},{"$f":"IF($F128<>\"Active\",0,IF(COUNTIFS(OverEmp,$C128,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMIFS(OverValue,OverEmp,$C128,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1)),0))","v":0},{"$f":"IF($F128<>\"Active\",0,IF(COUNTIFS(OverEmp,$C128,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMIFS(OverValue,OverEmp,$C128,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1)),IF(MONTH(B128)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C128),0)))","v":0},{"$f":"IF($F128<>\"Active\",0,IF(COUNTIFS(OverEmp,$C128,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMIFS(OverValue,OverEmp,$C128,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1)),0))","v":0},{"$f":"IF($F128<>\"Active\",0,IF(COUNTIFS(OverEmp,$C128,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMIFS(OverValue,OverEmp,$C128,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1)),0))","v":0},120000,{"$f":"IF(COUNTIFS(OverEmp,$C128,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMIFS(OverValue,OverEmp,$C128,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1)),(($BA128/12*$AA128)+(BB128*IF(1-$BC128=0,0,BD128/(1-$BC128))))-IF($F128=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC128,PayEmp,$C128)))","v":38498.333333333314},{"$f":"IF($F128=\"Terminated\",0,IF($AA128=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C128,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMIFS(OverValue,OverEmp,$C128,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA128)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA128,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128))))))","v":177.11999999999989},{"$f":"IF($F128=\"Terminated\",0,IF($AA128=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C128,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMIFS(OverValue,OverEmp,$C128,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA128)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA128,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128))))))","v":0},{"$f":"IF($F128=\"Terminated\",0,IF($AA128=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C128,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMIFS(OverValue,OverEmp,$C128,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA128)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA128,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128))))))","v":0},{"$f":"IF($F128=\"Terminated\",0,IF($AA128=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C128,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMIFS(OverValue,OverEmp,$C128,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA128)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA128,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128))))))","v":0},38675.453333333317,81324.55,{"$f":"IF($F128=\"Terminated\",0,IF($AA128=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C128,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMIFS(OverValue,OverEmp,$C128,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA128)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA128,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128)))))))","v":177.11999999999989},{"$f":"IF($F128=\"Terminated\",0,IF($AA128=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C128,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMIFS(OverValue,OverEmp,$C128,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA128)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA128,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128)))))))","v":1200},{"$f":"IF($F128=\"Terminated\",0,IF($AA128=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C128,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMIFS(OverValue,OverEmp,$C128,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA128)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA128,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128)))))))","v":0},{"$f":"IF($F128=\"Terminated\",0,IF($AA128=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C128,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMIFS(OverValue,OverEmp,$C128,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA128)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA128,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC128,PayEmp,$C128)))))))","v":0},1377.12,121377.12,40052.57,{"$f":"IF(OR($B128<=Setup!$E$12,$B128>=Setup!$D$12+1),0,IF($F128<>\"Active\",0,IF($AE128=\"Yes\",$AB128,((YEAR($AC128)*12)+MONTH($AC128))-((YEAR($AD128)*12)+MONTH($AD128)-1))))","v":9},{"$f":"IF(OR($B128<=Setup!$E$12,$B128>=Setup!$D$12+1),0,((YEAR($AC128)*12)+MONTH($AC128))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":9},45255,{"$f":"IF(ISNA(VLOOKUP($C128,EmpAll,COLUMN(Emp!$E$4),0)),$AC128,IF(VLOOKUP($C128,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C128,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C128,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C128,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C128,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A128=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C128,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMIFS(OverValue,OverEmp,$C128,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1)),IF(ISNA(VLOOKUP($C128,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$N$4),0)))","v":3},{"$f":"VLOOKUP($AG128,MedList,COLUMN(Setup!$C$49),1)","v":974},10704,{"$f":"IF(ISNA(VLOOKUP($C128,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C128,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C128,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C128,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C128,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1440000,{"$f":"-IF($F128=\"Terminated\",0,IF($AA128=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C128,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA128*12)+(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB128/3,0))*4)+(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB128/6,0))*2)+(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F128=\"Terminated\",0,IF($AA128=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C128,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA128*12)+(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB128/3,0))*4)+(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB128/6,0))*2)+(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F128=\"Terminated\",0,IF($AA128=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C128,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA128*12)+(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB128/3,0))*4)+(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB128/6,0))*2)+(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F128=\"Terminated\",0,IF($AA128=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C128,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA128*12)+(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB128/3,0))*4)+(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB128/6,0))*2)+(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1440000,1440000,{"$f":"-IF($F128=\"Terminated\",0,IF($AA128=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C128,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA128*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F128=\"Terminated\",0,IF($AA128=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C128,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA128*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F128=\"Terminated\",0,IF($AA128=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C128,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA128*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F128=\"Terminated\",0,IF($AA128=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C128,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC128),MONTH($AC128)+1,1),OverEnd,\">=\"&DATE(YEAR($AC128),MONTH($AC128),1))>0,SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA128*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C128)*(PayDate<=$AC128)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA128*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C128,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C128,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1440000,0,{"$f":"IF(ISNUMBER($AL128),($AR128*$AL128)-$AI128-$AK128,MAX(0,IF($AL128=\"B\",IF($AR128<Setup!$C$32,($AR128*Setup!$D$32)-$AI128-$AK128,(($AR128-VLOOKUP($AR128,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR128,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR128,TaxBracket2,1),0,1,1)-$AI128-$AK128),IF($AR128<Setup!$C$21,($AR128*Setup!$D$21)-$AI128-$AK128,(($AR128-VLOOKUP($AR128,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR128,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR128,TaxBracket1,1),0,1,1)-$AI128-$AK128))))","v":461980},{"$f":"IF(ISNUMBER($AL128),($AX128*$AL128)-$AI128-$AK128,MAX(0,IF($AL128=\"B\",IF($AX128<Setup!$C$32,($AX128*Setup!$D$32)-$AI128-$AK128,(($AX128-VLOOKUP($AX128,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX128,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX128,TaxBracket2,1),0,1,1)-$AI128-$AK128),IF($AX128<Setup!$C$21,($AX128*Setup!$D$21)-$AI128-$AK128,(($AX128-VLOOKUP($AX128,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX128,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX128,TaxBracket1,1),0,1,1)-$AI128-$AK128))))","v":461980},0,1,0,1440000]
[{"$f":"IF(ROW($A129)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B129,\"yyyy\")&TEXT($B129,\"mm\")&\"-\"&$C129)","v":"202311-EXS003"},{"$f":"IF(ROW($A129)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A129)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A129)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A129)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45255},{"$f":"IF(ROW($A129)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A129)-ROW($A$6)-IF(ROW($A129)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A129)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS003"},{"$f":"IF(ISNA(VLOOKUP($C129,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C129,EmpAll,COLUMN(Emp!$B$4),0))","v":"Wilson PG"},{"$f":"IF(ISNA(VLOOKUP($C129,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C129,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C129,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C129,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC129),MONTH($AC129)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C129,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC129),MONTH($AC129),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F129<>\"Active\",0,IF(COUNTIFS(OverEmp,$C129,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMIFS(OverValue,OverEmp,$C129,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1)),IF(AND($AC129>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C129)>0),SUMIFS(EmpIncrease,EmpCode,$C129),SUMIFS(EmpSalary,EmpCode,$C129))))","v":15000},{"$f":"IF($F129<>\"Active\",0,IF(COUNTIFS(OverEmp,$C129,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMIFS(OverValue,OverEmp,$C129,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1)),0))","v":0},{"$f":"IF($F129<>\"Active\",0,IF(COUNTIFS(OverEmp,$C129,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMIFS(OverValue,OverEmp,$C129,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1)),IF(MONTH(B129)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C129),0)))","v":0},{"$f":"IF($F129<>\"Active\",0,IF(COUNTIFS(OverEmp,$C129,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMIFS(OverValue,OverEmp,$C129,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1)),0))","v":0},{"$f":"IF($F129<>\"Active\",0,IF(COUNTIFS(OverEmp,$C129,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMIFS(OverValue,OverEmp,$C129,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1)),0))","v":0},15000,{"$f":"IF(COUNTIFS(OverEmp,$C129,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMIFS(OverValue,OverEmp,$C129,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1)),(($BA129/12*$AA129)+(BB129*IF(1-$BC129=0,0,BD129/(1-$BC129))))-IF($F129=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC129,PayEmp,$C129)))","v":899.75},{"$f":"IF($F129=\"Terminated\",0,IF($AA129=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C129,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMIFS(OverValue,OverEmp,$C129,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA129)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA129,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129))))))","v":150},{"$f":"IF($F129=\"Terminated\",0,IF($AA129=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C129,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMIFS(OverValue,OverEmp,$C129,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA129)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA129,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129))))))","v":0},{"$f":"IF($F129=\"Terminated\",0,IF($AA129=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C129,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMIFS(OverValue,OverEmp,$C129,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA129)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA129,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129))))))","v":2000},{"$f":"IF($F129=\"Terminated\",0,IF($AA129=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C129,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMIFS(OverValue,OverEmp,$C129,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA129)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA129,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129))))))","v":0},3049.75,11950.25,{"$f":"IF($F129=\"Terminated\",0,IF($AA129=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C129,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMIFS(OverValue,OverEmp,$C129,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA129)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA129,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129)))))))","v":150},{"$f":"IF($F129=\"Terminated\",0,IF($AA129=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C129,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMIFS(OverValue,OverEmp,$C129,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA129)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA129,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129)))))))","v":150},{"$f":"IF($F129=\"Terminated\",0,IF($AA129=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C129,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMIFS(OverValue,OverEmp,$C129,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA129)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA129,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129)))))))","v":0},{"$f":"IF($F129=\"Terminated\",0,IF($AA129=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C129,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMIFS(OverValue,OverEmp,$C129,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA129)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA129,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC129,PayEmp,$C129)))))))","v":0},300,15300,3349.75,{"$f":"IF(OR($B129<=Setup!$E$12,$B129>=Setup!$D$12+1),0,IF($F129<>\"Active\",0,IF($AE129=\"Yes\",$AB129,((YEAR($AC129)*12)+MONTH($AC129))-((YEAR($AD129)*12)+MONTH($AD129)-1))))","v":9},{"$f":"IF(OR($B129<=Setup!$E$12,$B129>=Setup!$D$12+1),0,((YEAR($AC129)*12)+MONTH($AC129))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":9},45255,{"$f":"IF(ISNA(VLOOKUP($C129,EmpAll,COLUMN(Emp!$E$4),0)),$AC129,IF(VLOOKUP($C129,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C129,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C129,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C129,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C129,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A129=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C129,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMIFS(OverValue,OverEmp,$C129,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1)),IF(ISNA(VLOOKUP($C129,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG129,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C129,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C129,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C129,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C129,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C129,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},180000,{"$f":"-IF($F129=\"Terminated\",0,IF($AA129=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C129,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA129*12)+(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB129/3,0))*4)+(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB129/6,0))*2)+(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F129=\"Terminated\",0,IF($AA129=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C129,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA129*12)+(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB129/3,0))*4)+(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB129/6,0))*2)+(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F129=\"Terminated\",0,IF($AA129=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C129,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA129*12)+(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB129/3,0))*4)+(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB129/6,0))*2)+(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F129=\"Terminated\",0,IF($AA129=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C129,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA129*12)+(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB129/3,0))*4)+(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB129/6,0))*2)+(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},180000,180000,{"$f":"-IF($F129=\"Terminated\",0,IF($AA129=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C129,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA129*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F129=\"Terminated\",0,IF($AA129=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C129,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA129*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F129=\"Terminated\",0,IF($AA129=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C129,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA129*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F129=\"Terminated\",0,IF($AA129=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C129,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC129),MONTH($AC129)+1,1),OverEnd,\">=\"&DATE(YEAR($AC129),MONTH($AC129),1))>0,SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA129*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C129)*(PayDate<=$AC129)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA129*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C129,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C129,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,0,{"$f":"IF(ISNUMBER($AL129),($AR129*$AL129)-$AI129-$AK129,MAX(0,IF($AL129=\"B\",IF($AR129<Setup!$C$32,($AR129*Setup!$D$32)-$AI129-$AK129,(($AR129-VLOOKUP($AR129,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR129,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR129,TaxBracket2,1),0,1,1)-$AI129-$AK129),IF($AR129<Setup!$C$21,($AR129*Setup!$D$21)-$AI129-$AK129,(($AR129-VLOOKUP($AR129,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR129,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR129,TaxBracket1,1),0,1,1)-$AI129-$AK129))))","v":10797},{"$f":"IF(ISNUMBER($AL129),($AX129*$AL129)-$AI129-$AK129,MAX(0,IF($AL129=\"B\",IF($AX129<Setup!$C$32,($AX129*Setup!$D$32)-$AI129-$AK129,(($AX129-VLOOKUP($AX129,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX129,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX129,TaxBracket2,1),0,1,1)-$AI129-$AK129),IF($AX129<Setup!$C$21,($AX129*Setup!$D$21)-$AI129-$AK129,(($AX129-VLOOKUP($AX129,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX129,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX129,TaxBracket1,1),0,1,1)-$AI129-$AK129))))","v":10797},0,1,0,180000]
[{"$f":"IF(ROW($A130)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B130,\"yyyy\")&TEXT($B130,\"mm\")&\"-\"&$C130)","v":"202311-EXS004"},{"$f":"IF(ROW($A130)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A130)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A130)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A130)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45255},{"$f":"IF(ROW($A130)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A130)-ROW($A$6)-IF(ROW($A130)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A130)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS004"},{"$f":"IF(ISNA(VLOOKUP($C130,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C130,EmpAll,COLUMN(Emp!$B$4),0))","v":"Osborne S"},{"$f":"IF(ISNA(VLOOKUP($C130,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C130,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C130,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C130,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC130),MONTH($AC130)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C130,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC130),MONTH($AC130),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F130<>\"Active\",0,IF(COUNTIFS(OverEmp,$C130,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMIFS(OverValue,OverEmp,$C130,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1)),IF(AND($AC130>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C130)>0),SUMIFS(EmpIncrease,EmpCode,$C130),SUMIFS(EmpSalary,EmpCode,$C130))))","v":15000},{"$f":"IF($F130<>\"Active\",0,IF(COUNTIFS(OverEmp,$C130,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMIFS(OverValue,OverEmp,$C130,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1)),0))","v":0},{"$f":"IF($F130<>\"Active\",0,IF(COUNTIFS(OverEmp,$C130,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMIFS(OverValue,OverEmp,$C130,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1)),IF(MONTH(B130)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C130),0)))","v":0},{"$f":"IF($F130<>\"Active\",0,IF(COUNTIFS(OverEmp,$C130,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMIFS(OverValue,OverEmp,$C130,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1)),0))","v":0},{"$f":"IF($F130<>\"Active\",0,IF(COUNTIFS(OverEmp,$C130,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMIFS(OverValue,OverEmp,$C130,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1)),0))","v":0},15000,{"$f":"IF(COUNTIFS(OverEmp,$C130,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMIFS(OverValue,OverEmp,$C130,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1)),(($BA130/12*$AA130)+(BB130*IF(1-$BC130=0,0,BD130/(1-$BC130))))-IF($F130=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC130,PayEmp,$C130)))","v":899.75},{"$f":"IF($F130=\"Terminated\",0,IF($AA130=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C130,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMIFS(OverValue,OverEmp,$C130,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA130)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA130,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130))))))","v":150},{"$f":"IF($F130=\"Terminated\",0,IF($AA130=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C130,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMIFS(OverValue,OverEmp,$C130,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA130)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA130,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130))))))","v":0},{"$f":"IF($F130=\"Terminated\",0,IF($AA130=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C130,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMIFS(OverValue,OverEmp,$C130,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA130)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA130,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130))))))","v":500},{"$f":"IF($F130=\"Terminated\",0,IF($AA130=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C130,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMIFS(OverValue,OverEmp,$C130,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA130)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA130,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130))))))","v":0},1549.75,13450.25,{"$f":"IF($F130=\"Terminated\",0,IF($AA130=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C130,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMIFS(OverValue,OverEmp,$C130,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA130)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA130,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130)))))))","v":150},{"$f":"IF($F130=\"Terminated\",0,IF($AA130=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C130,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMIFS(OverValue,OverEmp,$C130,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA130)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA130,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130)))))))","v":150},{"$f":"IF($F130=\"Terminated\",0,IF($AA130=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C130,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMIFS(OverValue,OverEmp,$C130,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA130)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA130,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130)))))))","v":0},{"$f":"IF($F130=\"Terminated\",0,IF($AA130=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C130,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMIFS(OverValue,OverEmp,$C130,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA130)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA130,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC130,PayEmp,$C130)))))))","v":0},300,15300,1849.75,{"$f":"IF(OR($B130<=Setup!$E$12,$B130>=Setup!$D$12+1),0,IF($F130<>\"Active\",0,IF($AE130=\"Yes\",$AB130,((YEAR($AC130)*12)+MONTH($AC130))-((YEAR($AD130)*12)+MONTH($AD130)-1))))","v":9},{"$f":"IF(OR($B130<=Setup!$E$12,$B130>=Setup!$D$12+1),0,((YEAR($AC130)*12)+MONTH($AC130))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":9},45255,{"$f":"IF(ISNA(VLOOKUP($C130,EmpAll,COLUMN(Emp!$E$4),0)),$AC130,IF(VLOOKUP($C130,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C130,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C130,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C130,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C130,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A130=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C130,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMIFS(OverValue,OverEmp,$C130,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1)),IF(ISNA(VLOOKUP($C130,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG130,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C130,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C130,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C130,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C130,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C130,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},183600,{"$f":"-IF($F130=\"Terminated\",0,IF($AA130=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C130,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA130*12)+(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB130/3,0))*4)+(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB130/6,0))*2)+(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F130=\"Terminated\",0,IF($AA130=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C130,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA130*12)+(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB130/3,0))*4)+(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB130/6,0))*2)+(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F130=\"Terminated\",0,IF($AA130=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C130,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA130*12)+(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB130/3,0))*4)+(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB130/6,0))*2)+(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F130=\"Terminated\",0,IF($AA130=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C130,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA130*12)+(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB130/3,0))*4)+(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB130/6,0))*2)+(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},183600,180000,{"$f":"-IF($F130=\"Terminated\",0,IF($AA130=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C130,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA130*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F130=\"Terminated\",0,IF($AA130=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C130,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA130*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F130=\"Terminated\",0,IF($AA130=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C130,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA130*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F130=\"Terminated\",0,IF($AA130=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C130,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC130),MONTH($AC130)+1,1),OverEnd,\">=\"&DATE(YEAR($AC130),MONTH($AC130),1))>0,SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA130*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C130)*(PayDate<=$AC130)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA130*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C130,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C130,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,3600,{"$f":"IF(ISNUMBER($AL130),($AR130*$AL130)-$AI130-$AK130,MAX(0,IF($AL130=\"B\",IF($AR130<Setup!$C$32,($AR130*Setup!$D$32)-$AI130-$AK130,(($AR130-VLOOKUP($AR130,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR130,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR130,TaxBracket2,1),0,1,1)-$AI130-$AK130),IF($AR130<Setup!$C$21,($AR130*Setup!$D$21)-$AI130-$AK130,(($AR130-VLOOKUP($AR130,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR130,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR130,TaxBracket1,1),0,1,1)-$AI130-$AK130))))","v":11445},{"$f":"IF(ISNUMBER($AL130),($AX130*$AL130)-$AI130-$AK130,MAX(0,IF($AL130=\"B\",IF($AX130<Setup!$C$32,($AX130*Setup!$D$32)-$AI130-$AK130,(($AX130-VLOOKUP($AX130,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX130,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX130,TaxBracket2,1),0,1,1)-$AI130-$AK130),IF($AX130<Setup!$C$21,($AX130*Setup!$D$21)-$AI130-$AK130,(($AX130-VLOOKUP($AX130,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX130,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX130,TaxBracket1,1),0,1,1)-$AI130-$AK130))))","v":10797},648,0.98039215686274506,1.9607843137254902E-2,183600]
[{"$f":"IF(ROW($A131)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B131,\"yyyy\")&TEXT($B131,\"mm\")&\"-\"&$C131)","v":"202311-EXS005"},{"$f":"IF(ROW($A131)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A131)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A131)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A131)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45255},{"$f":"IF(ROW($A131)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A131)-ROW($A$6)-IF(ROW($A131)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A131)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS005"},{"$f":"IF(ISNA(VLOOKUP($C131,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C131,EmpAll,COLUMN(Emp!$B$4),0))","v":"Miller R"},{"$f":"IF(ISNA(VLOOKUP($C131,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C131,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C131,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C131,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC131),MONTH($AC131)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C131,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC131),MONTH($AC131),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F131<>\"Active\",0,IF(COUNTIFS(OverEmp,$C131,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMIFS(OverValue,OverEmp,$C131,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1)),IF(AND($AC131>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C131)>0),SUMIFS(EmpIncrease,EmpCode,$C131),SUMIFS(EmpSalary,EmpCode,$C131))))","v":10000},{"$f":"IF($F131<>\"Active\",0,IF(COUNTIFS(OverEmp,$C131,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMIFS(OverValue,OverEmp,$C131,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1)),0))","v":0},{"$f":"IF($F131<>\"Active\",0,IF(COUNTIFS(OverEmp,$C131,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMIFS(OverValue,OverEmp,$C131,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1)),IF(MONTH(B131)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C131),0)))","v":0},{"$f":"IF($F131<>\"Active\",0,IF(COUNTIFS(OverEmp,$C131,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMIFS(OverValue,OverEmp,$C131,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1)),0))","v":0},{"$f":"IF($F131<>\"Active\",0,IF(COUNTIFS(OverEmp,$C131,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMIFS(OverValue,OverEmp,$C131,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C131,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMIFS(OverValue,OverEmp,$C131,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1)),(($BA131/12*$AA131)+(BB131*IF(1-$BC131=0,0,BD131/(1-$BC131))))-IF($F131=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC131,PayEmp,$C131)))","v":0},{"$f":"IF($F131=\"Terminated\",0,IF($AA131=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C131,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMIFS(OverValue,OverEmp,$C131,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA131)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA131,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131))))))","v":100},{"$f":"IF($F131=\"Terminated\",0,IF($AA131=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C131,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMIFS(OverValue,OverEmp,$C131,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA131)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA131,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131))))))","v":0},{"$f":"IF($F131=\"Terminated\",0,IF($AA131=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C131,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMIFS(OverValue,OverEmp,$C131,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA131)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA131,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131))))))","v":0},{"$f":"IF($F131=\"Terminated\",0,IF($AA131=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C131,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMIFS(OverValue,OverEmp,$C131,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA131)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA131,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131))))))","v":0},100,9900,{"$f":"IF($F131=\"Terminated\",0,IF($AA131=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C131,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMIFS(OverValue,OverEmp,$C131,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA131)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA131,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131)))))))","v":100},{"$f":"IF($F131=\"Terminated\",0,IF($AA131=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C131,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMIFS(OverValue,OverEmp,$C131,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA131)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA131,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131)))))))","v":100},{"$f":"IF($F131=\"Terminated\",0,IF($AA131=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C131,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMIFS(OverValue,OverEmp,$C131,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA131)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA131,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131)))))))","v":0},{"$f":"IF($F131=\"Terminated\",0,IF($AA131=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C131,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMIFS(OverValue,OverEmp,$C131,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA131)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA131,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC131,PayEmp,$C131)))))))","v":0},200,10200,300,{"$f":"IF(OR($B131<=Setup!$E$12,$B131>=Setup!$D$12+1),0,IF($F131<>\"Active\",0,IF($AE131=\"Yes\",$AB131,((YEAR($AC131)*12)+MONTH($AC131))-((YEAR($AD131)*12)+MONTH($AD131)-1))))","v":9},{"$f":"IF(OR($B131<=Setup!$E$12,$B131>=Setup!$D$12+1),0,((YEAR($AC131)*12)+MONTH($AC131))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":9},45255,{"$f":"IF(ISNA(VLOOKUP($C131,EmpAll,COLUMN(Emp!$E$4),0)),$AC131,IF(VLOOKUP($C131,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C131,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C131,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C131,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C131,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A131=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C131,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMIFS(OverValue,OverEmp,$C131,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1)),IF(ISNA(VLOOKUP($C131,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG131,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C131,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C131,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C131,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C131,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C131,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},120000,{"$f":"-IF($F131=\"Terminated\",0,IF($AA131=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C131,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA131*12)+(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB131/3,0))*4)+(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB131/6,0))*2)+(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F131=\"Terminated\",0,IF($AA131=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C131,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA131*12)+(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB131/3,0))*4)+(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB131/6,0))*2)+(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F131=\"Terminated\",0,IF($AA131=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C131,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA131*12)+(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB131/3,0))*4)+(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB131/6,0))*2)+(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F131=\"Terminated\",0,IF($AA131=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C131,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA131*12)+(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB131/3,0))*4)+(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB131/6,0))*2)+(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},120000,120000,{"$f":"-IF($F131=\"Terminated\",0,IF($AA131=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C131,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA131*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F131=\"Terminated\",0,IF($AA131=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C131,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA131*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F131=\"Terminated\",0,IF($AA131=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C131,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA131*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F131=\"Terminated\",0,IF($AA131=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C131,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC131),MONTH($AC131)+1,1),OverEnd,\">=\"&DATE(YEAR($AC131),MONTH($AC131),1))>0,SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA131*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C131)*(PayDate<=$AC131)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA131*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C131,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C131,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,0,{"$f":"IF(ISNUMBER($AL131),($AR131*$AL131)-$AI131-$AK131,MAX(0,IF($AL131=\"B\",IF($AR131<Setup!$C$32,($AR131*Setup!$D$32)-$AI131-$AK131,(($AR131-VLOOKUP($AR131,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR131,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR131,TaxBracket2,1),0,1,1)-$AI131-$AK131),IF($AR131<Setup!$C$21,($AR131*Setup!$D$21)-$AI131-$AK131,(($AR131-VLOOKUP($AR131,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR131,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR131,TaxBracket1,1),0,1,1)-$AI131-$AK131))))","v":0},{"$f":"IF(ISNUMBER($AL131),($AX131*$AL131)-$AI131-$AK131,MAX(0,IF($AL131=\"B\",IF($AX131<Setup!$C$32,($AX131*Setup!$D$32)-$AI131-$AK131,(($AX131-VLOOKUP($AX131,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX131,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX131,TaxBracket2,1),0,1,1)-$AI131-$AK131),IF($AX131<Setup!$C$21,($AX131*Setup!$D$21)-$AI131-$AK131,(($AX131-VLOOKUP($AX131,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX131,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX131,TaxBracket1,1),0,1,1)-$AI131-$AK131))))","v":0},0,1,0,120000]
[{"$f":"IF(ROW($A132)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B132,\"yyyy\")&TEXT($B132,\"mm\")&\"-\"&$C132)","v":"202311-EXS006"},{"$f":"IF(ROW($A132)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A132)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A132)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A132)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45255},{"$f":"IF(ROW($A132)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A132)-ROW($A$6)-IF(ROW($A132)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A132)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS006"},{"$f":"IF(ISNA(VLOOKUP($C132,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C132,EmpAll,COLUMN(Emp!$B$4),0))","v":"Andrews MS"},{"$f":"IF(ISNA(VLOOKUP($C132,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C132,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C132,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C132,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC132),MONTH($AC132)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C132,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC132),MONTH($AC132),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F132<>\"Active\",0,IF(COUNTIFS(OverEmp,$C132,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMIFS(OverValue,OverEmp,$C132,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1)),IF(AND($AC132>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C132)>0),SUMIFS(EmpIncrease,EmpCode,$C132),SUMIFS(EmpSalary,EmpCode,$C132))))","v":10000},{"$f":"IF($F132<>\"Active\",0,IF(COUNTIFS(OverEmp,$C132,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMIFS(OverValue,OverEmp,$C132,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1)),0))","v":0},{"$f":"IF($F132<>\"Active\",0,IF(COUNTIFS(OverEmp,$C132,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMIFS(OverValue,OverEmp,$C132,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1)),IF(MONTH(B132)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C132),0)))","v":0},{"$f":"IF($F132<>\"Active\",0,IF(COUNTIFS(OverEmp,$C132,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMIFS(OverValue,OverEmp,$C132,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1)),0))","v":0},{"$f":"IF($F132<>\"Active\",0,IF(COUNTIFS(OverEmp,$C132,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMIFS(OverValue,OverEmp,$C132,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C132,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMIFS(OverValue,OverEmp,$C132,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1)),(($BA132/12*$AA132)+(BB132*IF(1-$BC132=0,0,BD132/(1-$BC132))))-IF($F132=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC132,PayEmp,$C132)))","v":0},{"$f":"IF($F132=\"Terminated\",0,IF($AA132=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C132,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMIFS(OverValue,OverEmp,$C132,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA132)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA132,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132))))))","v":100},{"$f":"IF($F132=\"Terminated\",0,IF($AA132=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C132,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMIFS(OverValue,OverEmp,$C132,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA132)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA132,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132))))))","v":0},{"$f":"IF($F132=\"Terminated\",0,IF($AA132=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C132,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMIFS(OverValue,OverEmp,$C132,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA132)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA132,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132))))))","v":0},{"$f":"IF($F132=\"Terminated\",0,IF($AA132=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C132,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMIFS(OverValue,OverEmp,$C132,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA132)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA132,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132))))))","v":0},100,9900,{"$f":"IF($F132=\"Terminated\",0,IF($AA132=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C132,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMIFS(OverValue,OverEmp,$C132,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA132)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA132,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132)))))))","v":100},{"$f":"IF($F132=\"Terminated\",0,IF($AA132=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C132,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMIFS(OverValue,OverEmp,$C132,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA132)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA132,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132)))))))","v":100},{"$f":"IF($F132=\"Terminated\",0,IF($AA132=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C132,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMIFS(OverValue,OverEmp,$C132,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA132)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA132,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132)))))))","v":0},{"$f":"IF($F132=\"Terminated\",0,IF($AA132=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C132,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMIFS(OverValue,OverEmp,$C132,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA132)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA132,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC132,PayEmp,$C132)))))))","v":0},200,10200,300,{"$f":"IF(OR($B132<=Setup!$E$12,$B132>=Setup!$D$12+1),0,IF($F132<>\"Active\",0,IF($AE132=\"Yes\",$AB132,((YEAR($AC132)*12)+MONTH($AC132))-((YEAR($AD132)*12)+MONTH($AD132)-1))))","v":9},{"$f":"IF(OR($B132<=Setup!$E$12,$B132>=Setup!$D$12+1),0,((YEAR($AC132)*12)+MONTH($AC132))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":9},45255,{"$f":"IF(ISNA(VLOOKUP($C132,EmpAll,COLUMN(Emp!$E$4),0)),$AC132,IF(VLOOKUP($C132,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C132,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C132,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C132,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C132,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A132=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C132,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMIFS(OverValue,OverEmp,$C132,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1)),IF(ISNA(VLOOKUP($C132,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG132,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C132,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C132,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C132,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C132,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C132,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},120000,{"$f":"-IF($F132=\"Terminated\",0,IF($AA132=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C132,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA132*12)+(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB132/3,0))*4)+(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB132/6,0))*2)+(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F132=\"Terminated\",0,IF($AA132=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C132,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA132*12)+(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB132/3,0))*4)+(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB132/6,0))*2)+(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F132=\"Terminated\",0,IF($AA132=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C132,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA132*12)+(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB132/3,0))*4)+(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB132/6,0))*2)+(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F132=\"Terminated\",0,IF($AA132=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C132,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA132*12)+(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB132/3,0))*4)+(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB132/6,0))*2)+(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},120000,120000,{"$f":"-IF($F132=\"Terminated\",0,IF($AA132=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C132,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA132*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F132=\"Terminated\",0,IF($AA132=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C132,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA132*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F132=\"Terminated\",0,IF($AA132=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C132,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA132*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F132=\"Terminated\",0,IF($AA132=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C132,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC132),MONTH($AC132)+1,1),OverEnd,\">=\"&DATE(YEAR($AC132),MONTH($AC132),1))>0,SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA132*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C132)*(PayDate<=$AC132)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA132*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C132,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C132,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,0,{"$f":"IF(ISNUMBER($AL132),($AR132*$AL132)-$AI132-$AK132,MAX(0,IF($AL132=\"B\",IF($AR132<Setup!$C$32,($AR132*Setup!$D$32)-$AI132-$AK132,(($AR132-VLOOKUP($AR132,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR132,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR132,TaxBracket2,1),0,1,1)-$AI132-$AK132),IF($AR132<Setup!$C$21,($AR132*Setup!$D$21)-$AI132-$AK132,(($AR132-VLOOKUP($AR132,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR132,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR132,TaxBracket1,1),0,1,1)-$AI132-$AK132))))","v":0},{"$f":"IF(ISNUMBER($AL132),($AX132*$AL132)-$AI132-$AK132,MAX(0,IF($AL132=\"B\",IF($AX132<Setup!$C$32,($AX132*Setup!$D$32)-$AI132-$AK132,(($AX132-VLOOKUP($AX132,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX132,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX132,TaxBracket2,1),0,1,1)-$AI132-$AK132),IF($AX132<Setup!$C$21,($AX132*Setup!$D$21)-$AI132-$AK132,(($AX132-VLOOKUP($AX132,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX132,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX132,TaxBracket1,1),0,1,1)-$AI132-$AK132))))","v":0},0,1,0,120000]
[{"$f":"IF(ROW($A133)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B133,\"yyyy\")&TEXT($B133,\"mm\")&\"-\"&$C133)","v":"202311-EXS007"},{"$f":"IF(ROW($A133)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A133)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A133)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A133)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45255},{"$f":"IF(ROW($A133)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A133)-ROW($A$6)-IF(ROW($A133)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A133)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS007"},{"$f":"IF(ISNA(VLOOKUP($C133,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C133,EmpAll,COLUMN(Emp!$B$4),0))","v":"Phillips KE"},{"$f":"IF(ISNA(VLOOKUP($C133,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C133,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C133,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C133,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC133),MONTH($AC133)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C133,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC133),MONTH($AC133),0)),\"Terminated\",\"Active\")))","v":"Terminated"},{"$f":"IF($F133<>\"Active\",0,IF(COUNTIFS(OverEmp,$C133,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMIFS(OverValue,OverEmp,$C133,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1)),IF(AND($AC133>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C133)>0),SUMIFS(EmpIncrease,EmpCode,$C133),SUMIFS(EmpSalary,EmpCode,$C133))))","v":0},{"$f":"IF($F133<>\"Active\",0,IF(COUNTIFS(OverEmp,$C133,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMIFS(OverValue,OverEmp,$C133,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1)),0))","v":0},{"$f":"IF($F133<>\"Active\",0,IF(COUNTIFS(OverEmp,$C133,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMIFS(OverValue,OverEmp,$C133,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1)),IF(MONTH(B133)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C133),0)))","v":0},{"$f":"IF($F133<>\"Active\",0,IF(COUNTIFS(OverEmp,$C133,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMIFS(OverValue,OverEmp,$C133,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1)),0))","v":0},{"$f":"IF($F133<>\"Active\",0,IF(COUNTIFS(OverEmp,$C133,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMIFS(OverValue,OverEmp,$C133,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C133,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMIFS(OverValue,OverEmp,$C133,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1)),(($BA133/12*$AA133)+(BB133*IF(1-$BC133=0,0,BD133/(1-$BC133))))-IF($F133=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC133,PayEmp,$C133)))","v":0},{"$f":"IF($F133=\"Terminated\",0,IF($AA133=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C133,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMIFS(OverValue,OverEmp,$C133,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA133)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA133,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133))))))","v":0},{"$f":"IF($F133=\"Terminated\",0,IF($AA133=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C133,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMIFS(OverValue,OverEmp,$C133,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA133)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA133,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133))))))","v":0},{"$f":"IF($F133=\"Terminated\",0,IF($AA133=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C133,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMIFS(OverValue,OverEmp,$C133,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA133)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA133,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133))))))","v":0},{"$f":"IF($F133=\"Terminated\",0,IF($AA133=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C133,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMIFS(OverValue,OverEmp,$C133,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA133)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA133,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133))))))","v":0},0,0,{"$f":"IF($F133=\"Terminated\",0,IF($AA133=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C133,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMIFS(OverValue,OverEmp,$C133,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA133)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA133,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133)))))))","v":0},{"$f":"IF($F133=\"Terminated\",0,IF($AA133=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C133,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMIFS(OverValue,OverEmp,$C133,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA133)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA133,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133)))))))","v":0},{"$f":"IF($F133=\"Terminated\",0,IF($AA133=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C133,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMIFS(OverValue,OverEmp,$C133,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA133)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA133,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133)))))))","v":0},{"$f":"IF($F133=\"Terminated\",0,IF($AA133=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C133,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMIFS(OverValue,OverEmp,$C133,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA133)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA133,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC133,PayEmp,$C133)))))))","v":0},{"$f":"SUM(OFFSET($T133,0,0,1,COLUMN($X$6)-COLUMN($T$7)))","v":0},0,{"$f":"ROUND(SUM(R133,X133),2)","v":0},{"$f":"IF(OR($B133<=Setup!$E$12,$B133>=Setup!$D$12+1),0,IF($F133<>\"Active\",0,IF($AE133=\"Yes\",$AB133,((YEAR($AC133)*12)+MONTH($AC133))-((YEAR($AD133)*12)+MONTH($AD133)-1))))","v":0},{"$f":"IF(OR($B133<=Setup!$E$12,$B133>=Setup!$D$12+1),0,((YEAR($AC133)*12)+MONTH($AC133))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":9},{"$f":"DATE(YEAR($B133),MONTH($B133),DAY($B133))","v":45255},{"$f":"IF(ISNA(VLOOKUP($C133,EmpAll,COLUMN(Emp!$E$4),0)),$AC133,IF(VLOOKUP($C133,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C133,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C133,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C133,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C133,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A133=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C133,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMIFS(OverValue,OverEmp,$C133,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1)),IF(ISNA(VLOOKUP($C133,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG133,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C133,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C133,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($AJ133,RebateList,4,0)),VLOOKUP(\"A\",RebateList,3,0),VLOOKUP($AJ133,RebateList,4,0))","v":17235},{"$f":"IF(ISNA(VLOOKUP($C133,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C133,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C133,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F133=\"Terminated\",0,IF($AA133=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C133,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA133*12)+(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB133/3,0))*4)+(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB133/6,0))*2)+(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F133=\"Terminated\",0,IF($AA133=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C133,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA133*12)+(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB133/3,0))*4)+(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB133/6,0))*2)+(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F133=\"Terminated\",0,IF($AA133=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C133,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA133*12)+(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB133/3,0))*4)+(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB133/6,0))*2)+(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F133=\"Terminated\",0,IF($AA133=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C133,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA133*12)+(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB133/3,0))*4)+(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB133/6,0))*2)+(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},{"$f":"$AM133+SUM(OFFSET($AM133,0,1,1,COLUMN($AR$2)-COLUMN($AM$2)-1))","v":0},0,{"$f":"-IF($F133=\"Terminated\",0,IF($AA133=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C133,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA133*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F133=\"Terminated\",0,IF($AA133=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C133,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA133*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F133=\"Terminated\",0,IF($AA133=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C133,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA133*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F133=\"Terminated\",0,IF($AA133=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C133,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC133),MONTH($AC133)+1,1),OverEnd,\">=\"&DATE(YEAR($AC133),MONTH($AC133),1))>0,SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA133*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C133)*(PayDate<=$AC133)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA133*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C133,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C133,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL133),($AR133*$AL133)-$AI133-$AK133,MAX(0,IF($AL133=\"B\",IF($AR133<Setup!$C$32,($AR133*Setup!$D$32)-$AI133-$AK133,(($AR133-VLOOKUP($AR133,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR133,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR133,TaxBracket2,1),0,1,1)-$AI133-$AK133),IF($AR133<Setup!$C$21,($AR133*Setup!$D$21)-$AI133-$AK133,(($AR133-VLOOKUP($AR133,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR133,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR133,TaxBracket1,1),0,1,1)-$AI133-$AK133))))","v":0},{"$f":"IF(ISNUMBER($AL133),($AX133*$AL133)-$AI133-$AK133,MAX(0,IF($AL133=\"B\",IF($AX133<Setup!$C$32,($AX133*Setup!$D$32)-$AI133-$AK133,(($AX133-VLOOKUP($AX133,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX133,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX133,TaxBracket2,1),0,1,1)-$AI133-$AK133),IF($AX133<Setup!$C$21,($AX133*Setup!$D$21)-$AI133-$AK133,(($AX133-VLOOKUP($AX133,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX133,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX133,TaxBracket1,1),0,1,1)-$AI133-$AK133))))","v":0},{"$f":"AZ133-BA133","v":0},0,0,0]
[{"$f":"IF(ROW($A134)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B134,\"yyyy\")&TEXT($B134,\"mm\")&\"-\"&$C134)","v":"202311-EXS008"},{"$f":"IF(ROW($A134)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A134)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A134)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A134)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45255},{"$f":"IF(ROW($A134)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A134)-ROW($A$6)-IF(ROW($A134)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A134)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS008"},{"$f":"IF(ISNA(VLOOKUP($C134,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C134,EmpAll,COLUMN(Emp!$B$4),0))","v":"Matthews B"},{"$f":"IF(ISNA(VLOOKUP($C134,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C134,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C134,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C134,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC134),MONTH($AC134)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C134,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC134),MONTH($AC134),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F134<>\"Active\",0,IF(COUNTIFS(OverEmp,$C134,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMIFS(OverValue,OverEmp,$C134,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1)),IF(AND($AC134>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C134)>0),SUMIFS(EmpIncrease,EmpCode,$C134),SUMIFS(EmpSalary,EmpCode,$C134))))","v":9000},{"$f":"IF($F134<>\"Active\",0,IF(COUNTIFS(OverEmp,$C134,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMIFS(OverValue,OverEmp,$C134,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1)),0))","v":0},{"$f":"IF($F134<>\"Active\",0,IF(COUNTIFS(OverEmp,$C134,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMIFS(OverValue,OverEmp,$C134,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1)),IF(MONTH(B134)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C134),0)))","v":0},{"$f":"IF($F134<>\"Active\",0,IF(COUNTIFS(OverEmp,$C134,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMIFS(OverValue,OverEmp,$C134,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1)),0))","v":0},{"$f":"IF($F134<>\"Active\",0,IF(COUNTIFS(OverEmp,$C134,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMIFS(OverValue,OverEmp,$C134,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C134,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMIFS(OverValue,OverEmp,$C134,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1)),(($BA134/12*$AA134)+(BB134*IF(1-$BC134=0,0,BD134/(1-$BC134))))-IF($F134=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC134,PayEmp,$C134)))","v":183.75},{"$f":"IF($F134=\"Terminated\",0,IF($AA134=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C134,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMIFS(OverValue,OverEmp,$C134,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA134)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA134,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134))))))","v":90},{"$f":"IF($F134=\"Terminated\",0,IF($AA134=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C134,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMIFS(OverValue,OverEmp,$C134,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA134)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA134,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134))))))","v":0},{"$f":"IF($F134=\"Terminated\",0,IF($AA134=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C134,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMIFS(OverValue,OverEmp,$C134,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA134)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA134,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134))))))","v":0},{"$f":"IF($F134=\"Terminated\",0,IF($AA134=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C134,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMIFS(OverValue,OverEmp,$C134,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA134)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA134,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134))))))","v":0},273.75,8726.25,{"$f":"IF($F134=\"Terminated\",0,IF($AA134=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C134,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMIFS(OverValue,OverEmp,$C134,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA134)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA134,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134)))))))","v":90},{"$f":"IF($F134=\"Terminated\",0,IF($AA134=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C134,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMIFS(OverValue,OverEmp,$C134,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA134)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA134,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134)))))))","v":90},{"$f":"IF($F134=\"Terminated\",0,IF($AA134=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C134,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMIFS(OverValue,OverEmp,$C134,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA134)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA134,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134)))))))","v":0},{"$f":"IF($F134=\"Terminated\",0,IF($AA134=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C134,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMIFS(OverValue,OverEmp,$C134,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA134)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA134,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC134,PayEmp,$C134)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B134<=Setup!$E$12,$B134>=Setup!$D$12+1),0,IF($F134<>\"Active\",0,IF($AE134=\"Yes\",$AB134,((YEAR($AC134)*12)+MONTH($AC134))-((YEAR($AD134)*12)+MONTH($AD134)-1))))","v":9},{"$f":"IF(OR($B134<=Setup!$E$12,$B134>=Setup!$D$12+1),0,((YEAR($AC134)*12)+MONTH($AC134))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":9},45255,{"$f":"IF(ISNA(VLOOKUP($C134,EmpAll,COLUMN(Emp!$E$4),0)),$AC134,IF(VLOOKUP($C134,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C134,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C134,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C134,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C134,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A134=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C134,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMIFS(OverValue,OverEmp,$C134,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1)),IF(ISNA(VLOOKUP($C134,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG134,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C134,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C134,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C134,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C134,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C134,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F134=\"Terminated\",0,IF($AA134=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C134,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA134*12)+(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB134/3,0))*4)+(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB134/6,0))*2)+(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F134=\"Terminated\",0,IF($AA134=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C134,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA134*12)+(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB134/3,0))*4)+(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB134/6,0))*2)+(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F134=\"Terminated\",0,IF($AA134=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C134,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA134*12)+(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB134/3,0))*4)+(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB134/6,0))*2)+(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F134=\"Terminated\",0,IF($AA134=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C134,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA134*12)+(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB134/3,0))*4)+(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB134/6,0))*2)+(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F134=\"Terminated\",0,IF($AA134=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C134,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA134*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F134=\"Terminated\",0,IF($AA134=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C134,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA134*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F134=\"Terminated\",0,IF($AA134=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C134,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA134*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F134=\"Terminated\",0,IF($AA134=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C134,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC134),MONTH($AC134)+1,1),OverEnd,\">=\"&DATE(YEAR($AC134),MONTH($AC134),1))>0,SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA134*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C134)*(PayDate<=$AC134)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA134*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C134,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C134,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL134),($AR134*$AL134)-$AI134-$AK134,MAX(0,IF($AL134=\"B\",IF($AR134<Setup!$C$32,($AR134*Setup!$D$32)-$AI134-$AK134,(($AR134-VLOOKUP($AR134,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR134,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR134,TaxBracket2,1),0,1,1)-$AI134-$AK134),IF($AR134<Setup!$C$21,($AR134*Setup!$D$21)-$AI134-$AK134,(($AR134-VLOOKUP($AR134,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR134,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR134,TaxBracket1,1),0,1,1)-$AI134-$AK134))))","v":2205},{"$f":"IF(ISNUMBER($AL134),($AX134*$AL134)-$AI134-$AK134,MAX(0,IF($AL134=\"B\",IF($AX134<Setup!$C$32,($AX134*Setup!$D$32)-$AI134-$AK134,(($AX134-VLOOKUP($AX134,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX134,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX134,TaxBracket2,1),0,1,1)-$AI134-$AK134),IF($AX134<Setup!$C$21,($AX134*Setup!$D$21)-$AI134-$AK134,(($AX134-VLOOKUP($AX134,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX134,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX134,TaxBracket1,1),0,1,1)-$AI134-$AK134))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A135)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B135,\"yyyy\")&TEXT($B135,\"mm\")&\"-\"&$C135)","v":"202311-EXS009"},{"$f":"IF(ROW($A135)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A135)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A135)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A135)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45255},{"$f":"IF(ROW($A135)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A135)-ROW($A$6)-IF(ROW($A135)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A135)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS009"},{"$f":"IF(ISNA(VLOOKUP($C135,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C135,EmpAll,COLUMN(Emp!$B$4),0))","v":"Brown JT"},{"$f":"IF(ISNA(VLOOKUP($C135,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C135,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C135,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C135,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC135),MONTH($AC135)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C135,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC135),MONTH($AC135),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F135<>\"Active\",0,IF(COUNTIFS(OverEmp,$C135,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMIFS(OverValue,OverEmp,$C135,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1)),IF(AND($AC135>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C135)>0),SUMIFS(EmpIncrease,EmpCode,$C135),SUMIFS(EmpSalary,EmpCode,$C135))))","v":9000},{"$f":"IF($F135<>\"Active\",0,IF(COUNTIFS(OverEmp,$C135,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMIFS(OverValue,OverEmp,$C135,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1)),0))","v":0},{"$f":"IF($F135<>\"Active\",0,IF(COUNTIFS(OverEmp,$C135,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMIFS(OverValue,OverEmp,$C135,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1)),IF(MONTH(B135)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C135),0)))","v":0},{"$f":"IF($F135<>\"Active\",0,IF(COUNTIFS(OverEmp,$C135,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMIFS(OverValue,OverEmp,$C135,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1)),0))","v":0},{"$f":"IF($F135<>\"Active\",0,IF(COUNTIFS(OverEmp,$C135,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMIFS(OverValue,OverEmp,$C135,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1)),0))","v":0},{"$f":"IF($AA135=0,0,SUM(OFFSET($G135,0,0,1,COLUMN($L$6)-COLUMN($G$6))))","v":9000},{"$f":"IF(COUNTIFS(OverEmp,$C135,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMIFS(OverValue,OverEmp,$C135,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1)),(($BA135/12*$AA135)+(BB135*IF(1-$BC135=0,0,BD135/(1-$BC135))))-IF($F135=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC135,PayEmp,$C135)))","v":183.75},{"$f":"IF($F135=\"Terminated\",0,IF($AA135=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C135,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMIFS(OverValue,OverEmp,$C135,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA135)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA135,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135))))))","v":90},{"$f":"IF($F135=\"Terminated\",0,IF($AA135=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C135,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMIFS(OverValue,OverEmp,$C135,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA135)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA135,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135))))))","v":0},{"$f":"IF($F135=\"Terminated\",0,IF($AA135=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C135,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMIFS(OverValue,OverEmp,$C135,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA135)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA135,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135))))))","v":0},{"$f":"IF($F135=\"Terminated\",0,IF($AA135=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C135,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMIFS(OverValue,OverEmp,$C135,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA135)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA135,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135))))))","v":0},{"$f":"SUM(OFFSET(M135,0,0,1,COLUMN($R$6)-COLUMN($M$6)))","v":273.75},{"$f":"ROUND(SUM(L135,-R135),2)","v":8726.25},{"$f":"IF($F135=\"Terminated\",0,IF($AA135=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C135,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMIFS(OverValue,OverEmp,$C135,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA135)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA135,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135)))))))","v":90},{"$f":"IF($F135=\"Terminated\",0,IF($AA135=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C135,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMIFS(OverValue,OverEmp,$C135,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA135)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA135,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135)))))))","v":90},{"$f":"IF($F135=\"Terminated\",0,IF($AA135=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C135,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMIFS(OverValue,OverEmp,$C135,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA135)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA135,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135)))))))","v":0},{"$f":"IF($F135=\"Terminated\",0,IF($AA135=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C135,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMIFS(OverValue,OverEmp,$C135,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA135)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA135,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC135,PayEmp,$C135)))))))","v":0},180,{"$f":"L135+X135","v":9180},453.75,{"$f":"IF(OR($B135<=Setup!$E$12,$B135>=Setup!$D$12+1),0,IF($F135<>\"Active\",0,IF($AE135=\"Yes\",$AB135,((YEAR($AC135)*12)+MONTH($AC135))-((YEAR($AD135)*12)+MONTH($AD135)-1))))","v":9},{"$f":"IF(OR($B135<=Setup!$E$12,$B135>=Setup!$D$12+1),0,((YEAR($AC135)*12)+MONTH($AC135))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":9},45255,{"$f":"IF(ISNA(VLOOKUP($C135,EmpAll,COLUMN(Emp!$E$4),0)),$AC135,IF(VLOOKUP($C135,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C135,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C135,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C135,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C135,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A135=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C135,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMIFS(OverValue,OverEmp,$C135,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1)),IF(ISNA(VLOOKUP($C135,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG135,MedList,COLUMN(Setup!$C$49),1)","v":0},{"$f":"SUMIFS(PayMedDeduct,PayDate,\"<\"&$AC135,PayEmp,$C135)+$AH135+($AH135*(12-$AA135))","v":0},{"$f":"IF(ISNA(VLOOKUP($C135,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C135,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C135,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C135,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C135,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},{"$f":"IF($AA135=0,0,((SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(PayEarnType=\"Monthly\")*(PayEarnTax)*(PayEarnValues))/$AA135*12)+(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(PayEarnType=\"Quarterly\")*(PayEarnTax)*(PayEarnValues))/MAX(1,ROUNDDOWN($AB135/3,0))*4)+(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(PayEarnType=\"Bi-Annual\")*(PayEarnTax)*(PayEarnValues))/MAX(1,ROUNDDOWN($AB135/6,0))*2)+(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(PayEarnType=\"Annual\")*(PayEarnTax)*(PayEarnValues)))))","v":108000},{"$f":"-IF($F135=\"Terminated\",0,IF($AA135=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C135,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA135*12)+(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB135/3,0))*4)+(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB135/6,0))*2)+(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F135=\"Terminated\",0,IF($AA135=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C135,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA135*12)+(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB135/3,0))*4)+(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB135/6,0))*2)+(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F135=\"Terminated\",0,IF($AA135=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C135,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA135*12)+(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB135/3,0))*4)+(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB135/6,0))*2)+(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F135=\"Terminated\",0,IF($AA135=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C135,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA135*12)+(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB135/3,0))*4)+(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB135/6,0))*2)+(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,{"$f":"IF($AA135=0,0,(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(PayEarnType=\"Monthly\")*(PayEarnTax)*(PayEarnValues))/$AA135*12))","v":108000},{"$f":"-IF($F135=\"Terminated\",0,IF($AA135=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C135,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA135*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F135=\"Terminated\",0,IF($AA135=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C135,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA135*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F135=\"Terminated\",0,IF($AA135=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C135,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA135*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F135=\"Terminated\",0,IF($AA135=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C135,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC135),MONTH($AC135)+1,1),OverEnd,\">=\"&DATE(YEAR($AC135),MONTH($AC135),1))>0,SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA135*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA135*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C135,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C135,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},{"$f":"$AS135+SUM(OFFSET($AT135,0,0,1,COLUMN($AX$2)-COLUMN($AT$2)))","v":108000},{"$f":"AR135-AX135","v":0},{"$f":"IF(ISNUMBER($AL135),($AR135*$AL135)-$AI135-$AK135,MAX(0,IF($AL135=\"B\",IF($AR135<Setup!$C$32,($AR135*Setup!$D$32)-$AI135-$AK135,(($AR135-VLOOKUP($AR135,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR135,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR135,TaxBracket2,1),0,1,1)-$AI135-$AK135),IF($AR135<Setup!$C$21,($AR135*Setup!$D$21)-$AI135-$AK135,(($AR135-VLOOKUP($AR135,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR135,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR135,TaxBracket1,1),0,1,1)-$AI135-$AK135))))","v":2205},{"$f":"IF(ISNUMBER($AL135),($AX135*$AL135)-$AI135-$AK135,MAX(0,IF($AL135=\"B\",IF($AX135<Setup!$C$32,($AX135*Setup!$D$32)-$AI135-$AK135,(($AX135-VLOOKUP($AX135,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX135,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX135,TaxBracket2,1),0,1,1)-$AI135-$AK135),IF($AX135<Setup!$C$21,($AX135*Setup!$D$21)-$AI135-$AK135,(($AX135-VLOOKUP($AX135,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX135,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX135,TaxBracket1,1),0,1,1)-$AI135-$AK135))))","v":2205},0,{"$f":"IF($AA135=0,0,IF($BE135=0,0,(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA135*12)/$BE135))","v":1},{"$f":"IF($BE135=0,0,(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnType=\"Annual\")*(PayEarnValues)))/$BE135)","v":0},{"$f":"IF($AA135=0,0,((SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA135*12)+(SUMPRODUCT((PayEmp=$C135)*(PayDate<=$AC135)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnType=\"Annual\")*(PayEarnValues)))))","v":108000}]
[{"$f":"IF(ROW($A136)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B136,\"yyyy\")&TEXT($B136,\"mm\")&\"-\"&$C136)","v":"202311-EXS010"},{"$f":"IF(ROW($A136)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A136)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A136)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A136)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45255},{"$f":"IF(ROW($A136)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A136)-ROW($A$6)-IF(ROW($A136)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A136)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS010"},{"$f":"IF(ISNA(VLOOKUP($C136,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C136,EmpAll,COLUMN(Emp!$B$4),0))","v":"Lewis I"},{"$f":"IF(ISNA(VLOOKUP($C136,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C136,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C136,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C136,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC136),MONTH($AC136)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C136,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC136),MONTH($AC136),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F136<>\"Active\",0,IF(COUNTIFS(OverEmp,$C136,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMIFS(OverValue,OverEmp,$C136,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1)),IF(AND($AC136>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C136)>0),SUMIFS(EmpIncrease,EmpCode,$C136),SUMIFS(EmpSalary,EmpCode,$C136))))","v":9000},{"$f":"IF($F136<>\"Active\",0,IF(COUNTIFS(OverEmp,$C136,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMIFS(OverValue,OverEmp,$C136,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1)),0))","v":0},{"$f":"IF($F136<>\"Active\",0,IF(COUNTIFS(OverEmp,$C136,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMIFS(OverValue,OverEmp,$C136,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1)),IF(MONTH(B136)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C136),0)))","v":0},{"$f":"IF($F136<>\"Active\",0,IF(COUNTIFS(OverEmp,$C136,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMIFS(OverValue,OverEmp,$C136,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1)),0))","v":0},{"$f":"IF($F136<>\"Active\",0,IF(COUNTIFS(OverEmp,$C136,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMIFS(OverValue,OverEmp,$C136,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1)),0))","v":0},9000,{"$f":"IF(COUNTIFS(OverEmp,$C136,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMIFS(OverValue,OverEmp,$C136,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1)),(($BA136/12*$AA136)+(BB136*IF(1-$BC136=0,0,BD136/(1-$BC136))))-IF($F136=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC136,PayEmp,$C136)))","v":183.75},{"$f":"IF($F136=\"Terminated\",0,IF($AA136=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C136,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMIFS(OverValue,OverEmp,$C136,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA136)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA136,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136))))))","v":90},{"$f":"IF($F136=\"Terminated\",0,IF($AA136=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C136,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMIFS(OverValue,OverEmp,$C136,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA136)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA136,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136))))))","v":0},{"$f":"IF($F136=\"Terminated\",0,IF($AA136=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C136,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMIFS(OverValue,OverEmp,$C136,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA136)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA136,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136))))))","v":0},{"$f":"IF($F136=\"Terminated\",0,IF($AA136=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C136,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMIFS(OverValue,OverEmp,$C136,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA136)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA136,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136))))))","v":0},273.75,8726.25,{"$f":"IF($F136=\"Terminated\",0,IF($AA136=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C136,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMIFS(OverValue,OverEmp,$C136,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA136)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA136,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136)))))))","v":90},{"$f":"IF($F136=\"Terminated\",0,IF($AA136=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C136,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMIFS(OverValue,OverEmp,$C136,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA136)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA136,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136)))))))","v":90},{"$f":"IF($F136=\"Terminated\",0,IF($AA136=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C136,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMIFS(OverValue,OverEmp,$C136,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA136)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA136,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136)))))))","v":0},{"$f":"IF($F136=\"Terminated\",0,IF($AA136=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C136,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMIFS(OverValue,OverEmp,$C136,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA136)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA136,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC136,PayEmp,$C136)))))))","v":0},180,9180,453.75,{"$f":"IF(OR($B136<=Setup!$E$12,$B136>=Setup!$D$12+1),0,IF($F136<>\"Active\",0,IF($AE136=\"Yes\",$AB136,((YEAR($AC136)*12)+MONTH($AC136))-((YEAR($AD136)*12)+MONTH($AD136)-1))))","v":9},{"$f":"IF(OR($B136<=Setup!$E$12,$B136>=Setup!$D$12+1),0,((YEAR($AC136)*12)+MONTH($AC136))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":9},45255,{"$f":"IF(ISNA(VLOOKUP($C136,EmpAll,COLUMN(Emp!$E$4),0)),$AC136,IF(VLOOKUP($C136,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C136,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C136,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C136,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C136,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A136=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C136,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMIFS(OverValue,OverEmp,$C136,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1)),IF(ISNA(VLOOKUP($C136,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG136,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C136,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C136,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C136,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C136,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C136,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},108000,{"$f":"-IF($F136=\"Terminated\",0,IF($AA136=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C136,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA136*12)+(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB136/3,0))*4)+(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB136/6,0))*2)+(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F136=\"Terminated\",0,IF($AA136=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C136,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA136*12)+(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB136/3,0))*4)+(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB136/6,0))*2)+(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F136=\"Terminated\",0,IF($AA136=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C136,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA136*12)+(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB136/3,0))*4)+(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB136/6,0))*2)+(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F136=\"Terminated\",0,IF($AA136=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C136,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA136*12)+(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB136/3,0))*4)+(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB136/6,0))*2)+(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},108000,108000,{"$f":"-IF($F136=\"Terminated\",0,IF($AA136=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C136,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA136*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F136=\"Terminated\",0,IF($AA136=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C136,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA136*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F136=\"Terminated\",0,IF($AA136=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C136,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA136*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F136=\"Terminated\",0,IF($AA136=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C136,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC136),MONTH($AC136)+1,1),OverEnd,\">=\"&DATE(YEAR($AC136),MONTH($AC136),1))>0,SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA136*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C136)*(PayDate<=$AC136)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA136*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C136,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C136,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,0,{"$f":"IF(ISNUMBER($AL136),($AR136*$AL136)-$AI136-$AK136,MAX(0,IF($AL136=\"B\",IF($AR136<Setup!$C$32,($AR136*Setup!$D$32)-$AI136-$AK136,(($AR136-VLOOKUP($AR136,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR136,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR136,TaxBracket2,1),0,1,1)-$AI136-$AK136),IF($AR136<Setup!$C$21,($AR136*Setup!$D$21)-$AI136-$AK136,(($AR136-VLOOKUP($AR136,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR136,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR136,TaxBracket1,1),0,1,1)-$AI136-$AK136))))","v":2205},{"$f":"IF(ISNUMBER($AL136),($AX136*$AL136)-$AI136-$AK136,MAX(0,IF($AL136=\"B\",IF($AX136<Setup!$C$32,($AX136*Setup!$D$32)-$AI136-$AK136,(($AX136-VLOOKUP($AX136,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX136,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX136,TaxBracket2,1),0,1,1)-$AI136-$AK136),IF($AX136<Setup!$C$21,($AX136*Setup!$D$21)-$AI136-$AK136,(($AX136-VLOOKUP($AX136,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX136,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX136,TaxBracket1,1),0,1,1)-$AI136-$AK136))))","v":2205},0,1,0,108000]
[{"$f":"IF(ROW($A137)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B137,\"yyyy\")&TEXT($B137,\"mm\")&\"-\"&$C137)","v":"202311-EXS011"},{"$f":"IF(ROW($A137)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A137)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A137)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A137)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45255},{"$f":"IF(ROW($A137)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A137)-ROW($A$6)-IF(ROW($A137)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A137)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS011"},{"$f":"IF(ISNA(VLOOKUP($C137,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C137,EmpAll,COLUMN(Emp!$B$4),0))","v":"Newport GD"},{"$f":"IF(ISNA(VLOOKUP($C137,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C137,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C137,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C137,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC137),MONTH($AC137)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C137,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC137),MONTH($AC137),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F137<>\"Active\",0,IF(COUNTIFS(OverEmp,$C137,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMIFS(OverValue,OverEmp,$C137,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1)),IF(AND($AC137>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C137)>0),SUMIFS(EmpIncrease,EmpCode,$C137),SUMIFS(EmpSalary,EmpCode,$C137))))","v":5000},{"$f":"IF($F137<>\"Active\",0,IF(COUNTIFS(OverEmp,$C137,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMIFS(OverValue,OverEmp,$C137,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1)),0))","v":0},{"$f":"IF($F137<>\"Active\",0,IF(COUNTIFS(OverEmp,$C137,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMIFS(OverValue,OverEmp,$C137,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1)),IF(MONTH(B137)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C137),0)))","v":0},{"$f":"IF($F137<>\"Active\",0,IF(COUNTIFS(OverEmp,$C137,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMIFS(OverValue,OverEmp,$C137,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1)),0))","v":0},{"$f":"IF($F137<>\"Active\",0,IF(COUNTIFS(OverEmp,$C137,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMIFS(OverValue,OverEmp,$C137,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C137,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMIFS(OverValue,OverEmp,$C137,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1)),(($BA137/12*$AA137)+(BB137*IF(1-$BC137=0,0,BD137/(1-$BC137))))-IF($F137=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC137,PayEmp,$C137)))","v":0},{"$f":"IF($F137=\"Terminated\",0,IF($AA137=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C137,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMIFS(OverValue,OverEmp,$C137,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA137)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA137,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137))))))","v":50},{"$f":"IF($F137=\"Terminated\",0,IF($AA137=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C137,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMIFS(OverValue,OverEmp,$C137,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA137)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA137,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137))))))","v":0},{"$f":"IF($F137=\"Terminated\",0,IF($AA137=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C137,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMIFS(OverValue,OverEmp,$C137,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA137)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA137,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137))))))","v":0},{"$f":"IF($F137=\"Terminated\",0,IF($AA137=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C137,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMIFS(OverValue,OverEmp,$C137,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA137)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA137,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137))))))","v":0},50,4950,{"$f":"IF($F137=\"Terminated\",0,IF($AA137=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C137,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMIFS(OverValue,OverEmp,$C137,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA137)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA137,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137)))))))","v":50},{"$f":"IF($F137=\"Terminated\",0,IF($AA137=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C137,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMIFS(OverValue,OverEmp,$C137,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA137)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA137,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137)))))))","v":50},{"$f":"IF($F137=\"Terminated\",0,IF($AA137=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C137,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMIFS(OverValue,OverEmp,$C137,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA137)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA137,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137)))))))","v":0},{"$f":"IF($F137=\"Terminated\",0,IF($AA137=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C137,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMIFS(OverValue,OverEmp,$C137,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA137)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA137,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC137,PayEmp,$C137)))))))","v":0},100,5100,150,{"$f":"IF(OR($B137<=Setup!$E$12,$B137>=Setup!$D$12+1),0,IF($F137<>\"Active\",0,IF($AE137=\"Yes\",$AB137,((YEAR($AC137)*12)+MONTH($AC137))-((YEAR($AD137)*12)+MONTH($AD137)-1))))","v":9},{"$f":"IF(OR($B137<=Setup!$E$12,$B137>=Setup!$D$12+1),0,((YEAR($AC137)*12)+MONTH($AC137))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":9},45255,{"$f":"IF(ISNA(VLOOKUP($C137,EmpAll,COLUMN(Emp!$E$4),0)),$AC137,IF(VLOOKUP($C137,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C137,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C137,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C137,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C137,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A137=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C137,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMIFS(OverValue,OverEmp,$C137,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1)),IF(ISNA(VLOOKUP($C137,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG137,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C137,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C137,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C137,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C137,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C137,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F137=\"Terminated\",0,IF($AA137=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C137,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA137*12)+(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB137/3,0))*4)+(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB137/6,0))*2)+(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F137=\"Terminated\",0,IF($AA137=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C137,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA137*12)+(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB137/3,0))*4)+(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB137/6,0))*2)+(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F137=\"Terminated\",0,IF($AA137=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C137,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA137*12)+(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB137/3,0))*4)+(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB137/6,0))*2)+(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F137=\"Terminated\",0,IF($AA137=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C137,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA137*12)+(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB137/3,0))*4)+(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB137/6,0))*2)+(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F137=\"Terminated\",0,IF($AA137=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C137,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA137*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F137=\"Terminated\",0,IF($AA137=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C137,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA137*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F137=\"Terminated\",0,IF($AA137=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C137,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA137*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F137=\"Terminated\",0,IF($AA137=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C137,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC137),MONTH($AC137)+1,1),OverEnd,\">=\"&DATE(YEAR($AC137),MONTH($AC137),1))>0,SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA137*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C137)*(PayDate<=$AC137)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA137*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C137,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C137,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL137),($AR137*$AL137)-$AI137-$AK137,MAX(0,IF($AL137=\"B\",IF($AR137<Setup!$C$32,($AR137*Setup!$D$32)-$AI137-$AK137,(($AR137-VLOOKUP($AR137,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR137,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR137,TaxBracket2,1),0,1,1)-$AI137-$AK137),IF($AR137<Setup!$C$21,($AR137*Setup!$D$21)-$AI137-$AK137,(($AR137-VLOOKUP($AR137,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR137,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR137,TaxBracket1,1),0,1,1)-$AI137-$AK137))))","v":0},{"$f":"IF(ISNUMBER($AL137),($AX137*$AL137)-$AI137-$AK137,MAX(0,IF($AL137=\"B\",IF($AX137<Setup!$C$32,($AX137*Setup!$D$32)-$AI137-$AK137,(($AX137-VLOOKUP($AX137,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX137,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX137,TaxBracket2,1),0,1,1)-$AI137-$AK137),IF($AX137<Setup!$C$21,($AX137*Setup!$D$21)-$AI137-$AK137,(($AX137-VLOOKUP($AX137,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX137,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX137,TaxBracket1,1),0,1,1)-$AI137-$AK137))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A138)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B138,\"yyyy\")&TEXT($B138,\"mm\")&\"-\"&$C138)","v":"202311-EXS012"},{"$f":"IF(ROW($A138)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A138)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A138)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A138)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45255},{"$f":"IF(ROW($A138)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A138)-ROW($A$6)-IF(ROW($A138)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A138)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS012"},{"$f":"IF(ISNA(VLOOKUP($C138,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C138,EmpAll,COLUMN(Emp!$B$4),0))","v":"Williams VS"},{"$f":"IF(ISNA(VLOOKUP($C138,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C138,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C138,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C138,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC138),MONTH($AC138)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C138,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC138),MONTH($AC138),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F138<>\"Active\",0,IF(COUNTIFS(OverEmp,$C138,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMIFS(OverValue,OverEmp,$C138,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1)),IF(AND($AC138>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C138)>0),SUMIFS(EmpIncrease,EmpCode,$C138),SUMIFS(EmpSalary,EmpCode,$C138))))","v":5000},{"$f":"IF($F138<>\"Active\",0,IF(COUNTIFS(OverEmp,$C138,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMIFS(OverValue,OverEmp,$C138,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1)),0))","v":0},{"$f":"IF($F138<>\"Active\",0,IF(COUNTIFS(OverEmp,$C138,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMIFS(OverValue,OverEmp,$C138,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1)),IF(MONTH(B138)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C138),0)))","v":0},{"$f":"IF($F138<>\"Active\",0,IF(COUNTIFS(OverEmp,$C138,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMIFS(OverValue,OverEmp,$C138,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1)),0))","v":0},{"$f":"IF($F138<>\"Active\",0,IF(COUNTIFS(OverEmp,$C138,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMIFS(OverValue,OverEmp,$C138,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C138,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMIFS(OverValue,OverEmp,$C138,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1)),(($BA138/12*$AA138)+(BB138*IF(1-$BC138=0,0,BD138/(1-$BC138))))-IF($F138=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC138,PayEmp,$C138)))","v":0},{"$f":"IF($F138=\"Terminated\",0,IF($AA138=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C138,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMIFS(OverValue,OverEmp,$C138,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA138)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA138,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138))))))","v":50},{"$f":"IF($F138=\"Terminated\",0,IF($AA138=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C138,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMIFS(OverValue,OverEmp,$C138,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA138)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA138,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138))))))","v":0},{"$f":"IF($F138=\"Terminated\",0,IF($AA138=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C138,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMIFS(OverValue,OverEmp,$C138,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA138)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA138,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138))))))","v":0},{"$f":"IF($F138=\"Terminated\",0,IF($AA138=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C138,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMIFS(OverValue,OverEmp,$C138,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA138)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA138,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138))))))","v":0},50,4950,{"$f":"IF($F138=\"Terminated\",0,IF($AA138=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C138,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMIFS(OverValue,OverEmp,$C138,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA138)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA138,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138)))))))","v":50},{"$f":"IF($F138=\"Terminated\",0,IF($AA138=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C138,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMIFS(OverValue,OverEmp,$C138,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA138)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA138,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138)))))))","v":50},{"$f":"IF($F138=\"Terminated\",0,IF($AA138=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C138,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMIFS(OverValue,OverEmp,$C138,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA138)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA138,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138)))))))","v":0},{"$f":"IF($F138=\"Terminated\",0,IF($AA138=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C138,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMIFS(OverValue,OverEmp,$C138,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA138)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA138,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC138,PayEmp,$C138)))))))","v":0},100,5100,150,{"$f":"IF(OR($B138<=Setup!$E$12,$B138>=Setup!$D$12+1),0,IF($F138<>\"Active\",0,IF($AE138=\"Yes\",$AB138,((YEAR($AC138)*12)+MONTH($AC138))-((YEAR($AD138)*12)+MONTH($AD138)-1))))","v":9},{"$f":"IF(OR($B138<=Setup!$E$12,$B138>=Setup!$D$12+1),0,((YEAR($AC138)*12)+MONTH($AC138))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":9},45255,{"$f":"IF(ISNA(VLOOKUP($C138,EmpAll,COLUMN(Emp!$E$4),0)),$AC138,IF(VLOOKUP($C138,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C138,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C138,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C138,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C138,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A138=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C138,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMIFS(OverValue,OverEmp,$C138,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1)),IF(ISNA(VLOOKUP($C138,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG138,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C138,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C138,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C138,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C138,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C138,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F138=\"Terminated\",0,IF($AA138=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C138,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA138*12)+(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB138/3,0))*4)+(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB138/6,0))*2)+(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F138=\"Terminated\",0,IF($AA138=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C138,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA138*12)+(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB138/3,0))*4)+(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB138/6,0))*2)+(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F138=\"Terminated\",0,IF($AA138=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C138,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA138*12)+(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB138/3,0))*4)+(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB138/6,0))*2)+(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F138=\"Terminated\",0,IF($AA138=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C138,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA138*12)+(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB138/3,0))*4)+(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB138/6,0))*2)+(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F138=\"Terminated\",0,IF($AA138=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C138,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA138*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F138=\"Terminated\",0,IF($AA138=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C138,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA138*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F138=\"Terminated\",0,IF($AA138=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C138,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA138*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F138=\"Terminated\",0,IF($AA138=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C138,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC138),MONTH($AC138)+1,1),OverEnd,\">=\"&DATE(YEAR($AC138),MONTH($AC138),1))>0,SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA138*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C138)*(PayDate<=$AC138)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA138*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C138,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C138,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL138),($AR138*$AL138)-$AI138-$AK138,MAX(0,IF($AL138=\"B\",IF($AR138<Setup!$C$32,($AR138*Setup!$D$32)-$AI138-$AK138,(($AR138-VLOOKUP($AR138,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR138,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR138,TaxBracket2,1),0,1,1)-$AI138-$AK138),IF($AR138<Setup!$C$21,($AR138*Setup!$D$21)-$AI138-$AK138,(($AR138-VLOOKUP($AR138,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR138,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR138,TaxBracket1,1),0,1,1)-$AI138-$AK138))))","v":0},{"$f":"IF(ISNUMBER($AL138),($AX138*$AL138)-$AI138-$AK138,MAX(0,IF($AL138=\"B\",IF($AX138<Setup!$C$32,($AX138*Setup!$D$32)-$AI138-$AK138,(($AX138-VLOOKUP($AX138,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX138,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX138,TaxBracket2,1),0,1,1)-$AI138-$AK138),IF($AX138<Setup!$C$21,($AX138*Setup!$D$21)-$AI138-$AK138,(($AX138-VLOOKUP($AX138,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX138,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX138,TaxBracket1,1),0,1,1)-$AI138-$AK138))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A139)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B139,\"yyyy\")&TEXT($B139,\"mm\")&\"-\"&$C139)","v":"202311-EXS013"},{"$f":"IF(ROW($A139)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A139)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A139)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A139)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45255},{"$f":"IF(ROW($A139)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A139)-ROW($A$6)-IF(ROW($A139)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A139)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS013"},{"$f":"IF(ISNA(VLOOKUP($C139,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C139,EmpAll,COLUMN(Emp!$B$4),0))","v":"East WD"},{"$f":"IF(ISNA(VLOOKUP($C139,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C139,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C139,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C139,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC139),MONTH($AC139)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C139,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC139),MONTH($AC139),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F139<>\"Active\",0,IF(COUNTIFS(OverEmp,$C139,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMIFS(OverValue,OverEmp,$C139,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1)),IF(AND($AC139>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C139)>0),SUMIFS(EmpIncrease,EmpCode,$C139),SUMIFS(EmpSalary,EmpCode,$C139))))","v":5000},{"$f":"IF($F139<>\"Active\",0,IF(COUNTIFS(OverEmp,$C139,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMIFS(OverValue,OverEmp,$C139,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1)),0))","v":0},{"$f":"IF($F139<>\"Active\",0,IF(COUNTIFS(OverEmp,$C139,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMIFS(OverValue,OverEmp,$C139,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1)),IF(MONTH(B139)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C139),0)))","v":0},{"$f":"IF($F139<>\"Active\",0,IF(COUNTIFS(OverEmp,$C139,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMIFS(OverValue,OverEmp,$C139,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1)),0))","v":0},{"$f":"IF($F139<>\"Active\",0,IF(COUNTIFS(OverEmp,$C139,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMIFS(OverValue,OverEmp,$C139,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1)),0))","v":0},5000,{"$f":"IF(COUNTIFS(OverEmp,$C139,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMIFS(OverValue,OverEmp,$C139,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1)),(($BA139/12*$AA139)+(BB139*IF(1-$BC139=0,0,BD139/(1-$BC139))))-IF($F139=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC139,PayEmp,$C139)))","v":0},{"$f":"IF($F139=\"Terminated\",0,IF($AA139=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C139,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMIFS(OverValue,OverEmp,$C139,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA139)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA139,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139))))))","v":50},{"$f":"IF($F139=\"Terminated\",0,IF($AA139=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C139,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMIFS(OverValue,OverEmp,$C139,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA139)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA139,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139))))))","v":0},{"$f":"IF($F139=\"Terminated\",0,IF($AA139=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C139,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMIFS(OverValue,OverEmp,$C139,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA139)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA139,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139))))))","v":0},{"$f":"IF($F139=\"Terminated\",0,IF($AA139=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C139,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMIFS(OverValue,OverEmp,$C139,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA139)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA139,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139))))))","v":0},50,4950,{"$f":"IF($F139=\"Terminated\",0,IF($AA139=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C139,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMIFS(OverValue,OverEmp,$C139,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA139)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA139,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139)))))))","v":50},{"$f":"IF($F139=\"Terminated\",0,IF($AA139=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C139,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMIFS(OverValue,OverEmp,$C139,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA139)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA139,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139)))))))","v":50},{"$f":"IF($F139=\"Terminated\",0,IF($AA139=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C139,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMIFS(OverValue,OverEmp,$C139,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA139)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA139,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139)))))))","v":0},{"$f":"IF($F139=\"Terminated\",0,IF($AA139=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C139,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMIFS(OverValue,OverEmp,$C139,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA139)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA139,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC139,PayEmp,$C139)))))))","v":0},100,5100,150,{"$f":"IF(OR($B139<=Setup!$E$12,$B139>=Setup!$D$12+1),0,IF($F139<>\"Active\",0,IF($AE139=\"Yes\",$AB139,((YEAR($AC139)*12)+MONTH($AC139))-((YEAR($AD139)*12)+MONTH($AD139)-1))))","v":9},{"$f":"IF(OR($B139<=Setup!$E$12,$B139>=Setup!$D$12+1),0,((YEAR($AC139)*12)+MONTH($AC139))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":9},45255,{"$f":"IF(ISNA(VLOOKUP($C139,EmpAll,COLUMN(Emp!$E$4),0)),$AC139,IF(VLOOKUP($C139,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C139,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C139,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C139,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C139,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A139=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C139,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMIFS(OverValue,OverEmp,$C139,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1)),IF(ISNA(VLOOKUP($C139,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG139,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C139,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C139,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C139,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C139,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C139,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},60000,{"$f":"-IF($F139=\"Terminated\",0,IF($AA139=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C139,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA139*12)+(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB139/3,0))*4)+(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB139/6,0))*2)+(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F139=\"Terminated\",0,IF($AA139=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C139,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA139*12)+(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB139/3,0))*4)+(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB139/6,0))*2)+(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F139=\"Terminated\",0,IF($AA139=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C139,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA139*12)+(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB139/3,0))*4)+(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB139/6,0))*2)+(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F139=\"Terminated\",0,IF($AA139=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C139,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA139*12)+(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB139/3,0))*4)+(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB139/6,0))*2)+(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},60000,60000,{"$f":"-IF($F139=\"Terminated\",0,IF($AA139=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C139,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA139*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F139=\"Terminated\",0,IF($AA139=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C139,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA139*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F139=\"Terminated\",0,IF($AA139=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C139,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA139*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F139=\"Terminated\",0,IF($AA139=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C139,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC139),MONTH($AC139)+1,1),OverEnd,\">=\"&DATE(YEAR($AC139),MONTH($AC139),1))>0,SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA139*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C139)*(PayDate<=$AC139)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA139*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C139,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C139,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,0,{"$f":"IF(ISNUMBER($AL139),($AR139*$AL139)-$AI139-$AK139,MAX(0,IF($AL139=\"B\",IF($AR139<Setup!$C$32,($AR139*Setup!$D$32)-$AI139-$AK139,(($AR139-VLOOKUP($AR139,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR139,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR139,TaxBracket2,1),0,1,1)-$AI139-$AK139),IF($AR139<Setup!$C$21,($AR139*Setup!$D$21)-$AI139-$AK139,(($AR139-VLOOKUP($AR139,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR139,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR139,TaxBracket1,1),0,1,1)-$AI139-$AK139))))","v":0},{"$f":"IF(ISNUMBER($AL139),($AX139*$AL139)-$AI139-$AK139,MAX(0,IF($AL139=\"B\",IF($AX139<Setup!$C$32,($AX139*Setup!$D$32)-$AI139-$AK139,(($AX139-VLOOKUP($AX139,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX139,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX139,TaxBracket2,1),0,1,1)-$AI139-$AK139),IF($AX139<Setup!$C$21,($AX139*Setup!$D$21)-$AI139-$AK139,(($AX139-VLOOKUP($AX139,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX139,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX139,TaxBracket1,1),0,1,1)-$AI139-$AK139))))","v":0},0,1,0,60000]
[{"$f":"IF(ROW($A140)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B140,\"yyyy\")&TEXT($B140,\"mm\")&\"-\"&$C140)","v":"202311-EXS014"},{"$f":"IF(ROW($A140)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A140)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A140)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A140)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45255},{"$f":"IF(ROW($A140)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A140)-ROW($A$6)-IF(ROW($A140)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A140)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS014"},{"$f":"IF(ISNA(VLOOKUP($C140,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C140,EmpAll,COLUMN(Emp!$B$4),0))","v":"Ross Q"},{"$f":"IF(ISNA(VLOOKUP($C140,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C140,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C140,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C140,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC140),MONTH($AC140)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C140,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC140),MONTH($AC140),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F140<>\"Active\",0,IF(COUNTIFS(OverEmp,$C140,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMIFS(OverValue,OverEmp,$C140,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1)),IF(AND($AC140>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C140)>0),SUMIFS(EmpIncrease,EmpCode,$C140),SUMIFS(EmpSalary,EmpCode,$C140))))","v":29150},{"$f":"IF($F140<>\"Active\",0,IF(COUNTIFS(OverEmp,$C140,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMIFS(OverValue,OverEmp,$C140,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1)),0))","v":0},{"$f":"IF($F140<>\"Active\",0,IF(COUNTIFS(OverEmp,$C140,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMIFS(OverValue,OverEmp,$C140,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1)),IF(MONTH(B140)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C140),0)))","v":0},{"$f":"IF($F140<>\"Active\",0,IF(COUNTIFS(OverEmp,$C140,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMIFS(OverValue,OverEmp,$C140,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1)),0))","v":0},{"$f":"IF($F140<>\"Active\",0,IF(COUNTIFS(OverEmp,$C140,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMIFS(OverValue,OverEmp,$C140,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1)),0))","v":0},29150,{"$f":"IF(COUNTIFS(OverEmp,$C140,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMIFS(OverValue,OverEmp,$C140,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1)),(($BA140/12*$AA140)+(BB140*IF(1-$BC140=0,0,BD140/(1-$BC140))))-IF($F140=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC140,PayEmp,$C140)))","v":4562.0833333333358},{"$f":"IF($F140=\"Terminated\",0,IF($AA140=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C140,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMIFS(OverValue,OverEmp,$C140,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA140)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA140,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140))))))","v":177.12},{"$f":"IF($F140=\"Terminated\",0,IF($AA140=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C140,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMIFS(OverValue,OverEmp,$C140,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA140)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA140,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140))))))","v":0},{"$f":"IF($F140=\"Terminated\",0,IF($AA140=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C140,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMIFS(OverValue,OverEmp,$C140,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA140)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA140,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140))))))","v":0},{"$f":"IF($F140=\"Terminated\",0,IF($AA140=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C140,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMIFS(OverValue,OverEmp,$C140,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA140)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA140,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140))))))","v":0},4739.2033333333356,24410.799999999999,{"$f":"IF($F140=\"Terminated\",0,IF($AA140=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C140,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMIFS(OverValue,OverEmp,$C140,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA140)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA140,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140)))))))","v":177.12},{"$f":"IF($F140=\"Terminated\",0,IF($AA140=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C140,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMIFS(OverValue,OverEmp,$C140,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA140)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA140,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140)))))))","v":291.5},{"$f":"IF($F140=\"Terminated\",0,IF($AA140=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C140,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMIFS(OverValue,OverEmp,$C140,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA140)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA140,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140)))))))","v":0},{"$f":"IF($F140=\"Terminated\",0,IF($AA140=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C140,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMIFS(OverValue,OverEmp,$C140,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA140)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA140,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC140,PayEmp,$C140)))))))","v":0},468.62,29618.62,5207.82,{"$f":"IF(OR($B140<=Setup!$E$12,$B140>=Setup!$D$12+1),0,IF($F140<>\"Active\",0,IF($AE140=\"Yes\",$AB140,((YEAR($AC140)*12)+MONTH($AC140))-((YEAR($AD140)*12)+MONTH($AD140)-1))))","v":6},{"$f":"IF(OR($B140<=Setup!$E$12,$B140>=Setup!$D$12+1),0,((YEAR($AC140)*12)+MONTH($AC140))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":9},45255,{"$f":"IF(ISNA(VLOOKUP($C140,EmpAll,COLUMN(Emp!$E$4),0)),$AC140,IF(VLOOKUP($C140,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C140,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-06-25"},{"$f":"IF(ISNA(VLOOKUP($C140,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C140,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C140,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A140=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C140,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMIFS(OverValue,OverEmp,$C140,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1)),IF(ISNA(VLOOKUP($C140,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG140,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C140,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C140,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C140,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C140,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C140,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},349800,{"$f":"-IF($F140=\"Terminated\",0,IF($AA140=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C140,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA140*12)+(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB140/3,0))*4)+(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB140/6,0))*2)+(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F140=\"Terminated\",0,IF($AA140=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C140,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA140*12)+(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB140/3,0))*4)+(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB140/6,0))*2)+(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F140=\"Terminated\",0,IF($AA140=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C140,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA140*12)+(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB140/3,0))*4)+(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB140/6,0))*2)+(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F140=\"Terminated\",0,IF($AA140=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C140,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA140*12)+(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB140/3,0))*4)+(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB140/6,0))*2)+(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},349800,349800,{"$f":"-IF($F140=\"Terminated\",0,IF($AA140=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C140,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA140*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F140=\"Terminated\",0,IF($AA140=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C140,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA140*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F140=\"Terminated\",0,IF($AA140=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C140,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA140*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F140=\"Terminated\",0,IF($AA140=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C140,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC140),MONTH($AC140)+1,1),OverEnd,\">=\"&DATE(YEAR($AC140),MONTH($AC140),1))>0,SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA140*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C140)*(PayDate<=$AC140)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA140*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C140,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C140,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},349800,0,{"$f":"IF(ISNUMBER($AL140),($AR140*$AL140)-$AI140-$AK140,MAX(0,IF($AL140=\"B\",IF($AR140<Setup!$C$32,($AR140*Setup!$D$32)-$AI140-$AK140,(($AR140-VLOOKUP($AR140,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR140,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR140,TaxBracket2,1),0,1,1)-$AI140-$AK140),IF($AR140<Setup!$C$21,($AR140*Setup!$D$21)-$AI140-$AK140,(($AR140-VLOOKUP($AR140,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR140,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR140,TaxBracket1,1),0,1,1)-$AI140-$AK140))))","v":54745},{"$f":"IF(ISNUMBER($AL140),($AX140*$AL140)-$AI140-$AK140,MAX(0,IF($AL140=\"B\",IF($AX140<Setup!$C$32,($AX140*Setup!$D$32)-$AI140-$AK140,(($AX140-VLOOKUP($AX140,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX140,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX140,TaxBracket2,1),0,1,1)-$AI140-$AK140),IF($AX140<Setup!$C$21,($AX140*Setup!$D$21)-$AI140-$AK140,(($AX140-VLOOKUP($AX140,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX140,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX140,TaxBracket1,1),0,1,1)-$AI140-$AK140))))","v":54745},0,1,0,349800]
[{"$f":"IF(ROW($A141)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B141,\"yyyy\")&TEXT($B141,\"mm\")&\"-\"&$C141)","v":"202311-EXS015"},{"$f":"IF(ROW($A141)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A141)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A141)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A141)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45255},{"$f":"IF(ROW($A141)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A141)-ROW($A$6)-IF(ROW($A141)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A141)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS015"},{"$f":"IF(ISNA(VLOOKUP($C141,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C141,EmpAll,COLUMN(Emp!$B$4),0))","v":"Graham L"},{"$f":"IF(ISNA(VLOOKUP($C141,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C141,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C141,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C141,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC141),MONTH($AC141)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C141,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC141),MONTH($AC141),0)),\"Terminated\",\"Active\")))","v":"Inactive"},{"$f":"IF($F141<>\"Active\",0,IF(COUNTIFS(OverEmp,$C141,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMIFS(OverValue,OverEmp,$C141,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1)),IF(AND($AC141>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C141)>0),SUMIFS(EmpIncrease,EmpCode,$C141),SUMIFS(EmpSalary,EmpCode,$C141))))","v":0},{"$f":"IF($F141<>\"Active\",0,IF(COUNTIFS(OverEmp,$C141,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMIFS(OverValue,OverEmp,$C141,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1)),0))","v":0},{"$f":"IF($F141<>\"Active\",0,IF(COUNTIFS(OverEmp,$C141,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMIFS(OverValue,OverEmp,$C141,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1)),IF(MONTH(B141)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C141),0)))","v":0},{"$f":"IF($F141<>\"Active\",0,IF(COUNTIFS(OverEmp,$C141,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMIFS(OverValue,OverEmp,$C141,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1)),0))","v":0},{"$f":"IF($F141<>\"Active\",0,IF(COUNTIFS(OverEmp,$C141,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMIFS(OverValue,OverEmp,$C141,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C141,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMIFS(OverValue,OverEmp,$C141,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1)),(($BA141/12*$AA141)+(BB141*IF(1-$BC141=0,0,BD141/(1-$BC141))))-IF($F141=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC141,PayEmp,$C141)))","v":0},{"$f":"IF($F141=\"Terminated\",0,IF($AA141=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C141,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMIFS(OverValue,OverEmp,$C141,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA141)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA141,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141))))))","v":0},{"$f":"IF($F141=\"Terminated\",0,IF($AA141=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C141,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMIFS(OverValue,OverEmp,$C141,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA141)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA141,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141))))))","v":0},{"$f":"IF($F141=\"Terminated\",0,IF($AA141=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C141,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMIFS(OverValue,OverEmp,$C141,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA141)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA141,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141))))))","v":0},{"$f":"IF($F141=\"Terminated\",0,IF($AA141=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C141,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMIFS(OverValue,OverEmp,$C141,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA141)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA141,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141))))))","v":0},0,0,{"$f":"IF($F141=\"Terminated\",0,IF($AA141=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C141,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMIFS(OverValue,OverEmp,$C141,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA141)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA141,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141)))))))","v":0},{"$f":"IF($F141=\"Terminated\",0,IF($AA141=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C141,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMIFS(OverValue,OverEmp,$C141,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA141)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA141,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141)))))))","v":0},{"$f":"IF($F141=\"Terminated\",0,IF($AA141=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C141,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMIFS(OverValue,OverEmp,$C141,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA141)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA141,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141)))))))","v":0},{"$f":"IF($F141=\"Terminated\",0,IF($AA141=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C141,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMIFS(OverValue,OverEmp,$C141,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA141)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA141,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC141,PayEmp,$C141)))))))","v":0},0,0,0,{"$f":"IF(OR($B141<=Setup!$E$12,$B141>=Setup!$D$12+1),0,IF($F141<>\"Active\",0,IF($AE141=\"Yes\",$AB141,((YEAR($AC141)*12)+MONTH($AC141))-((YEAR($AD141)*12)+MONTH($AD141)-1))))","v":0},{"$f":"IF(OR($B141<=Setup!$E$12,$B141>=Setup!$D$12+1),0,((YEAR($AC141)*12)+MONTH($AC141))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":9},45255,{"$f":"IF(ISNA(VLOOKUP($C141,EmpAll,COLUMN(Emp!$E$4),0)),$AC141,IF(VLOOKUP($C141,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C141,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-01-25"},{"$f":"IF(ISNA(VLOOKUP($C141,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C141,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C141,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A141=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C141,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMIFS(OverValue,OverEmp,$C141,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1)),IF(ISNA(VLOOKUP($C141,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG141,MedList,COLUMN(Setup!$C$49),1)","v":364},7644,{"$f":"IF(ISNA(VLOOKUP($C141,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C141,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C141,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C141,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C141,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F141=\"Terminated\",0,IF($AA141=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C141,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA141*12)+(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB141/3,0))*4)+(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB141/6,0))*2)+(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F141=\"Terminated\",0,IF($AA141=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C141,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA141*12)+(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB141/3,0))*4)+(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB141/6,0))*2)+(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F141=\"Terminated\",0,IF($AA141=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C141,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA141*12)+(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB141/3,0))*4)+(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB141/6,0))*2)+(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F141=\"Terminated\",0,IF($AA141=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C141,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA141*12)+(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB141/3,0))*4)+(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB141/6,0))*2)+(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F141=\"Terminated\",0,IF($AA141=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C141,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA141*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F141=\"Terminated\",0,IF($AA141=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C141,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA141*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F141=\"Terminated\",0,IF($AA141=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C141,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA141*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F141=\"Terminated\",0,IF($AA141=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C141,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC141),MONTH($AC141)+1,1),OverEnd,\">=\"&DATE(YEAR($AC141),MONTH($AC141),1))>0,SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA141*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C141)*(PayDate<=$AC141)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA141*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C141,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C141,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL141),($AR141*$AL141)-$AI141-$AK141,MAX(0,IF($AL141=\"B\",IF($AR141<Setup!$C$32,($AR141*Setup!$D$32)-$AI141-$AK141,(($AR141-VLOOKUP($AR141,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR141,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR141,TaxBracket2,1),0,1,1)-$AI141-$AK141),IF($AR141<Setup!$C$21,($AR141*Setup!$D$21)-$AI141-$AK141,(($AR141-VLOOKUP($AR141,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR141,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR141,TaxBracket1,1),0,1,1)-$AI141-$AK141))))","v":0},{"$f":"IF(ISNUMBER($AL141),($AX141*$AL141)-$AI141-$AK141,MAX(0,IF($AL141=\"B\",IF($AX141<Setup!$C$32,($AX141*Setup!$D$32)-$AI141-$AK141,(($AX141-VLOOKUP($AX141,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX141,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX141,TaxBracket2,1),0,1,1)-$AI141-$AK141),IF($AX141<Setup!$C$21,($AX141*Setup!$D$21)-$AI141-$AK141,(($AX141-VLOOKUP($AX141,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX141,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX141,TaxBracket1,1),0,1,1)-$AI141-$AK141))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A142)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B142,\"yyyy\")&TEXT($B142,\"mm\")&\"-\"&$C142)","v":"202312-EXS001"},{"$f":"IF(ROW($A142)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A142)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A142)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A142)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45285},{"$f":"IF(ROW($A142)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A142)-ROW($A$6)-IF(ROW($A142)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A142)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS001"},{"$f":"IF(ISNA(VLOOKUP($C142,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C142,EmpAll,COLUMN(Emp!$B$4),0))","v":"Taylor AE"},{"$f":"IF(ISNA(VLOOKUP($C142,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C142,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C142,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C142,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC142),MONTH($AC142)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C142,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC142),MONTH($AC142),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F142<>\"Active\",0,IF(COUNTIFS(OverEmp,$C142,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMIFS(OverValue,OverEmp,$C142,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1)),IF(AND($AC142>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C142)>0),SUMIFS(EmpIncrease,EmpCode,$C142),SUMIFS(EmpSalary,EmpCode,$C142))))","v":150000},{"$f":"IF($F142<>\"Active\",0,IF(COUNTIFS(OverEmp,$C142,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMIFS(OverValue,OverEmp,$C142,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1)),0))","v":0},{"$f":"IF($F142<>\"Active\",0,IF(COUNTIFS(OverEmp,$C142,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMIFS(OverValue,OverEmp,$C142,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1)),IF(MONTH(B142)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C142),0)))","v":150000},{"$f":"IF($F142<>\"Active\",0,IF(COUNTIFS(OverEmp,$C142,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMIFS(OverValue,OverEmp,$C142,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1)),0))","v":0},{"$f":"IF($F142<>\"Active\",0,IF(COUNTIFS(OverEmp,$C142,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMIFS(OverValue,OverEmp,$C142,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1)),0))","v":0},300000,{"$f":"IF(COUNTIFS(OverEmp,$C142,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMIFS(OverValue,OverEmp,$C142,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1)),(($BA142/12*$AA142)+(BB142*IF(1-$BC142=0,0,BD142/(1-$BC142))))-IF($F142=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC142,PayEmp,$C142)))","v":102499.33333333343},{"$f":"IF($F142=\"Terminated\",0,IF($AA142=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C142,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMIFS(OverValue,OverEmp,$C142,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA142)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA142,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142))))))","v":177.12000000000012},{"$f":"IF($F142=\"Terminated\",0,IF($AA142=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C142,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMIFS(OverValue,OverEmp,$C142,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA142)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA142,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142))))))","v":22500},{"$f":"IF($F142=\"Terminated\",0,IF($AA142=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C142,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMIFS(OverValue,OverEmp,$C142,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA142)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA142,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142))))))","v":0},{"$f":"IF($F142=\"Terminated\",0,IF($AA142=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C142,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMIFS(OverValue,OverEmp,$C142,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA142)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA142,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142))))))","v":0},125176.45333333343,174823.55,{"$f":"IF($F142=\"Terminated\",0,IF($AA142=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C142,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMIFS(OverValue,OverEmp,$C142,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA142)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA142,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142)))))))","v":177.12000000000012},{"$f":"IF($F142=\"Terminated\",0,IF($AA142=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C142,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMIFS(OverValue,OverEmp,$C142,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA142)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA142,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142)))))))","v":3000},{"$f":"IF($F142=\"Terminated\",0,IF($AA142=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C142,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMIFS(OverValue,OverEmp,$C142,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA142)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA142,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142)))))))","v":0},{"$f":"IF($F142=\"Terminated\",0,IF($AA142=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C142,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMIFS(OverValue,OverEmp,$C142,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA142)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA142,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC142,PayEmp,$C142)))))))","v":0},3177.12,303177.12,128353.57,{"$f":"IF(OR($B142<=Setup!$E$12,$B142>=Setup!$D$12+1),0,IF($F142<>\"Active\",0,IF($AE142=\"Yes\",$AB142,((YEAR($AC142)*12)+MONTH($AC142))-((YEAR($AD142)*12)+MONTH($AD142)-1))))","v":10},{"$f":"IF(OR($B142<=Setup!$E$12,$B142>=Setup!$D$12+1),0,((YEAR($AC142)*12)+MONTH($AC142))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":10},45285,{"$f":"IF(ISNA(VLOOKUP($C142,EmpAll,COLUMN(Emp!$E$4),0)),$AC142,IF(VLOOKUP($C142,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C142,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C142,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C142,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C142,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A142=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C142,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMIFS(OverValue,OverEmp,$C142,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1)),IF(ISNA(VLOOKUP($C142,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$N$4),0)))","v":5},{"$f":"VLOOKUP($AG142,MedList,COLUMN(Setup!$C$49),1)","v":1466},17592,{"$f":"IF(ISNA(VLOOKUP($C142,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C142,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C142,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C142,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C142,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1950000,{"$f":"-IF($F142=\"Terminated\",0,IF($AA142=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C142,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA142*12)+(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB142/3,0))*4)+(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB142/6,0))*2)+(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F142=\"Terminated\",0,IF($AA142=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C142,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA142*12)+(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB142/3,0))*4)+(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB142/6,0))*2)+(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":-146250},{"$f":"-IF($F142=\"Terminated\",0,IF($AA142=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C142,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA142*12)+(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB142/3,0))*4)+(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB142/6,0))*2)+(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F142=\"Terminated\",0,IF($AA142=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C142,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA142*12)+(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB142/3,0))*4)+(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB142/6,0))*2)+(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1803750,1800000,{"$f":"-IF($F142=\"Terminated\",0,IF($AA142=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C142,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA142*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F142=\"Terminated\",0,IF($AA142=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C142,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA142*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":-135000},{"$f":"-IF($F142=\"Terminated\",0,IF($AA142=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C142,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA142*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F142=\"Terminated\",0,IF($AA142=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C142,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC142),MONTH($AC142)+1,1),OverEnd,\">=\"&DATE(YEAR($AC142),MONTH($AC142),1))>0,SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA142*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C142)*(PayDate<=$AC142)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA142*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C142,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C142,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1665000,138750,{"$f":"IF(ISNUMBER($AL142),($AR142*$AL142)-$AI142-$AK142,MAX(0,IF($AL142=\"B\",IF($AR142<Setup!$C$32,($AR142*Setup!$D$32)-$AI142-$AK142,(($AR142-VLOOKUP($AR142,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR142,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR142,TaxBracket2,1),0,1,1)-$AI142-$AK142),IF($AR142<Setup!$C$21,($AR142*Setup!$D$21)-$AI142-$AK142,(($AR142-VLOOKUP($AR142,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR142,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR142,TaxBracket1,1),0,1,1)-$AI142-$AK142))))","v":604229.5},{"$f":"IF(ISNUMBER($AL142),($AX142*$AL142)-$AI142-$AK142,MAX(0,IF($AL142=\"B\",IF($AX142<Setup!$C$32,($AX142*Setup!$D$32)-$AI142-$AK142,(($AX142-VLOOKUP($AX142,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX142,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX142,TaxBracket2,1),0,1,1)-$AI142-$AK142),IF($AX142<Setup!$C$21,($AX142*Setup!$D$21)-$AI142-$AK142,(($AX142-VLOOKUP($AX142,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX142,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX142,TaxBracket1,1),0,1,1)-$AI142-$AK142))))","v":547342},56887.5,0.92307692307692313,7.6923076923076927E-2,1950000]
[{"$f":"IF(ROW($A143)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B143,\"yyyy\")&TEXT($B143,\"mm\")&\"-\"&$C143)","v":"202312-EXS002"},{"$f":"IF(ROW($A143)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A143)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A143)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A143)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45285},{"$f":"IF(ROW($A143)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A143)-ROW($A$6)-IF(ROW($A143)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A143)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS002"},{"$f":"IF(ISNA(VLOOKUP($C143,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C143,EmpAll,COLUMN(Emp!$B$4),0))","v":"Smith F"},{"$f":"IF(ISNA(VLOOKUP($C143,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C143,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C143,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C143,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC143),MONTH($AC143)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C143,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC143),MONTH($AC143),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F143<>\"Active\",0,IF(COUNTIFS(OverEmp,$C143,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMIFS(OverValue,OverEmp,$C143,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1)),IF(AND($AC143>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C143)>0),SUMIFS(EmpIncrease,EmpCode,$C143),SUMIFS(EmpSalary,EmpCode,$C143))))","v":120000},{"$f":"IF($F143<>\"Active\",0,IF(COUNTIFS(OverEmp,$C143,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMIFS(OverValue,OverEmp,$C143,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1)),0))","v":0},{"$f":"IF($F143<>\"Active\",0,IF(COUNTIFS(OverEmp,$C143,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMIFS(OverValue,OverEmp,$C143,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1)),IF(MONTH(B143)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C143),0)))","v":120000},{"$f":"IF($F143<>\"Active\",0,IF(COUNTIFS(OverEmp,$C143,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMIFS(OverValue,OverEmp,$C143,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1)),0))","v":0},{"$f":"IF($F143<>\"Active\",0,IF(COUNTIFS(OverEmp,$C143,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMIFS(OverValue,OverEmp,$C143,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1)),0))","v":0},240000,{"$f":"IF(COUNTIFS(OverEmp,$C143,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMIFS(OverValue,OverEmp,$C143,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1)),(($BA143/12*$AA143)+(BB143*IF(1-$BC143=0,0,BD143/(1-$BC143))))-IF($F143=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC143,PayEmp,$C143)))","v":87698.33333333343},{"$f":"IF($F143=\"Terminated\",0,IF($AA143=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C143,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMIFS(OverValue,OverEmp,$C143,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA143)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA143,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143))))))","v":177.12000000000012},{"$f":"IF($F143=\"Terminated\",0,IF($AA143=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C143,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMIFS(OverValue,OverEmp,$C143,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA143)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA143,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143))))))","v":0},{"$f":"IF($F143=\"Terminated\",0,IF($AA143=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C143,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMIFS(OverValue,OverEmp,$C143,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA143)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA143,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143))))))","v":0},{"$f":"IF($F143=\"Terminated\",0,IF($AA143=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C143,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMIFS(OverValue,OverEmp,$C143,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA143)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA143,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143))))))","v":0},87875.453333333426,152124.54999999999,{"$f":"IF($F143=\"Terminated\",0,IF($AA143=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C143,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMIFS(OverValue,OverEmp,$C143,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA143)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA143,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143)))))))","v":177.12000000000012},{"$f":"IF($F143=\"Terminated\",0,IF($AA143=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C143,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMIFS(OverValue,OverEmp,$C143,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA143)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA143,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143)))))))","v":2400},{"$f":"IF($F143=\"Terminated\",0,IF($AA143=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C143,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMIFS(OverValue,OverEmp,$C143,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA143)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA143,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143)))))))","v":0},{"$f":"IF($F143=\"Terminated\",0,IF($AA143=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C143,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMIFS(OverValue,OverEmp,$C143,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA143)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA143,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC143,PayEmp,$C143)))))))","v":0},2577.12,242577.12,90452.57,{"$f":"IF(OR($B143<=Setup!$E$12,$B143>=Setup!$D$12+1),0,IF($F143<>\"Active\",0,IF($AE143=\"Yes\",$AB143,((YEAR($AC143)*12)+MONTH($AC143))-((YEAR($AD143)*12)+MONTH($AD143)-1))))","v":10},{"$f":"IF(OR($B143<=Setup!$E$12,$B143>=Setup!$D$12+1),0,((YEAR($AC143)*12)+MONTH($AC143))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":10},45285,{"$f":"IF(ISNA(VLOOKUP($C143,EmpAll,COLUMN(Emp!$E$4),0)),$AC143,IF(VLOOKUP($C143,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C143,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C143,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C143,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C143,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A143=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C143,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMIFS(OverValue,OverEmp,$C143,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1)),IF(ISNA(VLOOKUP($C143,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$N$4),0)))","v":3},{"$f":"VLOOKUP($AG143,MedList,COLUMN(Setup!$C$49),1)","v":974},10704,{"$f":"IF(ISNA(VLOOKUP($C143,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C143,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C143,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C143,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C143,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1560000,{"$f":"-IF($F143=\"Terminated\",0,IF($AA143=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C143,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA143*12)+(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB143/3,0))*4)+(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB143/6,0))*2)+(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F143=\"Terminated\",0,IF($AA143=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C143,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA143*12)+(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB143/3,0))*4)+(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB143/6,0))*2)+(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F143=\"Terminated\",0,IF($AA143=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C143,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA143*12)+(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB143/3,0))*4)+(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB143/6,0))*2)+(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F143=\"Terminated\",0,IF($AA143=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C143,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA143*12)+(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB143/3,0))*4)+(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB143/6,0))*2)+(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1560000,1440000,{"$f":"-IF($F143=\"Terminated\",0,IF($AA143=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C143,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA143*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F143=\"Terminated\",0,IF($AA143=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C143,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA143*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F143=\"Terminated\",0,IF($AA143=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C143,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA143*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F143=\"Terminated\",0,IF($AA143=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C143,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC143),MONTH($AC143)+1,1),OverEnd,\">=\"&DATE(YEAR($AC143),MONTH($AC143),1))>0,SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA143*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C143)*(PayDate<=$AC143)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA143*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C143,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C143,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1440000,120000,{"$f":"IF(ISNUMBER($AL143),($AR143*$AL143)-$AI143-$AK143,MAX(0,IF($AL143=\"B\",IF($AR143<Setup!$C$32,($AR143*Setup!$D$32)-$AI143-$AK143,(($AR143-VLOOKUP($AR143,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR143,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR143,TaxBracket2,1),0,1,1)-$AI143-$AK143),IF($AR143<Setup!$C$21,($AR143*Setup!$D$21)-$AI143-$AK143,(($AR143-VLOOKUP($AR143,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR143,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR143,TaxBracket1,1),0,1,1)-$AI143-$AK143))))","v":511180},{"$f":"IF(ISNUMBER($AL143),($AX143*$AL143)-$AI143-$AK143,MAX(0,IF($AL143=\"B\",IF($AX143<Setup!$C$32,($AX143*Setup!$D$32)-$AI143-$AK143,(($AX143-VLOOKUP($AX143,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX143,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX143,TaxBracket2,1),0,1,1)-$AI143-$AK143),IF($AX143<Setup!$C$21,($AX143*Setup!$D$21)-$AI143-$AK143,(($AX143-VLOOKUP($AX143,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX143,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX143,TaxBracket1,1),0,1,1)-$AI143-$AK143))))","v":461980},49200,0.92307692307692313,7.6923076923076927E-2,1560000]
[{"$f":"IF(ROW($A144)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B144,\"yyyy\")&TEXT($B144,\"mm\")&\"-\"&$C144)","v":"202312-EXS003"},{"$f":"IF(ROW($A144)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A144)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A144)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A144)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45285},{"$f":"IF(ROW($A144)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A144)-ROW($A$6)-IF(ROW($A144)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A144)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS003"},{"$f":"IF(ISNA(VLOOKUP($C144,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C144,EmpAll,COLUMN(Emp!$B$4),0))","v":"Wilson PG"},{"$f":"IF(ISNA(VLOOKUP($C144,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C144,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C144,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C144,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC144),MONTH($AC144)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C144,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC144),MONTH($AC144),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F144<>\"Active\",0,IF(COUNTIFS(OverEmp,$C144,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMIFS(OverValue,OverEmp,$C144,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1)),IF(AND($AC144>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C144)>0),SUMIFS(EmpIncrease,EmpCode,$C144),SUMIFS(EmpSalary,EmpCode,$C144))))","v":15000},{"$f":"IF($F144<>\"Active\",0,IF(COUNTIFS(OverEmp,$C144,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMIFS(OverValue,OverEmp,$C144,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1)),0))","v":0},{"$f":"IF($F144<>\"Active\",0,IF(COUNTIFS(OverEmp,$C144,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMIFS(OverValue,OverEmp,$C144,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1)),IF(MONTH(B144)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C144),0)))","v":15000},{"$f":"IF($F144<>\"Active\",0,IF(COUNTIFS(OverEmp,$C144,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMIFS(OverValue,OverEmp,$C144,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1)),0))","v":0},{"$f":"IF($F144<>\"Active\",0,IF(COUNTIFS(OverEmp,$C144,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMIFS(OverValue,OverEmp,$C144,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1)),0))","v":0},30000,{"$f":"IF(COUNTIFS(OverEmp,$C144,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMIFS(OverValue,OverEmp,$C144,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1)),(($BA144/12*$AA144)+(BB144*IF(1-$BC144=0,0,BD144/(1-$BC144))))-IF($F144=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC144,PayEmp,$C144)))","v":3599.7500000000018},{"$f":"IF($F144=\"Terminated\",0,IF($AA144=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C144,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMIFS(OverValue,OverEmp,$C144,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA144)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA144,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144))))))","v":300},{"$f":"IF($F144=\"Terminated\",0,IF($AA144=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C144,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMIFS(OverValue,OverEmp,$C144,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA144)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA144,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144))))))","v":0},{"$f":"IF($F144=\"Terminated\",0,IF($AA144=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C144,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMIFS(OverValue,OverEmp,$C144,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA144)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA144,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144))))))","v":2000},{"$f":"IF($F144=\"Terminated\",0,IF($AA144=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C144,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMIFS(OverValue,OverEmp,$C144,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA144)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA144,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144))))))","v":0},5899.7500000000018,24100.25,{"$f":"IF($F144=\"Terminated\",0,IF($AA144=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C144,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMIFS(OverValue,OverEmp,$C144,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA144)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA144,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144)))))))","v":300},{"$f":"IF($F144=\"Terminated\",0,IF($AA144=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C144,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMIFS(OverValue,OverEmp,$C144,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA144)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA144,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144)))))))","v":300},{"$f":"IF($F144=\"Terminated\",0,IF($AA144=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C144,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMIFS(OverValue,OverEmp,$C144,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA144)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA144,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144)))))))","v":0},{"$f":"IF($F144=\"Terminated\",0,IF($AA144=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C144,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMIFS(OverValue,OverEmp,$C144,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA144)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA144,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC144,PayEmp,$C144)))))))","v":0},600,30600,6499.75,{"$f":"IF(OR($B144<=Setup!$E$12,$B144>=Setup!$D$12+1),0,IF($F144<>\"Active\",0,IF($AE144=\"Yes\",$AB144,((YEAR($AC144)*12)+MONTH($AC144))-((YEAR($AD144)*12)+MONTH($AD144)-1))))","v":10},{"$f":"IF(OR($B144<=Setup!$E$12,$B144>=Setup!$D$12+1),0,((YEAR($AC144)*12)+MONTH($AC144))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":10},45285,{"$f":"IF(ISNA(VLOOKUP($C144,EmpAll,COLUMN(Emp!$E$4),0)),$AC144,IF(VLOOKUP($C144,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C144,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C144,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C144,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C144,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A144=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C144,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMIFS(OverValue,OverEmp,$C144,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1)),IF(ISNA(VLOOKUP($C144,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG144,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C144,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C144,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C144,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C144,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C144,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},195000,{"$f":"-IF($F144=\"Terminated\",0,IF($AA144=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C144,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA144*12)+(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB144/3,0))*4)+(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB144/6,0))*2)+(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F144=\"Terminated\",0,IF($AA144=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C144,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA144*12)+(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB144/3,0))*4)+(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB144/6,0))*2)+(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F144=\"Terminated\",0,IF($AA144=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C144,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA144*12)+(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB144/3,0))*4)+(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB144/6,0))*2)+(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F144=\"Terminated\",0,IF($AA144=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C144,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA144*12)+(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB144/3,0))*4)+(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB144/6,0))*2)+(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},195000,180000,{"$f":"-IF($F144=\"Terminated\",0,IF($AA144=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C144,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA144*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F144=\"Terminated\",0,IF($AA144=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C144,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA144*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F144=\"Terminated\",0,IF($AA144=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C144,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA144*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F144=\"Terminated\",0,IF($AA144=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C144,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC144),MONTH($AC144)+1,1),OverEnd,\">=\"&DATE(YEAR($AC144),MONTH($AC144),1))>0,SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA144*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C144)*(PayDate<=$AC144)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA144*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C144,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C144,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,15000,{"$f":"IF(ISNUMBER($AL144),($AR144*$AL144)-$AI144-$AK144,MAX(0,IF($AL144=\"B\",IF($AR144<Setup!$C$32,($AR144*Setup!$D$32)-$AI144-$AK144,(($AR144-VLOOKUP($AR144,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR144,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR144,TaxBracket2,1),0,1,1)-$AI144-$AK144),IF($AR144<Setup!$C$21,($AR144*Setup!$D$21)-$AI144-$AK144,(($AR144-VLOOKUP($AR144,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR144,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR144,TaxBracket1,1),0,1,1)-$AI144-$AK144))))","v":13497},{"$f":"IF(ISNUMBER($AL144),($AX144*$AL144)-$AI144-$AK144,MAX(0,IF($AL144=\"B\",IF($AX144<Setup!$C$32,($AX144*Setup!$D$32)-$AI144-$AK144,(($AX144-VLOOKUP($AX144,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX144,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX144,TaxBracket2,1),0,1,1)-$AI144-$AK144),IF($AX144<Setup!$C$21,($AX144*Setup!$D$21)-$AI144-$AK144,(($AX144-VLOOKUP($AX144,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX144,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX144,TaxBracket1,1),0,1,1)-$AI144-$AK144))))","v":10797},2700,0.92307692307692313,7.6923076923076927E-2,195000]
[{"$f":"IF(ROW($A145)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B145,\"yyyy\")&TEXT($B145,\"mm\")&\"-\"&$C145)","v":"202312-EXS004"},{"$f":"IF(ROW($A145)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A145)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A145)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A145)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45285},{"$f":"IF(ROW($A145)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A145)-ROW($A$6)-IF(ROW($A145)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A145)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS004"},{"$f":"IF(ISNA(VLOOKUP($C145,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C145,EmpAll,COLUMN(Emp!$B$4),0))","v":"Osborne S"},{"$f":"IF(ISNA(VLOOKUP($C145,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C145,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C145,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C145,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC145),MONTH($AC145)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C145,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC145),MONTH($AC145),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F145<>\"Active\",0,IF(COUNTIFS(OverEmp,$C145,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMIFS(OverValue,OverEmp,$C145,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1)),IF(AND($AC145>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C145)>0),SUMIFS(EmpIncrease,EmpCode,$C145),SUMIFS(EmpSalary,EmpCode,$C145))))","v":15000},{"$f":"IF($F145<>\"Active\",0,IF(COUNTIFS(OverEmp,$C145,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMIFS(OverValue,OverEmp,$C145,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1)),0))","v":0},{"$f":"IF($F145<>\"Active\",0,IF(COUNTIFS(OverEmp,$C145,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMIFS(OverValue,OverEmp,$C145,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1)),IF(MONTH(B145)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C145),0)))","v":15000},{"$f":"IF($F145<>\"Active\",0,IF(COUNTIFS(OverEmp,$C145,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMIFS(OverValue,OverEmp,$C145,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1)),0))","v":0},{"$f":"IF($F145<>\"Active\",0,IF(COUNTIFS(OverEmp,$C145,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMIFS(OverValue,OverEmp,$C145,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1)),0))","v":0},30000,{"$f":"IF(COUNTIFS(OverEmp,$C145,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMIFS(OverValue,OverEmp,$C145,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1)),(($BA145/12*$AA145)+(BB145*IF(1-$BC145=0,0,BD145/(1-$BC145))))-IF($F145=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC145,PayEmp,$C145)))","v":3599.7500000000018},{"$f":"IF($F145=\"Terminated\",0,IF($AA145=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C145,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMIFS(OverValue,OverEmp,$C145,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA145)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA145,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145))))))","v":300},{"$f":"IF($F145=\"Terminated\",0,IF($AA145=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C145,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMIFS(OverValue,OverEmp,$C145,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA145)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA145,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145))))))","v":0},{"$f":"IF($F145=\"Terminated\",0,IF($AA145=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C145,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMIFS(OverValue,OverEmp,$C145,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA145)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA145,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145))))))","v":500},{"$f":"IF($F145=\"Terminated\",0,IF($AA145=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C145,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMIFS(OverValue,OverEmp,$C145,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA145)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA145,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145))))))","v":0},4399.7500000000018,25600.25,{"$f":"IF($F145=\"Terminated\",0,IF($AA145=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C145,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMIFS(OverValue,OverEmp,$C145,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA145)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA145,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145)))))))","v":300},{"$f":"IF($F145=\"Terminated\",0,IF($AA145=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C145,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMIFS(OverValue,OverEmp,$C145,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA145)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA145,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145)))))))","v":300},{"$f":"IF($F145=\"Terminated\",0,IF($AA145=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C145,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMIFS(OverValue,OverEmp,$C145,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA145)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA145,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145)))))))","v":0},{"$f":"IF($F145=\"Terminated\",0,IF($AA145=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C145,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMIFS(OverValue,OverEmp,$C145,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA145)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA145,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC145,PayEmp,$C145)))))))","v":0},600,30600,4999.75,{"$f":"IF(OR($B145<=Setup!$E$12,$B145>=Setup!$D$12+1),0,IF($F145<>\"Active\",0,IF($AE145=\"Yes\",$AB145,((YEAR($AC145)*12)+MONTH($AC145))-((YEAR($AD145)*12)+MONTH($AD145)-1))))","v":10},{"$f":"IF(OR($B145<=Setup!$E$12,$B145>=Setup!$D$12+1),0,((YEAR($AC145)*12)+MONTH($AC145))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":10},45285,{"$f":"IF(ISNA(VLOOKUP($C145,EmpAll,COLUMN(Emp!$E$4),0)),$AC145,IF(VLOOKUP($C145,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C145,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C145,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C145,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C145,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A145=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C145,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMIFS(OverValue,OverEmp,$C145,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1)),IF(ISNA(VLOOKUP($C145,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG145,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C145,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C145,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C145,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C145,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C145,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},198600,{"$f":"-IF($F145=\"Terminated\",0,IF($AA145=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C145,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA145*12)+(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB145/3,0))*4)+(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB145/6,0))*2)+(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F145=\"Terminated\",0,IF($AA145=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C145,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA145*12)+(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB145/3,0))*4)+(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB145/6,0))*2)+(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F145=\"Terminated\",0,IF($AA145=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C145,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA145*12)+(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB145/3,0))*4)+(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB145/6,0))*2)+(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F145=\"Terminated\",0,IF($AA145=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C145,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA145*12)+(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB145/3,0))*4)+(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB145/6,0))*2)+(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},198600,180000,{"$f":"-IF($F145=\"Terminated\",0,IF($AA145=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C145,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA145*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F145=\"Terminated\",0,IF($AA145=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C145,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA145*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F145=\"Terminated\",0,IF($AA145=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C145,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA145*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F145=\"Terminated\",0,IF($AA145=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C145,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC145),MONTH($AC145)+1,1),OverEnd,\">=\"&DATE(YEAR($AC145),MONTH($AC145),1))>0,SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA145*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C145)*(PayDate<=$AC145)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA145*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C145,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C145,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},180000,18600,{"$f":"IF(ISNUMBER($AL145),($AR145*$AL145)-$AI145-$AK145,MAX(0,IF($AL145=\"B\",IF($AR145<Setup!$C$32,($AR145*Setup!$D$32)-$AI145-$AK145,(($AR145-VLOOKUP($AR145,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR145,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR145,TaxBracket2,1),0,1,1)-$AI145-$AK145),IF($AR145<Setup!$C$21,($AR145*Setup!$D$21)-$AI145-$AK145,(($AR145-VLOOKUP($AR145,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR145,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR145,TaxBracket1,1),0,1,1)-$AI145-$AK145))))","v":14145},{"$f":"IF(ISNUMBER($AL145),($AX145*$AL145)-$AI145-$AK145,MAX(0,IF($AL145=\"B\",IF($AX145<Setup!$C$32,($AX145*Setup!$D$32)-$AI145-$AK145,(($AX145-VLOOKUP($AX145,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX145,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX145,TaxBracket2,1),0,1,1)-$AI145-$AK145),IF($AX145<Setup!$C$21,($AX145*Setup!$D$21)-$AI145-$AK145,(($AX145-VLOOKUP($AX145,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX145,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX145,TaxBracket1,1),0,1,1)-$AI145-$AK145))))","v":10797},3348,0.90634441087613293,9.3655589123867067E-2,198600]
[{"$f":"IF(ROW($A146)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B146,\"yyyy\")&TEXT($B146,\"mm\")&\"-\"&$C146)","v":"202312-EXS005"},{"$f":"IF(ROW($A146)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A146)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A146)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A146)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45285},{"$f":"IF(ROW($A146)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A146)-ROW($A$6)-IF(ROW($A146)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A146)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS005"},{"$f":"IF(ISNA(VLOOKUP($C146,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C146,EmpAll,COLUMN(Emp!$B$4),0))","v":"Miller R"},{"$f":"IF(ISNA(VLOOKUP($C146,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C146,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C146,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C146,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC146),MONTH($AC146)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C146,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC146),MONTH($AC146),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F146<>\"Active\",0,IF(COUNTIFS(OverEmp,$C146,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMIFS(OverValue,OverEmp,$C146,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1)),IF(AND($AC146>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C146)>0),SUMIFS(EmpIncrease,EmpCode,$C146),SUMIFS(EmpSalary,EmpCode,$C146))))","v":10000},{"$f":"IF($F146<>\"Active\",0,IF(COUNTIFS(OverEmp,$C146,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMIFS(OverValue,OverEmp,$C146,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1)),0))","v":0},{"$f":"IF($F146<>\"Active\",0,IF(COUNTIFS(OverEmp,$C146,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMIFS(OverValue,OverEmp,$C146,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1)),IF(MONTH(B146)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C146),0)))","v":10000},{"$f":"IF($F146<>\"Active\",0,IF(COUNTIFS(OverEmp,$C146,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMIFS(OverValue,OverEmp,$C146,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1)),0))","v":0},{"$f":"IF($F146<>\"Active\",0,IF(COUNTIFS(OverEmp,$C146,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMIFS(OverValue,OverEmp,$C146,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1)),0))","v":0},20000,{"$f":"IF(COUNTIFS(OverEmp,$C146,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMIFS(OverValue,OverEmp,$C146,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1)),(($BA146/12*$AA146)+(BB146*IF(1-$BC146=0,0,BD146/(1-$BC146))))-IF($F146=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC146,PayEmp,$C146)))","v":1797.0000000000011},{"$f":"IF($F146=\"Terminated\",0,IF($AA146=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C146,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMIFS(OverValue,OverEmp,$C146,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA146)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA146,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146))))))","v":200},{"$f":"IF($F146=\"Terminated\",0,IF($AA146=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C146,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMIFS(OverValue,OverEmp,$C146,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA146)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA146,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146))))))","v":0},{"$f":"IF($F146=\"Terminated\",0,IF($AA146=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C146,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMIFS(OverValue,OverEmp,$C146,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA146)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA146,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146))))))","v":0},{"$f":"IF($F146=\"Terminated\",0,IF($AA146=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C146,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMIFS(OverValue,OverEmp,$C146,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA146)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA146,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146))))))","v":0},1997.0000000000011,18003,{"$f":"IF($F146=\"Terminated\",0,IF($AA146=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C146,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMIFS(OverValue,OverEmp,$C146,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA146)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA146,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146)))))))","v":200},{"$f":"IF($F146=\"Terminated\",0,IF($AA146=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C146,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMIFS(OverValue,OverEmp,$C146,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA146)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA146,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146)))))))","v":200},{"$f":"IF($F146=\"Terminated\",0,IF($AA146=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C146,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMIFS(OverValue,OverEmp,$C146,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA146)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA146,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146)))))))","v":0},{"$f":"IF($F146=\"Terminated\",0,IF($AA146=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C146,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMIFS(OverValue,OverEmp,$C146,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA146)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA146,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC146,PayEmp,$C146)))))))","v":0},400,20400,2397,{"$f":"IF(OR($B146<=Setup!$E$12,$B146>=Setup!$D$12+1),0,IF($F146<>\"Active\",0,IF($AE146=\"Yes\",$AB146,((YEAR($AC146)*12)+MONTH($AC146))-((YEAR($AD146)*12)+MONTH($AD146)-1))))","v":10},{"$f":"IF(OR($B146<=Setup!$E$12,$B146>=Setup!$D$12+1),0,((YEAR($AC146)*12)+MONTH($AC146))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":10},45285,{"$f":"IF(ISNA(VLOOKUP($C146,EmpAll,COLUMN(Emp!$E$4),0)),$AC146,IF(VLOOKUP($C146,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C146,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C146,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C146,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C146,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A146=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C146,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMIFS(OverValue,OverEmp,$C146,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1)),IF(ISNA(VLOOKUP($C146,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG146,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C146,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C146,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C146,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C146,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C146,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},130000,{"$f":"-IF($F146=\"Terminated\",0,IF($AA146=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C146,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA146*12)+(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB146/3,0))*4)+(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB146/6,0))*2)+(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F146=\"Terminated\",0,IF($AA146=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C146,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA146*12)+(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB146/3,0))*4)+(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB146/6,0))*2)+(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F146=\"Terminated\",0,IF($AA146=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C146,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA146*12)+(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB146/3,0))*4)+(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB146/6,0))*2)+(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F146=\"Terminated\",0,IF($AA146=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C146,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA146*12)+(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB146/3,0))*4)+(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB146/6,0))*2)+(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},130000,120000,{"$f":"-IF($F146=\"Terminated\",0,IF($AA146=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C146,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA146*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F146=\"Terminated\",0,IF($AA146=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C146,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA146*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F146=\"Terminated\",0,IF($AA146=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C146,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA146*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F146=\"Terminated\",0,IF($AA146=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C146,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC146),MONTH($AC146)+1,1),OverEnd,\">=\"&DATE(YEAR($AC146),MONTH($AC146),1))>0,SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA146*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C146)*(PayDate<=$AC146)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA146*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C146,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C146,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,10000,{"$f":"IF(ISNUMBER($AL146),($AR146*$AL146)-$AI146-$AK146,MAX(0,IF($AL146=\"B\",IF($AR146<Setup!$C$32,($AR146*Setup!$D$32)-$AI146-$AK146,(($AR146-VLOOKUP($AR146,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR146,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR146,TaxBracket2,1),0,1,1)-$AI146-$AK146),IF($AR146<Setup!$C$21,($AR146*Setup!$D$21)-$AI146-$AK146,(($AR146-VLOOKUP($AR146,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR146,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR146,TaxBracket1,1),0,1,1)-$AI146-$AK146))))","v":1797},{"$f":"IF(ISNUMBER($AL146),($AX146*$AL146)-$AI146-$AK146,MAX(0,IF($AL146=\"B\",IF($AX146<Setup!$C$32,($AX146*Setup!$D$32)-$AI146-$AK146,(($AX146-VLOOKUP($AX146,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX146,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX146,TaxBracket2,1),0,1,1)-$AI146-$AK146),IF($AX146<Setup!$C$21,($AX146*Setup!$D$21)-$AI146-$AK146,(($AX146-VLOOKUP($AX146,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX146,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX146,TaxBracket1,1),0,1,1)-$AI146-$AK146))))","v":0},1797,0.92307692307692313,7.6923076923076927E-2,130000]
[{"$f":"IF(ROW($A147)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B147,\"yyyy\")&TEXT($B147,\"mm\")&\"-\"&$C147)","v":"202312-EXS006"},{"$f":"IF(ROW($A147)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A147)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A147)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A147)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45285},{"$f":"IF(ROW($A147)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A147)-ROW($A$6)-IF(ROW($A147)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A147)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS006"},{"$f":"IF(ISNA(VLOOKUP($C147,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C147,EmpAll,COLUMN(Emp!$B$4),0))","v":"Andrews MS"},{"$f":"IF(ISNA(VLOOKUP($C147,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C147,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C147,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C147,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC147),MONTH($AC147)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C147,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC147),MONTH($AC147),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F147<>\"Active\",0,IF(COUNTIFS(OverEmp,$C147,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMIFS(OverValue,OverEmp,$C147,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1)),IF(AND($AC147>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C147)>0),SUMIFS(EmpIncrease,EmpCode,$C147),SUMIFS(EmpSalary,EmpCode,$C147))))","v":10000},{"$f":"IF($F147<>\"Active\",0,IF(COUNTIFS(OverEmp,$C147,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMIFS(OverValue,OverEmp,$C147,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1)),0))","v":0},{"$f":"IF($F147<>\"Active\",0,IF(COUNTIFS(OverEmp,$C147,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMIFS(OverValue,OverEmp,$C147,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1)),IF(MONTH(B147)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C147),0)))","v":10000},{"$f":"IF($F147<>\"Active\",0,IF(COUNTIFS(OverEmp,$C147,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMIFS(OverValue,OverEmp,$C147,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1)),0))","v":0},{"$f":"IF($F147<>\"Active\",0,IF(COUNTIFS(OverEmp,$C147,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMIFS(OverValue,OverEmp,$C147,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1)),0))","v":0},20000,{"$f":"IF(COUNTIFS(OverEmp,$C147,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMIFS(OverValue,OverEmp,$C147,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1)),(($BA147/12*$AA147)+(BB147*IF(1-$BC147=0,0,BD147/(1-$BC147))))-IF($F147=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC147,PayEmp,$C147)))","v":1797.0000000000011},{"$f":"IF($F147=\"Terminated\",0,IF($AA147=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C147,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMIFS(OverValue,OverEmp,$C147,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA147)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA147,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147))))))","v":200},{"$f":"IF($F147=\"Terminated\",0,IF($AA147=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C147,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMIFS(OverValue,OverEmp,$C147,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA147)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA147,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147))))))","v":0},{"$f":"IF($F147=\"Terminated\",0,IF($AA147=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C147,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMIFS(OverValue,OverEmp,$C147,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA147)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA147,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147))))))","v":0},{"$f":"IF($F147=\"Terminated\",0,IF($AA147=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C147,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMIFS(OverValue,OverEmp,$C147,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA147)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA147,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147))))))","v":0},1997.0000000000011,18003,{"$f":"IF($F147=\"Terminated\",0,IF($AA147=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C147,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMIFS(OverValue,OverEmp,$C147,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA147)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA147,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147)))))))","v":200},{"$f":"IF($F147=\"Terminated\",0,IF($AA147=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C147,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMIFS(OverValue,OverEmp,$C147,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA147)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA147,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147)))))))","v":200},{"$f":"IF($F147=\"Terminated\",0,IF($AA147=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C147,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMIFS(OverValue,OverEmp,$C147,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA147)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA147,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147)))))))","v":0},{"$f":"IF($F147=\"Terminated\",0,IF($AA147=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C147,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMIFS(OverValue,OverEmp,$C147,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA147)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA147,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC147,PayEmp,$C147)))))))","v":0},400,20400,2397,{"$f":"IF(OR($B147<=Setup!$E$12,$B147>=Setup!$D$12+1),0,IF($F147<>\"Active\",0,IF($AE147=\"Yes\",$AB147,((YEAR($AC147)*12)+MONTH($AC147))-((YEAR($AD147)*12)+MONTH($AD147)-1))))","v":10},{"$f":"IF(OR($B147<=Setup!$E$12,$B147>=Setup!$D$12+1),0,((YEAR($AC147)*12)+MONTH($AC147))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":10},45285,{"$f":"IF(ISNA(VLOOKUP($C147,EmpAll,COLUMN(Emp!$E$4),0)),$AC147,IF(VLOOKUP($C147,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C147,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C147,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C147,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C147,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A147=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C147,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMIFS(OverValue,OverEmp,$C147,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1)),IF(ISNA(VLOOKUP($C147,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG147,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C147,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C147,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C147,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C147,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C147,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},130000,{"$f":"-IF($F147=\"Terminated\",0,IF($AA147=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C147,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA147*12)+(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB147/3,0))*4)+(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB147/6,0))*2)+(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F147=\"Terminated\",0,IF($AA147=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C147,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA147*12)+(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB147/3,0))*4)+(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB147/6,0))*2)+(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F147=\"Terminated\",0,IF($AA147=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C147,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA147*12)+(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB147/3,0))*4)+(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB147/6,0))*2)+(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F147=\"Terminated\",0,IF($AA147=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C147,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA147*12)+(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB147/3,0))*4)+(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB147/6,0))*2)+(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},130000,120000,{"$f":"-IF($F147=\"Terminated\",0,IF($AA147=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C147,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA147*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F147=\"Terminated\",0,IF($AA147=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C147,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA147*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F147=\"Terminated\",0,IF($AA147=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C147,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA147*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F147=\"Terminated\",0,IF($AA147=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C147,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC147),MONTH($AC147)+1,1),OverEnd,\">=\"&DATE(YEAR($AC147),MONTH($AC147),1))>0,SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA147*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C147)*(PayDate<=$AC147)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA147*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C147,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C147,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},120000,10000,{"$f":"IF(ISNUMBER($AL147),($AR147*$AL147)-$AI147-$AK147,MAX(0,IF($AL147=\"B\",IF($AR147<Setup!$C$32,($AR147*Setup!$D$32)-$AI147-$AK147,(($AR147-VLOOKUP($AR147,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR147,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR147,TaxBracket2,1),0,1,1)-$AI147-$AK147),IF($AR147<Setup!$C$21,($AR147*Setup!$D$21)-$AI147-$AK147,(($AR147-VLOOKUP($AR147,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR147,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR147,TaxBracket1,1),0,1,1)-$AI147-$AK147))))","v":1797},{"$f":"IF(ISNUMBER($AL147),($AX147*$AL147)-$AI147-$AK147,MAX(0,IF($AL147=\"B\",IF($AX147<Setup!$C$32,($AX147*Setup!$D$32)-$AI147-$AK147,(($AX147-VLOOKUP($AX147,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX147,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX147,TaxBracket2,1),0,1,1)-$AI147-$AK147),IF($AX147<Setup!$C$21,($AX147*Setup!$D$21)-$AI147-$AK147,(($AX147-VLOOKUP($AX147,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX147,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX147,TaxBracket1,1),0,1,1)-$AI147-$AK147))))","v":0},1797,0.92307692307692313,7.6923076923076927E-2,130000]
[{"$f":"IF(ROW($A148)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B148,\"yyyy\")&TEXT($B148,\"mm\")&\"-\"&$C148)","v":"202312-EXS007"},{"$f":"IF(ROW($A148)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A148)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A148)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A148)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45285},{"$f":"IF(ROW($A148)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A148)-ROW($A$6)-IF(ROW($A148)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A148)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS007"},{"$f":"IF(ISNA(VLOOKUP($C148,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C148,EmpAll,COLUMN(Emp!$B$4),0))","v":"Phillips KE"},{"$f":"IF(ISNA(VLOOKUP($C148,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C148,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C148,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C148,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC148),MONTH($AC148)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C148,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC148),MONTH($AC148),0)),\"Terminated\",\"Active\")))","v":"Terminated"},{"$f":"IF($F148<>\"Active\",0,IF(COUNTIFS(OverEmp,$C148,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMIFS(OverValue,OverEmp,$C148,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1)),IF(AND($AC148>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C148)>0),SUMIFS(EmpIncrease,EmpCode,$C148),SUMIFS(EmpSalary,EmpCode,$C148))))","v":0},{"$f":"IF($F148<>\"Active\",0,IF(COUNTIFS(OverEmp,$C148,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMIFS(OverValue,OverEmp,$C148,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1)),0))","v":0},{"$f":"IF($F148<>\"Active\",0,IF(COUNTIFS(OverEmp,$C148,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMIFS(OverValue,OverEmp,$C148,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1)),IF(MONTH(B148)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C148),0)))","v":0},{"$f":"IF($F148<>\"Active\",0,IF(COUNTIFS(OverEmp,$C148,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMIFS(OverValue,OverEmp,$C148,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1)),0))","v":0},{"$f":"IF($F148<>\"Active\",0,IF(COUNTIFS(OverEmp,$C148,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMIFS(OverValue,OverEmp,$C148,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C148,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMIFS(OverValue,OverEmp,$C148,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1)),(($BA148/12*$AA148)+(BB148*IF(1-$BC148=0,0,BD148/(1-$BC148))))-IF($F148=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC148,PayEmp,$C148)))","v":0},{"$f":"IF($F148=\"Terminated\",0,IF($AA148=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C148,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMIFS(OverValue,OverEmp,$C148,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA148)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA148,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148))))))","v":0},{"$f":"IF($F148=\"Terminated\",0,IF($AA148=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C148,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMIFS(OverValue,OverEmp,$C148,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA148)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA148,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148))))))","v":0},{"$f":"IF($F148=\"Terminated\",0,IF($AA148=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C148,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMIFS(OverValue,OverEmp,$C148,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA148)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA148,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148))))))","v":0},{"$f":"IF($F148=\"Terminated\",0,IF($AA148=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C148,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMIFS(OverValue,OverEmp,$C148,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA148)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA148,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148))))))","v":0},0,0,{"$f":"IF($F148=\"Terminated\",0,IF($AA148=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C148,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMIFS(OverValue,OverEmp,$C148,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA148)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA148,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148)))))))","v":0},{"$f":"IF($F148=\"Terminated\",0,IF($AA148=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C148,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMIFS(OverValue,OverEmp,$C148,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA148)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA148,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148)))))))","v":0},{"$f":"IF($F148=\"Terminated\",0,IF($AA148=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C148,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMIFS(OverValue,OverEmp,$C148,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA148)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA148,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148)))))))","v":0},{"$f":"IF($F148=\"Terminated\",0,IF($AA148=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C148,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMIFS(OverValue,OverEmp,$C148,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA148)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA148,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC148,PayEmp,$C148)))))))","v":0},0,0,0,{"$f":"IF(OR($B148<=Setup!$E$12,$B148>=Setup!$D$12+1),0,IF($F148<>\"Active\",0,IF($AE148=\"Yes\",$AB148,((YEAR($AC148)*12)+MONTH($AC148))-((YEAR($AD148)*12)+MONTH($AD148)-1))))","v":0},{"$f":"IF(OR($B148<=Setup!$E$12,$B148>=Setup!$D$12+1),0,((YEAR($AC148)*12)+MONTH($AC148))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":10},45285,{"$f":"IF(ISNA(VLOOKUP($C148,EmpAll,COLUMN(Emp!$E$4),0)),$AC148,IF(VLOOKUP($C148,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C148,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C148,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C148,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C148,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A148=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C148,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMIFS(OverValue,OverEmp,$C148,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1)),IF(ISNA(VLOOKUP($C148,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG148,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C148,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C148,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C148,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C148,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C148,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F148=\"Terminated\",0,IF($AA148=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C148,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA148*12)+(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB148/3,0))*4)+(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB148/6,0))*2)+(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F148=\"Terminated\",0,IF($AA148=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C148,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA148*12)+(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB148/3,0))*4)+(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB148/6,0))*2)+(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F148=\"Terminated\",0,IF($AA148=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C148,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA148*12)+(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB148/3,0))*4)+(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB148/6,0))*2)+(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F148=\"Terminated\",0,IF($AA148=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C148,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA148*12)+(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB148/3,0))*4)+(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB148/6,0))*2)+(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F148=\"Terminated\",0,IF($AA148=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C148,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA148*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F148=\"Terminated\",0,IF($AA148=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C148,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA148*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F148=\"Terminated\",0,IF($AA148=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C148,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA148*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F148=\"Terminated\",0,IF($AA148=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C148,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC148),MONTH($AC148)+1,1),OverEnd,\">=\"&DATE(YEAR($AC148),MONTH($AC148),1))>0,SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA148*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C148)*(PayDate<=$AC148)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA148*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C148,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C148,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL148),($AR148*$AL148)-$AI148-$AK148,MAX(0,IF($AL148=\"B\",IF($AR148<Setup!$C$32,($AR148*Setup!$D$32)-$AI148-$AK148,(($AR148-VLOOKUP($AR148,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR148,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR148,TaxBracket2,1),0,1,1)-$AI148-$AK148),IF($AR148<Setup!$C$21,($AR148*Setup!$D$21)-$AI148-$AK148,(($AR148-VLOOKUP($AR148,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR148,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR148,TaxBracket1,1),0,1,1)-$AI148-$AK148))))","v":0},{"$f":"IF(ISNUMBER($AL148),($AX148*$AL148)-$AI148-$AK148,MAX(0,IF($AL148=\"B\",IF($AX148<Setup!$C$32,($AX148*Setup!$D$32)-$AI148-$AK148,(($AX148-VLOOKUP($AX148,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX148,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX148,TaxBracket2,1),0,1,1)-$AI148-$AK148),IF($AX148<Setup!$C$21,($AX148*Setup!$D$21)-$AI148-$AK148,(($AX148-VLOOKUP($AX148,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX148,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX148,TaxBracket1,1),0,1,1)-$AI148-$AK148))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A149)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B149,\"yyyy\")&TEXT($B149,\"mm\")&\"-\"&$C149)","v":"202312-EXS008"},{"$f":"IF(ROW($A149)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A149)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A149)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A149)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45285},{"$f":"IF(ROW($A149)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A149)-ROW($A$6)-IF(ROW($A149)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A149)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS008"},{"$f":"IF(ISNA(VLOOKUP($C149,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C149,EmpAll,COLUMN(Emp!$B$4),0))","v":"Matthews B"},{"$f":"IF(ISNA(VLOOKUP($C149,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C149,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C149,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C149,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC149),MONTH($AC149)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C149,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC149),MONTH($AC149),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F149<>\"Active\",0,IF(COUNTIFS(OverEmp,$C149,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMIFS(OverValue,OverEmp,$C149,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1)),IF(AND($AC149>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C149)>0),SUMIFS(EmpIncrease,EmpCode,$C149),SUMIFS(EmpSalary,EmpCode,$C149))))","v":9000},{"$f":"IF($F149<>\"Active\",0,IF(COUNTIFS(OverEmp,$C149,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMIFS(OverValue,OverEmp,$C149,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1)),0))","v":0},{"$f":"IF($F149<>\"Active\",0,IF(COUNTIFS(OverEmp,$C149,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMIFS(OverValue,OverEmp,$C149,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1)),IF(MONTH(B149)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C149),0)))","v":9000},{"$f":"IF($F149<>\"Active\",0,IF(COUNTIFS(OverEmp,$C149,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMIFS(OverValue,OverEmp,$C149,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1)),0))","v":0},{"$f":"IF($F149<>\"Active\",0,IF(COUNTIFS(OverEmp,$C149,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMIFS(OverValue,OverEmp,$C149,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1)),0))","v":0},18000,{"$f":"IF(COUNTIFS(OverEmp,$C149,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMIFS(OverValue,OverEmp,$C149,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1)),(($BA149/12*$AA149)+(BB149*IF(1-$BC149=0,0,BD149/(1-$BC149))))-IF($F149=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC149,PayEmp,$C149)))","v":1803.7500000000009},{"$f":"IF($F149=\"Terminated\",0,IF($AA149=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C149,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMIFS(OverValue,OverEmp,$C149,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA149)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA149,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149))))))","v":180},{"$f":"IF($F149=\"Terminated\",0,IF($AA149=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C149,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMIFS(OverValue,OverEmp,$C149,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA149)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA149,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149))))))","v":0},{"$f":"IF($F149=\"Terminated\",0,IF($AA149=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C149,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMIFS(OverValue,OverEmp,$C149,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA149)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA149,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149))))))","v":0},{"$f":"IF($F149=\"Terminated\",0,IF($AA149=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C149,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMIFS(OverValue,OverEmp,$C149,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA149)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA149,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149))))))","v":0},1983.7500000000009,16016.25,{"$f":"IF($F149=\"Terminated\",0,IF($AA149=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C149,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMIFS(OverValue,OverEmp,$C149,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA149)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA149,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149)))))))","v":180},{"$f":"IF($F149=\"Terminated\",0,IF($AA149=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C149,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMIFS(OverValue,OverEmp,$C149,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA149)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA149,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149)))))))","v":180},{"$f":"IF($F149=\"Terminated\",0,IF($AA149=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C149,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMIFS(OverValue,OverEmp,$C149,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA149)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA149,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149)))))))","v":0},{"$f":"IF($F149=\"Terminated\",0,IF($AA149=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C149,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMIFS(OverValue,OverEmp,$C149,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA149)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA149,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC149,PayEmp,$C149)))))))","v":0},360,18360,2343.75,{"$f":"IF(OR($B149<=Setup!$E$12,$B149>=Setup!$D$12+1),0,IF($F149<>\"Active\",0,IF($AE149=\"Yes\",$AB149,((YEAR($AC149)*12)+MONTH($AC149))-((YEAR($AD149)*12)+MONTH($AD149)-1))))","v":10},{"$f":"IF(OR($B149<=Setup!$E$12,$B149>=Setup!$D$12+1),0,((YEAR($AC149)*12)+MONTH($AC149))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":10},45285,{"$f":"IF(ISNA(VLOOKUP($C149,EmpAll,COLUMN(Emp!$E$4),0)),$AC149,IF(VLOOKUP($C149,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C149,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C149,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C149,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C149,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A149=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C149,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMIFS(OverValue,OverEmp,$C149,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1)),IF(ISNA(VLOOKUP($C149,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG149,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C149,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C149,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C149,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C149,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C149,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},117000,{"$f":"-IF($F149=\"Terminated\",0,IF($AA149=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C149,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA149*12)+(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB149/3,0))*4)+(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB149/6,0))*2)+(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F149=\"Terminated\",0,IF($AA149=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C149,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA149*12)+(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB149/3,0))*4)+(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB149/6,0))*2)+(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F149=\"Terminated\",0,IF($AA149=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C149,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA149*12)+(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB149/3,0))*4)+(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB149/6,0))*2)+(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F149=\"Terminated\",0,IF($AA149=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C149,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA149*12)+(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB149/3,0))*4)+(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB149/6,0))*2)+(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},117000,108000,{"$f":"-IF($F149=\"Terminated\",0,IF($AA149=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C149,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA149*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F149=\"Terminated\",0,IF($AA149=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C149,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA149*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F149=\"Terminated\",0,IF($AA149=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C149,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA149*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F149=\"Terminated\",0,IF($AA149=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C149,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC149),MONTH($AC149)+1,1),OverEnd,\">=\"&DATE(YEAR($AC149),MONTH($AC149),1))>0,SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA149*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C149)*(PayDate<=$AC149)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA149*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C149,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C149,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,9000,{"$f":"IF(ISNUMBER($AL149),($AR149*$AL149)-$AI149-$AK149,MAX(0,IF($AL149=\"B\",IF($AR149<Setup!$C$32,($AR149*Setup!$D$32)-$AI149-$AK149,(($AR149-VLOOKUP($AR149,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR149,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR149,TaxBracket2,1),0,1,1)-$AI149-$AK149),IF($AR149<Setup!$C$21,($AR149*Setup!$D$21)-$AI149-$AK149,(($AR149-VLOOKUP($AR149,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR149,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR149,TaxBracket1,1),0,1,1)-$AI149-$AK149))))","v":3825},{"$f":"IF(ISNUMBER($AL149),($AX149*$AL149)-$AI149-$AK149,MAX(0,IF($AL149=\"B\",IF($AX149<Setup!$C$32,($AX149*Setup!$D$32)-$AI149-$AK149,(($AX149-VLOOKUP($AX149,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX149,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX149,TaxBracket2,1),0,1,1)-$AI149-$AK149),IF($AX149<Setup!$C$21,($AX149*Setup!$D$21)-$AI149-$AK149,(($AX149-VLOOKUP($AX149,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX149,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX149,TaxBracket1,1),0,1,1)-$AI149-$AK149))))","v":2205},1620,0.92307692307692313,7.6923076923076927E-2,117000]
[{"$f":"IF(ROW($A150)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B150,\"yyyy\")&TEXT($B150,\"mm\")&\"-\"&$C150)","v":"202312-EXS009"},{"$f":"IF(ROW($A150)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A150)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A150)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A150)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45285},{"$f":"IF(ROW($A150)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A150)-ROW($A$6)-IF(ROW($A150)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A150)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS009"},{"$f":"IF(ISNA(VLOOKUP($C150,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C150,EmpAll,COLUMN(Emp!$B$4),0))","v":"Brown JT"},{"$f":"IF(ISNA(VLOOKUP($C150,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C150,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C150,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C150,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC150),MONTH($AC150)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C150,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC150),MONTH($AC150),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F150<>\"Active\",0,IF(COUNTIFS(OverEmp,$C150,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMIFS(OverValue,OverEmp,$C150,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1)),IF(AND($AC150>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C150)>0),SUMIFS(EmpIncrease,EmpCode,$C150),SUMIFS(EmpSalary,EmpCode,$C150))))","v":9000},{"$f":"IF($F150<>\"Active\",0,IF(COUNTIFS(OverEmp,$C150,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMIFS(OverValue,OverEmp,$C150,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1)),0))","v":0},{"$f":"IF($F150<>\"Active\",0,IF(COUNTIFS(OverEmp,$C150,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMIFS(OverValue,OverEmp,$C150,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1)),IF(MONTH(B150)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C150),0)))","v":9000},{"$f":"IF($F150<>\"Active\",0,IF(COUNTIFS(OverEmp,$C150,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMIFS(OverValue,OverEmp,$C150,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1)),0))","v":0},{"$f":"IF($F150<>\"Active\",0,IF(COUNTIFS(OverEmp,$C150,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMIFS(OverValue,OverEmp,$C150,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1)),0))","v":0},18000,{"$f":"IF(COUNTIFS(OverEmp,$C150,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMIFS(OverValue,OverEmp,$C150,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1)),(($BA150/12*$AA150)+(BB150*IF(1-$BC150=0,0,BD150/(1-$BC150))))-IF($F150=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC150,PayEmp,$C150)))","v":1803.7500000000009},{"$f":"IF($F150=\"Terminated\",0,IF($AA150=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C150,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMIFS(OverValue,OverEmp,$C150,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA150)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA150,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150))))))","v":180},{"$f":"IF($F150=\"Terminated\",0,IF($AA150=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C150,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMIFS(OverValue,OverEmp,$C150,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA150)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA150,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150))))))","v":0},{"$f":"IF($F150=\"Terminated\",0,IF($AA150=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C150,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMIFS(OverValue,OverEmp,$C150,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA150)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA150,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150))))))","v":0},{"$f":"IF($F150=\"Terminated\",0,IF($AA150=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C150,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMIFS(OverValue,OverEmp,$C150,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA150)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA150,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150))))))","v":0},1983.7500000000009,16016.25,{"$f":"IF($F150=\"Terminated\",0,IF($AA150=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C150,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMIFS(OverValue,OverEmp,$C150,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA150)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA150,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150)))))))","v":180},{"$f":"IF($F150=\"Terminated\",0,IF($AA150=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C150,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMIFS(OverValue,OverEmp,$C150,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA150)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA150,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150)))))))","v":180},{"$f":"IF($F150=\"Terminated\",0,IF($AA150=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C150,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMIFS(OverValue,OverEmp,$C150,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA150)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA150,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150)))))))","v":0},{"$f":"IF($F150=\"Terminated\",0,IF($AA150=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C150,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMIFS(OverValue,OverEmp,$C150,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA150)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA150,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC150,PayEmp,$C150)))))))","v":0},360,18360,2343.75,{"$f":"IF(OR($B150<=Setup!$E$12,$B150>=Setup!$D$12+1),0,IF($F150<>\"Active\",0,IF($AE150=\"Yes\",$AB150,((YEAR($AC150)*12)+MONTH($AC150))-((YEAR($AD150)*12)+MONTH($AD150)-1))))","v":10},{"$f":"IF(OR($B150<=Setup!$E$12,$B150>=Setup!$D$12+1),0,((YEAR($AC150)*12)+MONTH($AC150))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":10},45285,{"$f":"IF(ISNA(VLOOKUP($C150,EmpAll,COLUMN(Emp!$E$4),0)),$AC150,IF(VLOOKUP($C150,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C150,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C150,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C150,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C150,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A150=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C150,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMIFS(OverValue,OverEmp,$C150,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1)),IF(ISNA(VLOOKUP($C150,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG150,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C150,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C150,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C150,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C150,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C150,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},117000,{"$f":"-IF($F150=\"Terminated\",0,IF($AA150=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C150,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA150*12)+(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB150/3,0))*4)+(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB150/6,0))*2)+(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F150=\"Terminated\",0,IF($AA150=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C150,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA150*12)+(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB150/3,0))*4)+(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB150/6,0))*2)+(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F150=\"Terminated\",0,IF($AA150=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C150,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA150*12)+(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB150/3,0))*4)+(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB150/6,0))*2)+(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F150=\"Terminated\",0,IF($AA150=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C150,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA150*12)+(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB150/3,0))*4)+(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB150/6,0))*2)+(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},117000,108000,{"$f":"-IF($F150=\"Terminated\",0,IF($AA150=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C150,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA150*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F150=\"Terminated\",0,IF($AA150=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C150,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA150*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F150=\"Terminated\",0,IF($AA150=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C150,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA150*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F150=\"Terminated\",0,IF($AA150=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C150,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC150),MONTH($AC150)+1,1),OverEnd,\">=\"&DATE(YEAR($AC150),MONTH($AC150),1))>0,SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA150*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C150)*(PayDate<=$AC150)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA150*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C150,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C150,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,9000,{"$f":"IF(ISNUMBER($AL150),($AR150*$AL150)-$AI150-$AK150,MAX(0,IF($AL150=\"B\",IF($AR150<Setup!$C$32,($AR150*Setup!$D$32)-$AI150-$AK150,(($AR150-VLOOKUP($AR150,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR150,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR150,TaxBracket2,1),0,1,1)-$AI150-$AK150),IF($AR150<Setup!$C$21,($AR150*Setup!$D$21)-$AI150-$AK150,(($AR150-VLOOKUP($AR150,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR150,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR150,TaxBracket1,1),0,1,1)-$AI150-$AK150))))","v":3825},{"$f":"IF(ISNUMBER($AL150),($AX150*$AL150)-$AI150-$AK150,MAX(0,IF($AL150=\"B\",IF($AX150<Setup!$C$32,($AX150*Setup!$D$32)-$AI150-$AK150,(($AX150-VLOOKUP($AX150,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX150,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX150,TaxBracket2,1),0,1,1)-$AI150-$AK150),IF($AX150<Setup!$C$21,($AX150*Setup!$D$21)-$AI150-$AK150,(($AX150-VLOOKUP($AX150,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX150,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX150,TaxBracket1,1),0,1,1)-$AI150-$AK150))))","v":2205},1620,0.92307692307692313,7.6923076923076927E-2,117000]
[{"$f":"IF(ROW($A151)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B151,\"yyyy\")&TEXT($B151,\"mm\")&\"-\"&$C151)","v":"202312-EXS010"},{"$f":"IF(ROW($A151)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A151)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A151)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A151)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45285},{"$f":"IF(ROW($A151)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A151)-ROW($A$6)-IF(ROW($A151)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A151)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS010"},{"$f":"IF(ISNA(VLOOKUP($C151,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C151,EmpAll,COLUMN(Emp!$B$4),0))","v":"Lewis I"},{"$f":"IF(ISNA(VLOOKUP($C151,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C151,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C151,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C151,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC151),MONTH($AC151)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C151,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC151),MONTH($AC151),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F151<>\"Active\",0,IF(COUNTIFS(OverEmp,$C151,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMIFS(OverValue,OverEmp,$C151,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1)),IF(AND($AC151>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C151)>0),SUMIFS(EmpIncrease,EmpCode,$C151),SUMIFS(EmpSalary,EmpCode,$C151))))","v":9000},{"$f":"IF($F151<>\"Active\",0,IF(COUNTIFS(OverEmp,$C151,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMIFS(OverValue,OverEmp,$C151,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1)),0))","v":0},{"$f":"IF($F151<>\"Active\",0,IF(COUNTIFS(OverEmp,$C151,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMIFS(OverValue,OverEmp,$C151,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1)),IF(MONTH(B151)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C151),0)))","v":9000},{"$f":"IF($F151<>\"Active\",0,IF(COUNTIFS(OverEmp,$C151,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMIFS(OverValue,OverEmp,$C151,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1)),0))","v":0},{"$f":"IF($F151<>\"Active\",0,IF(COUNTIFS(OverEmp,$C151,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMIFS(OverValue,OverEmp,$C151,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1)),0))","v":0},18000,{"$f":"IF(COUNTIFS(OverEmp,$C151,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMIFS(OverValue,OverEmp,$C151,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1)),(($BA151/12*$AA151)+(BB151*IF(1-$BC151=0,0,BD151/(1-$BC151))))-IF($F151=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC151,PayEmp,$C151)))","v":1803.7500000000009},{"$f":"IF($F151=\"Terminated\",0,IF($AA151=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C151,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMIFS(OverValue,OverEmp,$C151,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA151)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA151,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151))))))","v":180},{"$f":"IF($F151=\"Terminated\",0,IF($AA151=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C151,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMIFS(OverValue,OverEmp,$C151,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA151)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA151,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151))))))","v":0},{"$f":"IF($F151=\"Terminated\",0,IF($AA151=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C151,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMIFS(OverValue,OverEmp,$C151,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA151)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA151,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151))))))","v":0},{"$f":"IF($F151=\"Terminated\",0,IF($AA151=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C151,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMIFS(OverValue,OverEmp,$C151,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA151)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA151,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151))))))","v":0},1983.7500000000009,16016.25,{"$f":"IF($F151=\"Terminated\",0,IF($AA151=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C151,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMIFS(OverValue,OverEmp,$C151,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA151)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA151,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151)))))))","v":180},{"$f":"IF($F151=\"Terminated\",0,IF($AA151=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C151,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMIFS(OverValue,OverEmp,$C151,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA151)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA151,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151)))))))","v":180},{"$f":"IF($F151=\"Terminated\",0,IF($AA151=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C151,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMIFS(OverValue,OverEmp,$C151,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA151)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA151,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151)))))))","v":0},{"$f":"IF($F151=\"Terminated\",0,IF($AA151=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C151,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMIFS(OverValue,OverEmp,$C151,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA151)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA151,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC151,PayEmp,$C151)))))))","v":0},360,18360,2343.75,{"$f":"IF(OR($B151<=Setup!$E$12,$B151>=Setup!$D$12+1),0,IF($F151<>\"Active\",0,IF($AE151=\"Yes\",$AB151,((YEAR($AC151)*12)+MONTH($AC151))-((YEAR($AD151)*12)+MONTH($AD151)-1))))","v":10},{"$f":"IF(OR($B151<=Setup!$E$12,$B151>=Setup!$D$12+1),0,((YEAR($AC151)*12)+MONTH($AC151))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":10},45285,{"$f":"IF(ISNA(VLOOKUP($C151,EmpAll,COLUMN(Emp!$E$4),0)),$AC151,IF(VLOOKUP($C151,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C151,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C151,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C151,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C151,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A151=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C151,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMIFS(OverValue,OverEmp,$C151,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1)),IF(ISNA(VLOOKUP($C151,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG151,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C151,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C151,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C151,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C151,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C151,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},117000,{"$f":"-IF($F151=\"Terminated\",0,IF($AA151=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C151,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA151*12)+(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB151/3,0))*4)+(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB151/6,0))*2)+(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F151=\"Terminated\",0,IF($AA151=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C151,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA151*12)+(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB151/3,0))*4)+(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB151/6,0))*2)+(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F151=\"Terminated\",0,IF($AA151=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C151,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA151*12)+(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB151/3,0))*4)+(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB151/6,0))*2)+(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F151=\"Terminated\",0,IF($AA151=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C151,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA151*12)+(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB151/3,0))*4)+(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB151/6,0))*2)+(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},117000,108000,{"$f":"-IF($F151=\"Terminated\",0,IF($AA151=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C151,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA151*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F151=\"Terminated\",0,IF($AA151=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C151,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA151*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F151=\"Terminated\",0,IF($AA151=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C151,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA151*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F151=\"Terminated\",0,IF($AA151=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C151,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC151),MONTH($AC151)+1,1),OverEnd,\">=\"&DATE(YEAR($AC151),MONTH($AC151),1))>0,SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA151*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C151)*(PayDate<=$AC151)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA151*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C151,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C151,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},108000,9000,{"$f":"IF(ISNUMBER($AL151),($AR151*$AL151)-$AI151-$AK151,MAX(0,IF($AL151=\"B\",IF($AR151<Setup!$C$32,($AR151*Setup!$D$32)-$AI151-$AK151,(($AR151-VLOOKUP($AR151,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR151,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR151,TaxBracket2,1),0,1,1)-$AI151-$AK151),IF($AR151<Setup!$C$21,($AR151*Setup!$D$21)-$AI151-$AK151,(($AR151-VLOOKUP($AR151,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR151,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR151,TaxBracket1,1),0,1,1)-$AI151-$AK151))))","v":3825},{"$f":"IF(ISNUMBER($AL151),($AX151*$AL151)-$AI151-$AK151,MAX(0,IF($AL151=\"B\",IF($AX151<Setup!$C$32,($AX151*Setup!$D$32)-$AI151-$AK151,(($AX151-VLOOKUP($AX151,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX151,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX151,TaxBracket2,1),0,1,1)-$AI151-$AK151),IF($AX151<Setup!$C$21,($AX151*Setup!$D$21)-$AI151-$AK151,(($AX151-VLOOKUP($AX151,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX151,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX151,TaxBracket1,1),0,1,1)-$AI151-$AK151))))","v":2205},1620,0.92307692307692313,7.6923076923076927E-2,117000]
[{"$f":"IF(ROW($A152)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B152,\"yyyy\")&TEXT($B152,\"mm\")&\"-\"&$C152)","v":"202312-EXS011"},{"$f":"IF(ROW($A152)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A152)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A152)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A152)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45285},{"$f":"IF(ROW($A152)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A152)-ROW($A$6)-IF(ROW($A152)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A152)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS011"},{"$f":"IF(ISNA(VLOOKUP($C152,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C152,EmpAll,COLUMN(Emp!$B$4),0))","v":"Newport GD"},{"$f":"IF(ISNA(VLOOKUP($C152,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C152,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C152,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C152,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC152),MONTH($AC152)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C152,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC152),MONTH($AC152),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F152<>\"Active\",0,IF(COUNTIFS(OverEmp,$C152,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMIFS(OverValue,OverEmp,$C152,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1)),IF(AND($AC152>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C152)>0),SUMIFS(EmpIncrease,EmpCode,$C152),SUMIFS(EmpSalary,EmpCode,$C152))))","v":5000},{"$f":"IF($F152<>\"Active\",0,IF(COUNTIFS(OverEmp,$C152,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMIFS(OverValue,OverEmp,$C152,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1)),0))","v":0},{"$f":"IF($F152<>\"Active\",0,IF(COUNTIFS(OverEmp,$C152,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMIFS(OverValue,OverEmp,$C152,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1)),IF(MONTH(B152)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C152),0)))","v":5000},{"$f":"IF($F152<>\"Active\",0,IF(COUNTIFS(OverEmp,$C152,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMIFS(OverValue,OverEmp,$C152,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1)),0))","v":0},{"$f":"IF($F152<>\"Active\",0,IF(COUNTIFS(OverEmp,$C152,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMIFS(OverValue,OverEmp,$C152,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C152,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMIFS(OverValue,OverEmp,$C152,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1)),(($BA152/12*$AA152)+(BB152*IF(1-$BC152=0,0,BD152/(1-$BC152))))-IF($F152=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC152,PayEmp,$C152)))","v":0},{"$f":"IF($F152=\"Terminated\",0,IF($AA152=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C152,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMIFS(OverValue,OverEmp,$C152,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA152)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA152,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152))))))","v":100},{"$f":"IF($F152=\"Terminated\",0,IF($AA152=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C152,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMIFS(OverValue,OverEmp,$C152,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA152)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA152,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152))))))","v":0},{"$f":"IF($F152=\"Terminated\",0,IF($AA152=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C152,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMIFS(OverValue,OverEmp,$C152,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA152)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA152,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152))))))","v":0},{"$f":"IF($F152=\"Terminated\",0,IF($AA152=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C152,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMIFS(OverValue,OverEmp,$C152,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA152)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA152,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152))))))","v":0},100,9900,{"$f":"IF($F152=\"Terminated\",0,IF($AA152=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C152,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMIFS(OverValue,OverEmp,$C152,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA152)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA152,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152)))))))","v":100},{"$f":"IF($F152=\"Terminated\",0,IF($AA152=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C152,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMIFS(OverValue,OverEmp,$C152,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA152)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA152,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152)))))))","v":100},{"$f":"IF($F152=\"Terminated\",0,IF($AA152=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C152,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMIFS(OverValue,OverEmp,$C152,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA152)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA152,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152)))))))","v":0},{"$f":"IF($F152=\"Terminated\",0,IF($AA152=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C152,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMIFS(OverValue,OverEmp,$C152,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA152)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA152,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC152,PayEmp,$C152)))))))","v":0},200,10200,300,{"$f":"IF(OR($B152<=Setup!$E$12,$B152>=Setup!$D$12+1),0,IF($F152<>\"Active\",0,IF($AE152=\"Yes\",$AB152,((YEAR($AC152)*12)+MONTH($AC152))-((YEAR($AD152)*12)+MONTH($AD152)-1))))","v":10},{"$f":"IF(OR($B152<=Setup!$E$12,$B152>=Setup!$D$12+1),0,((YEAR($AC152)*12)+MONTH($AC152))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":10},45285,{"$f":"IF(ISNA(VLOOKUP($C152,EmpAll,COLUMN(Emp!$E$4),0)),$AC152,IF(VLOOKUP($C152,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C152,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C152,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C152,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C152,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A152=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C152,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMIFS(OverValue,OverEmp,$C152,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1)),IF(ISNA(VLOOKUP($C152,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG152,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C152,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C152,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C152,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C152,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C152,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},65000,{"$f":"-IF($F152=\"Terminated\",0,IF($AA152=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C152,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA152*12)+(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB152/3,0))*4)+(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB152/6,0))*2)+(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F152=\"Terminated\",0,IF($AA152=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C152,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA152*12)+(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB152/3,0))*4)+(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB152/6,0))*2)+(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F152=\"Terminated\",0,IF($AA152=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C152,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA152*12)+(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB152/3,0))*4)+(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB152/6,0))*2)+(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F152=\"Terminated\",0,IF($AA152=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C152,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA152*12)+(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB152/3,0))*4)+(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB152/6,0))*2)+(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},65000,60000,{"$f":"-IF($F152=\"Terminated\",0,IF($AA152=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C152,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA152*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F152=\"Terminated\",0,IF($AA152=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C152,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA152*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F152=\"Terminated\",0,IF($AA152=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C152,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA152*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F152=\"Terminated\",0,IF($AA152=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C152,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC152),MONTH($AC152)+1,1),OverEnd,\">=\"&DATE(YEAR($AC152),MONTH($AC152),1))>0,SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA152*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C152)*(PayDate<=$AC152)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA152*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C152,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C152,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,5000,{"$f":"IF(ISNUMBER($AL152),($AR152*$AL152)-$AI152-$AK152,MAX(0,IF($AL152=\"B\",IF($AR152<Setup!$C$32,($AR152*Setup!$D$32)-$AI152-$AK152,(($AR152-VLOOKUP($AR152,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR152,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR152,TaxBracket2,1),0,1,1)-$AI152-$AK152),IF($AR152<Setup!$C$21,($AR152*Setup!$D$21)-$AI152-$AK152,(($AR152-VLOOKUP($AR152,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR152,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR152,TaxBracket1,1),0,1,1)-$AI152-$AK152))))","v":0},{"$f":"IF(ISNUMBER($AL152),($AX152*$AL152)-$AI152-$AK152,MAX(0,IF($AL152=\"B\",IF($AX152<Setup!$C$32,($AX152*Setup!$D$32)-$AI152-$AK152,(($AX152-VLOOKUP($AX152,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX152,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX152,TaxBracket2,1),0,1,1)-$AI152-$AK152),IF($AX152<Setup!$C$21,($AX152*Setup!$D$21)-$AI152-$AK152,(($AX152-VLOOKUP($AX152,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX152,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX152,TaxBracket1,1),0,1,1)-$AI152-$AK152))))","v":0},0,0.92307692307692313,7.6923076923076927E-2,65000]
[{"$f":"IF(ROW($A153)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B153,\"yyyy\")&TEXT($B153,\"mm\")&\"-\"&$C153)","v":"202312-EXS012"},{"$f":"IF(ROW($A153)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A153)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A153)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A153)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45285},{"$f":"IF(ROW($A153)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A153)-ROW($A$6)-IF(ROW($A153)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A153)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS012"},{"$f":"IF(ISNA(VLOOKUP($C153,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C153,EmpAll,COLUMN(Emp!$B$4),0))","v":"Williams VS"},{"$f":"IF(ISNA(VLOOKUP($C153,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C153,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C153,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C153,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC153),MONTH($AC153)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C153,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC153),MONTH($AC153),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F153<>\"Active\",0,IF(COUNTIFS(OverEmp,$C153,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMIFS(OverValue,OverEmp,$C153,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1)),IF(AND($AC153>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C153)>0),SUMIFS(EmpIncrease,EmpCode,$C153),SUMIFS(EmpSalary,EmpCode,$C153))))","v":5000},{"$f":"IF($F153<>\"Active\",0,IF(COUNTIFS(OverEmp,$C153,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMIFS(OverValue,OverEmp,$C153,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1)),0))","v":0},{"$f":"IF($F153<>\"Active\",0,IF(COUNTIFS(OverEmp,$C153,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMIFS(OverValue,OverEmp,$C153,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1)),IF(MONTH(B153)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C153),0)))","v":5000},{"$f":"IF($F153<>\"Active\",0,IF(COUNTIFS(OverEmp,$C153,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMIFS(OverValue,OverEmp,$C153,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1)),0))","v":0},{"$f":"IF($F153<>\"Active\",0,IF(COUNTIFS(OverEmp,$C153,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMIFS(OverValue,OverEmp,$C153,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C153,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMIFS(OverValue,OverEmp,$C153,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1)),(($BA153/12*$AA153)+(BB153*IF(1-$BC153=0,0,BD153/(1-$BC153))))-IF($F153=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC153,PayEmp,$C153)))","v":0},{"$f":"IF($F153=\"Terminated\",0,IF($AA153=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C153,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMIFS(OverValue,OverEmp,$C153,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA153)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA153,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153))))))","v":100},{"$f":"IF($F153=\"Terminated\",0,IF($AA153=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C153,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMIFS(OverValue,OverEmp,$C153,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA153)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA153,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153))))))","v":0},{"$f":"IF($F153=\"Terminated\",0,IF($AA153=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C153,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMIFS(OverValue,OverEmp,$C153,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA153)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA153,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153))))))","v":0},{"$f":"IF($F153=\"Terminated\",0,IF($AA153=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C153,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMIFS(OverValue,OverEmp,$C153,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA153)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA153,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153))))))","v":0},100,9900,{"$f":"IF($F153=\"Terminated\",0,IF($AA153=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C153,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMIFS(OverValue,OverEmp,$C153,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA153)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA153,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153)))))))","v":100},{"$f":"IF($F153=\"Terminated\",0,IF($AA153=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C153,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMIFS(OverValue,OverEmp,$C153,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA153)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA153,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153)))))))","v":100},{"$f":"IF($F153=\"Terminated\",0,IF($AA153=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C153,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMIFS(OverValue,OverEmp,$C153,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA153)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA153,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153)))))))","v":0},{"$f":"IF($F153=\"Terminated\",0,IF($AA153=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C153,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMIFS(OverValue,OverEmp,$C153,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA153)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA153,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC153,PayEmp,$C153)))))))","v":0},200,10200,300,{"$f":"IF(OR($B153<=Setup!$E$12,$B153>=Setup!$D$12+1),0,IF($F153<>\"Active\",0,IF($AE153=\"Yes\",$AB153,((YEAR($AC153)*12)+MONTH($AC153))-((YEAR($AD153)*12)+MONTH($AD153)-1))))","v":10},{"$f":"IF(OR($B153<=Setup!$E$12,$B153>=Setup!$D$12+1),0,((YEAR($AC153)*12)+MONTH($AC153))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":10},45285,{"$f":"IF(ISNA(VLOOKUP($C153,EmpAll,COLUMN(Emp!$E$4),0)),$AC153,IF(VLOOKUP($C153,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C153,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C153,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C153,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C153,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A153=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C153,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMIFS(OverValue,OverEmp,$C153,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1)),IF(ISNA(VLOOKUP($C153,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG153,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C153,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C153,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C153,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C153,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C153,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},65000,{"$f":"-IF($F153=\"Terminated\",0,IF($AA153=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C153,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA153*12)+(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB153/3,0))*4)+(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB153/6,0))*2)+(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F153=\"Terminated\",0,IF($AA153=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C153,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA153*12)+(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB153/3,0))*4)+(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB153/6,0))*2)+(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F153=\"Terminated\",0,IF($AA153=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C153,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA153*12)+(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB153/3,0))*4)+(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB153/6,0))*2)+(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F153=\"Terminated\",0,IF($AA153=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C153,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA153*12)+(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB153/3,0))*4)+(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB153/6,0))*2)+(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},65000,60000,{"$f":"-IF($F153=\"Terminated\",0,IF($AA153=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C153,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA153*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F153=\"Terminated\",0,IF($AA153=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C153,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA153*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F153=\"Terminated\",0,IF($AA153=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C153,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA153*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F153=\"Terminated\",0,IF($AA153=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C153,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC153),MONTH($AC153)+1,1),OverEnd,\">=\"&DATE(YEAR($AC153),MONTH($AC153),1))>0,SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA153*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C153)*(PayDate<=$AC153)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA153*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C153,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C153,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,5000,{"$f":"IF(ISNUMBER($AL153),($AR153*$AL153)-$AI153-$AK153,MAX(0,IF($AL153=\"B\",IF($AR153<Setup!$C$32,($AR153*Setup!$D$32)-$AI153-$AK153,(($AR153-VLOOKUP($AR153,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR153,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR153,TaxBracket2,1),0,1,1)-$AI153-$AK153),IF($AR153<Setup!$C$21,($AR153*Setup!$D$21)-$AI153-$AK153,(($AR153-VLOOKUP($AR153,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR153,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR153,TaxBracket1,1),0,1,1)-$AI153-$AK153))))","v":0},{"$f":"IF(ISNUMBER($AL153),($AX153*$AL153)-$AI153-$AK153,MAX(0,IF($AL153=\"B\",IF($AX153<Setup!$C$32,($AX153*Setup!$D$32)-$AI153-$AK153,(($AX153-VLOOKUP($AX153,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX153,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX153,TaxBracket2,1),0,1,1)-$AI153-$AK153),IF($AX153<Setup!$C$21,($AX153*Setup!$D$21)-$AI153-$AK153,(($AX153-VLOOKUP($AX153,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX153,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX153,TaxBracket1,1),0,1,1)-$AI153-$AK153))))","v":0},0,0.92307692307692313,7.6923076923076927E-2,65000]
[{"$f":"IF(ROW($A154)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B154,\"yyyy\")&TEXT($B154,\"mm\")&\"-\"&$C154)","v":"202312-EXS013"},{"$f":"IF(ROW($A154)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A154)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A154)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A154)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45285},{"$f":"IF(ROW($A154)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A154)-ROW($A$6)-IF(ROW($A154)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A154)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS013"},{"$f":"IF(ISNA(VLOOKUP($C154,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C154,EmpAll,COLUMN(Emp!$B$4),0))","v":"East WD"},{"$f":"IF(ISNA(VLOOKUP($C154,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C154,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C154,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C154,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC154),MONTH($AC154)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C154,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC154),MONTH($AC154),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F154<>\"Active\",0,IF(COUNTIFS(OverEmp,$C154,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMIFS(OverValue,OverEmp,$C154,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1)),IF(AND($AC154>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C154)>0),SUMIFS(EmpIncrease,EmpCode,$C154),SUMIFS(EmpSalary,EmpCode,$C154))))","v":5000},{"$f":"IF($F154<>\"Active\",0,IF(COUNTIFS(OverEmp,$C154,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMIFS(OverValue,OverEmp,$C154,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1)),0))","v":0},{"$f":"IF($F154<>\"Active\",0,IF(COUNTIFS(OverEmp,$C154,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMIFS(OverValue,OverEmp,$C154,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1)),IF(MONTH(B154)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C154),0)))","v":5000},{"$f":"IF($F154<>\"Active\",0,IF(COUNTIFS(OverEmp,$C154,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMIFS(OverValue,OverEmp,$C154,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1)),0))","v":0},{"$f":"IF($F154<>\"Active\",0,IF(COUNTIFS(OverEmp,$C154,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMIFS(OverValue,OverEmp,$C154,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C154,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMIFS(OverValue,OverEmp,$C154,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1)),(($BA154/12*$AA154)+(BB154*IF(1-$BC154=0,0,BD154/(1-$BC154))))-IF($F154=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC154,PayEmp,$C154)))","v":0},{"$f":"IF($F154=\"Terminated\",0,IF($AA154=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C154,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMIFS(OverValue,OverEmp,$C154,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA154)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA154,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154))))))","v":100},{"$f":"IF($F154=\"Terminated\",0,IF($AA154=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C154,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMIFS(OverValue,OverEmp,$C154,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA154)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA154,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154))))))","v":0},{"$f":"IF($F154=\"Terminated\",0,IF($AA154=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C154,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMIFS(OverValue,OverEmp,$C154,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA154)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA154,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154))))))","v":0},{"$f":"IF($F154=\"Terminated\",0,IF($AA154=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C154,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMIFS(OverValue,OverEmp,$C154,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA154)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA154,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154))))))","v":0},100,9900,{"$f":"IF($F154=\"Terminated\",0,IF($AA154=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C154,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMIFS(OverValue,OverEmp,$C154,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA154)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA154,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154)))))))","v":100},{"$f":"IF($F154=\"Terminated\",0,IF($AA154=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C154,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMIFS(OverValue,OverEmp,$C154,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA154)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA154,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154)))))))","v":100},{"$f":"IF($F154=\"Terminated\",0,IF($AA154=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C154,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMIFS(OverValue,OverEmp,$C154,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA154)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA154,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154)))))))","v":0},{"$f":"IF($F154=\"Terminated\",0,IF($AA154=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C154,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMIFS(OverValue,OverEmp,$C154,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA154)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA154,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC154,PayEmp,$C154)))))))","v":0},200,10200,300,{"$f":"IF(OR($B154<=Setup!$E$12,$B154>=Setup!$D$12+1),0,IF($F154<>\"Active\",0,IF($AE154=\"Yes\",$AB154,((YEAR($AC154)*12)+MONTH($AC154))-((YEAR($AD154)*12)+MONTH($AD154)-1))))","v":10},{"$f":"IF(OR($B154<=Setup!$E$12,$B154>=Setup!$D$12+1),0,((YEAR($AC154)*12)+MONTH($AC154))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":10},45285,{"$f":"IF(ISNA(VLOOKUP($C154,EmpAll,COLUMN(Emp!$E$4),0)),$AC154,IF(VLOOKUP($C154,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C154,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C154,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C154,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C154,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A154=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C154,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMIFS(OverValue,OverEmp,$C154,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1)),IF(ISNA(VLOOKUP($C154,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG154,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C154,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C154,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C154,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C154,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C154,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},65000,{"$f":"-IF($F154=\"Terminated\",0,IF($AA154=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C154,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA154*12)+(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB154/3,0))*4)+(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB154/6,0))*2)+(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F154=\"Terminated\",0,IF($AA154=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C154,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA154*12)+(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB154/3,0))*4)+(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB154/6,0))*2)+(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F154=\"Terminated\",0,IF($AA154=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C154,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA154*12)+(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB154/3,0))*4)+(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB154/6,0))*2)+(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F154=\"Terminated\",0,IF($AA154=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C154,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA154*12)+(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB154/3,0))*4)+(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB154/6,0))*2)+(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},65000,60000,{"$f":"-IF($F154=\"Terminated\",0,IF($AA154=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C154,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA154*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F154=\"Terminated\",0,IF($AA154=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C154,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA154*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F154=\"Terminated\",0,IF($AA154=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C154,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA154*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F154=\"Terminated\",0,IF($AA154=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C154,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC154),MONTH($AC154)+1,1),OverEnd,\">=\"&DATE(YEAR($AC154),MONTH($AC154),1))>0,SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA154*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C154)*(PayDate<=$AC154)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA154*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C154,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C154,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},60000,5000,{"$f":"IF(ISNUMBER($AL154),($AR154*$AL154)-$AI154-$AK154,MAX(0,IF($AL154=\"B\",IF($AR154<Setup!$C$32,($AR154*Setup!$D$32)-$AI154-$AK154,(($AR154-VLOOKUP($AR154,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR154,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR154,TaxBracket2,1),0,1,1)-$AI154-$AK154),IF($AR154<Setup!$C$21,($AR154*Setup!$D$21)-$AI154-$AK154,(($AR154-VLOOKUP($AR154,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR154,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR154,TaxBracket1,1),0,1,1)-$AI154-$AK154))))","v":0},{"$f":"IF(ISNUMBER($AL154),($AX154*$AL154)-$AI154-$AK154,MAX(0,IF($AL154=\"B\",IF($AX154<Setup!$C$32,($AX154*Setup!$D$32)-$AI154-$AK154,(($AX154-VLOOKUP($AX154,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX154,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX154,TaxBracket2,1),0,1,1)-$AI154-$AK154),IF($AX154<Setup!$C$21,($AX154*Setup!$D$21)-$AI154-$AK154,(($AX154-VLOOKUP($AX154,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX154,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX154,TaxBracket1,1),0,1,1)-$AI154-$AK154))))","v":0},0,0.92307692307692313,7.6923076923076927E-2,65000]
[{"$f":"IF(ROW($A155)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B155,\"yyyy\")&TEXT($B155,\"mm\")&\"-\"&$C155)","v":"202312-EXS014"},{"$f":"IF(ROW($A155)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A155)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A155)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A155)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45285},{"$f":"IF(ROW($A155)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A155)-ROW($A$6)-IF(ROW($A155)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A155)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS014"},{"$f":"IF(ISNA(VLOOKUP($C155,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C155,EmpAll,COLUMN(Emp!$B$4),0))","v":"Ross Q"},{"$f":"IF(ISNA(VLOOKUP($C155,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C155,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C155,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C155,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC155),MONTH($AC155)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C155,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC155),MONTH($AC155),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F155<>\"Active\",0,IF(COUNTIFS(OverEmp,$C155,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMIFS(OverValue,OverEmp,$C155,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1)),IF(AND($AC155>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C155)>0),SUMIFS(EmpIncrease,EmpCode,$C155),SUMIFS(EmpSalary,EmpCode,$C155))))","v":29150},{"$f":"IF($F155<>\"Active\",0,IF(COUNTIFS(OverEmp,$C155,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMIFS(OverValue,OverEmp,$C155,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1)),0))","v":0},{"$f":"IF($F155<>\"Active\",0,IF(COUNTIFS(OverEmp,$C155,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMIFS(OverValue,OverEmp,$C155,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1)),IF(MONTH(B155)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C155),0)))","v":0},{"$f":"IF($F155<>\"Active\",0,IF(COUNTIFS(OverEmp,$C155,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMIFS(OverValue,OverEmp,$C155,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1)),0))","v":0},{"$f":"IF($F155<>\"Active\",0,IF(COUNTIFS(OverEmp,$C155,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMIFS(OverValue,OverEmp,$C155,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1)),0))","v":0},29150,{"$f":"IF(COUNTIFS(OverEmp,$C155,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMIFS(OverValue,OverEmp,$C155,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1)),(($BA155/12*$AA155)+(BB155*IF(1-$BC155=0,0,BD155/(1-$BC155))))-IF($F155=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC155,PayEmp,$C155)))","v":4562.0833333333321},{"$f":"IF($F155=\"Terminated\",0,IF($AA155=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C155,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMIFS(OverValue,OverEmp,$C155,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA155)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA155,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155))))))","v":177.11999999999989},{"$f":"IF($F155=\"Terminated\",0,IF($AA155=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C155,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMIFS(OverValue,OverEmp,$C155,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA155)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA155,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155))))))","v":0},{"$f":"IF($F155=\"Terminated\",0,IF($AA155=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C155,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMIFS(OverValue,OverEmp,$C155,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA155)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA155,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155))))))","v":0},{"$f":"IF($F155=\"Terminated\",0,IF($AA155=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C155,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMIFS(OverValue,OverEmp,$C155,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA155)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA155,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155))))))","v":0},4739.203333333332,24410.799999999999,{"$f":"IF($F155=\"Terminated\",0,IF($AA155=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C155,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMIFS(OverValue,OverEmp,$C155,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA155)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA155,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155)))))))","v":177.11999999999989},{"$f":"IF($F155=\"Terminated\",0,IF($AA155=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C155,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMIFS(OverValue,OverEmp,$C155,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA155)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA155,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155)))))))","v":291.5},{"$f":"IF($F155=\"Terminated\",0,IF($AA155=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C155,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMIFS(OverValue,OverEmp,$C155,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA155)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA155,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155)))))))","v":0},{"$f":"IF($F155=\"Terminated\",0,IF($AA155=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C155,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMIFS(OverValue,OverEmp,$C155,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA155)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA155,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC155,PayEmp,$C155)))))))","v":0},468.61999999999989,29618.62,5207.82,{"$f":"IF(OR($B155<=Setup!$E$12,$B155>=Setup!$D$12+1),0,IF($F155<>\"Active\",0,IF($AE155=\"Yes\",$AB155,((YEAR($AC155)*12)+MONTH($AC155))-((YEAR($AD155)*12)+MONTH($AD155)-1))))","v":7},{"$f":"IF(OR($B155<=Setup!$E$12,$B155>=Setup!$D$12+1),0,((YEAR($AC155)*12)+MONTH($AC155))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":10},45285,{"$f":"IF(ISNA(VLOOKUP($C155,EmpAll,COLUMN(Emp!$E$4),0)),$AC155,IF(VLOOKUP($C155,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C155,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-06-25"},{"$f":"IF(ISNA(VLOOKUP($C155,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C155,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C155,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A155=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C155,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMIFS(OverValue,OverEmp,$C155,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1)),IF(ISNA(VLOOKUP($C155,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG155,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C155,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C155,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C155,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C155,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C155,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},349800,{"$f":"-IF($F155=\"Terminated\",0,IF($AA155=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C155,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA155*12)+(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB155/3,0))*4)+(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB155/6,0))*2)+(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F155=\"Terminated\",0,IF($AA155=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C155,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA155*12)+(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB155/3,0))*4)+(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB155/6,0))*2)+(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F155=\"Terminated\",0,IF($AA155=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C155,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA155*12)+(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB155/3,0))*4)+(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB155/6,0))*2)+(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F155=\"Terminated\",0,IF($AA155=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C155,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA155*12)+(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB155/3,0))*4)+(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB155/6,0))*2)+(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},349800,349800,{"$f":"-IF($F155=\"Terminated\",0,IF($AA155=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C155,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA155*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F155=\"Terminated\",0,IF($AA155=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C155,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA155*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F155=\"Terminated\",0,IF($AA155=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C155,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA155*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F155=\"Terminated\",0,IF($AA155=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C155,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC155),MONTH($AC155)+1,1),OverEnd,\">=\"&DATE(YEAR($AC155),MONTH($AC155),1))>0,SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA155*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C155)*(PayDate<=$AC155)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA155*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C155,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C155,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},349800,0,{"$f":"IF(ISNUMBER($AL155),($AR155*$AL155)-$AI155-$AK155,MAX(0,IF($AL155=\"B\",IF($AR155<Setup!$C$32,($AR155*Setup!$D$32)-$AI155-$AK155,(($AR155-VLOOKUP($AR155,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR155,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR155,TaxBracket2,1),0,1,1)-$AI155-$AK155),IF($AR155<Setup!$C$21,($AR155*Setup!$D$21)-$AI155-$AK155,(($AR155-VLOOKUP($AR155,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR155,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR155,TaxBracket1,1),0,1,1)-$AI155-$AK155))))","v":54745},{"$f":"IF(ISNUMBER($AL155),($AX155*$AL155)-$AI155-$AK155,MAX(0,IF($AL155=\"B\",IF($AX155<Setup!$C$32,($AX155*Setup!$D$32)-$AI155-$AK155,(($AX155-VLOOKUP($AX155,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX155,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX155,TaxBracket2,1),0,1,1)-$AI155-$AK155),IF($AX155<Setup!$C$21,($AX155*Setup!$D$21)-$AI155-$AK155,(($AX155-VLOOKUP($AX155,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX155,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX155,TaxBracket1,1),0,1,1)-$AI155-$AK155))))","v":54745},0,1,0,349800]
[{"$f":"IF(ROW($A156)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B156,\"yyyy\")&TEXT($B156,\"mm\")&\"-\"&$C156)","v":"202312-EXS015"},{"$f":"IF(ROW($A156)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A156)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A156)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A156)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45285},{"$f":"IF(ROW($A156)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A156)-ROW($A$6)-IF(ROW($A156)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A156)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS015"},{"$f":"IF(ISNA(VLOOKUP($C156,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C156,EmpAll,COLUMN(Emp!$B$4),0))","v":"Graham L"},{"$f":"IF(ISNA(VLOOKUP($C156,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C156,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C156,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C156,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC156),MONTH($AC156)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C156,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC156),MONTH($AC156),0)),\"Terminated\",\"Active\")))","v":"Inactive"},{"$f":"IF($F156<>\"Active\",0,IF(COUNTIFS(OverEmp,$C156,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMIFS(OverValue,OverEmp,$C156,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1)),IF(AND($AC156>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C156)>0),SUMIFS(EmpIncrease,EmpCode,$C156),SUMIFS(EmpSalary,EmpCode,$C156))))","v":0},{"$f":"IF($F156<>\"Active\",0,IF(COUNTIFS(OverEmp,$C156,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMIFS(OverValue,OverEmp,$C156,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1)),0))","v":0},{"$f":"IF($F156<>\"Active\",0,IF(COUNTIFS(OverEmp,$C156,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMIFS(OverValue,OverEmp,$C156,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1)),IF(MONTH(B156)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C156),0)))","v":0},{"$f":"IF($F156<>\"Active\",0,IF(COUNTIFS(OverEmp,$C156,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMIFS(OverValue,OverEmp,$C156,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1)),0))","v":0},{"$f":"IF($F156<>\"Active\",0,IF(COUNTIFS(OverEmp,$C156,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMIFS(OverValue,OverEmp,$C156,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C156,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMIFS(OverValue,OverEmp,$C156,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1)),(($BA156/12*$AA156)+(BB156*IF(1-$BC156=0,0,BD156/(1-$BC156))))-IF($F156=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC156,PayEmp,$C156)))","v":0},{"$f":"IF($F156=\"Terminated\",0,IF($AA156=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C156,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMIFS(OverValue,OverEmp,$C156,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA156)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA156,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156))))))","v":0},{"$f":"IF($F156=\"Terminated\",0,IF($AA156=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C156,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMIFS(OverValue,OverEmp,$C156,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA156)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA156,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156))))))","v":0},{"$f":"IF($F156=\"Terminated\",0,IF($AA156=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C156,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMIFS(OverValue,OverEmp,$C156,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA156)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA156,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156))))))","v":0},{"$f":"IF($F156=\"Terminated\",0,IF($AA156=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C156,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMIFS(OverValue,OverEmp,$C156,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA156)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA156,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156))))))","v":0},0,0,{"$f":"IF($F156=\"Terminated\",0,IF($AA156=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C156,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMIFS(OverValue,OverEmp,$C156,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA156)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA156,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156)))))))","v":0},{"$f":"IF($F156=\"Terminated\",0,IF($AA156=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C156,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMIFS(OverValue,OverEmp,$C156,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA156)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA156,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156)))))))","v":0},{"$f":"IF($F156=\"Terminated\",0,IF($AA156=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C156,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMIFS(OverValue,OverEmp,$C156,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA156)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA156,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156)))))))","v":0},{"$f":"IF($F156=\"Terminated\",0,IF($AA156=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C156,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMIFS(OverValue,OverEmp,$C156,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA156)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA156,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC156,PayEmp,$C156)))))))","v":0},0,0,0,{"$f":"IF(OR($B156<=Setup!$E$12,$B156>=Setup!$D$12+1),0,IF($F156<>\"Active\",0,IF($AE156=\"Yes\",$AB156,((YEAR($AC156)*12)+MONTH($AC156))-((YEAR($AD156)*12)+MONTH($AD156)-1))))","v":0},{"$f":"IF(OR($B156<=Setup!$E$12,$B156>=Setup!$D$12+1),0,((YEAR($AC156)*12)+MONTH($AC156))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":10},45285,{"$f":"IF(ISNA(VLOOKUP($C156,EmpAll,COLUMN(Emp!$E$4),0)),$AC156,IF(VLOOKUP($C156,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C156,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-01-25"},{"$f":"IF(ISNA(VLOOKUP($C156,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C156,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C156,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A156=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C156,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMIFS(OverValue,OverEmp,$C156,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1)),IF(ISNA(VLOOKUP($C156,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG156,MedList,COLUMN(Setup!$C$49),1)","v":364},8008,{"$f":"IF(ISNA(VLOOKUP($C156,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C156,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C156,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C156,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C156,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F156=\"Terminated\",0,IF($AA156=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C156,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA156*12)+(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB156/3,0))*4)+(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB156/6,0))*2)+(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F156=\"Terminated\",0,IF($AA156=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C156,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA156*12)+(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB156/3,0))*4)+(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB156/6,0))*2)+(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F156=\"Terminated\",0,IF($AA156=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C156,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA156*12)+(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB156/3,0))*4)+(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB156/6,0))*2)+(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F156=\"Terminated\",0,IF($AA156=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C156,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA156*12)+(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB156/3,0))*4)+(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB156/6,0))*2)+(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F156=\"Terminated\",0,IF($AA156=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C156,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA156*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F156=\"Terminated\",0,IF($AA156=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C156,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA156*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F156=\"Terminated\",0,IF($AA156=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C156,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA156*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F156=\"Terminated\",0,IF($AA156=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C156,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC156),MONTH($AC156)+1,1),OverEnd,\">=\"&DATE(YEAR($AC156),MONTH($AC156),1))>0,SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA156*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C156)*(PayDate<=$AC156)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA156*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C156,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C156,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL156),($AR156*$AL156)-$AI156-$AK156,MAX(0,IF($AL156=\"B\",IF($AR156<Setup!$C$32,($AR156*Setup!$D$32)-$AI156-$AK156,(($AR156-VLOOKUP($AR156,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR156,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR156,TaxBracket2,1),0,1,1)-$AI156-$AK156),IF($AR156<Setup!$C$21,($AR156*Setup!$D$21)-$AI156-$AK156,(($AR156-VLOOKUP($AR156,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR156,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR156,TaxBracket1,1),0,1,1)-$AI156-$AK156))))","v":0},{"$f":"IF(ISNUMBER($AL156),($AX156*$AL156)-$AI156-$AK156,MAX(0,IF($AL156=\"B\",IF($AX156<Setup!$C$32,($AX156*Setup!$D$32)-$AI156-$AK156,(($AX156-VLOOKUP($AX156,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX156,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX156,TaxBracket2,1),0,1,1)-$AI156-$AK156),IF($AX156<Setup!$C$21,($AX156*Setup!$D$21)-$AI156-$AK156,(($AX156-VLOOKUP($AX156,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX156,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX156,TaxBracket1,1),0,1,1)-$AI156-$AK156))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A157)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B157,\"yyyy\")&TEXT($B157,\"mm\")&\"-\"&$C157)","v":"202401-EXS001"},{"$f":"IF(ROW($A157)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A157)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A157)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A157)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45316},{"$f":"IF(ROW($A157)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A157)-ROW($A$6)-IF(ROW($A157)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A157)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS001"},{"$f":"IF(ISNA(VLOOKUP($C157,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C157,EmpAll,COLUMN(Emp!$B$4),0))","v":"Taylor AE"},{"$f":"IF(ISNA(VLOOKUP($C157,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C157,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C157,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C157,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC157),MONTH($AC157)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C157,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC157),MONTH($AC157),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F157<>\"Active\",0,IF(COUNTIFS(OverEmp,$C157,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMIFS(OverValue,OverEmp,$C157,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1)),IF(AND($AC157>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C157)>0),SUMIFS(EmpIncrease,EmpCode,$C157),SUMIFS(EmpSalary,EmpCode,$C157))))","v":165000},{"$f":"IF($F157<>\"Active\",0,IF(COUNTIFS(OverEmp,$C157,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMIFS(OverValue,OverEmp,$C157,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1)),0))","v":0},{"$f":"IF($F157<>\"Active\",0,IF(COUNTIFS(OverEmp,$C157,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMIFS(OverValue,OverEmp,$C157,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1)),IF(MONTH(B157)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C157),0)))","v":0},{"$f":"IF($F157<>\"Active\",0,IF(COUNTIFS(OverEmp,$C157,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMIFS(OverValue,OverEmp,$C157,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1)),0))","v":0},{"$f":"IF($F157<>\"Active\",0,IF(COUNTIFS(OverEmp,$C157,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMIFS(OverValue,OverEmp,$C157,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1)),0))","v":0},165000,{"$f":"IF(COUNTIFS(OverEmp,$C157,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMIFS(OverValue,OverEmp,$C157,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1)),(($BA157/12*$AA157)+(BB157*IF(1-$BC157=0,0,BD157/(1-$BC157))))-IF($F157=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC157,PayEmp,$C157)))","v":51376.037878787669},{"$f":"IF($F157=\"Terminated\",0,IF($AA157=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C157,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMIFS(OverValue,OverEmp,$C157,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA157)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA157,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157))))))","v":177.11999999999989},{"$f":"IF($F157=\"Terminated\",0,IF($AA157=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C157,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMIFS(OverValue,OverEmp,$C157,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA157)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA157,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157))))))","v":12375},{"$f":"IF($F157=\"Terminated\",0,IF($AA157=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C157,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMIFS(OverValue,OverEmp,$C157,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA157)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA157,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157))))))","v":0},{"$f":"IF($F157=\"Terminated\",0,IF($AA157=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C157,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMIFS(OverValue,OverEmp,$C157,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA157)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA157,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157))))))","v":0},63928.157878787672,101071.84,{"$f":"IF($F157=\"Terminated\",0,IF($AA157=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C157,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMIFS(OverValue,OverEmp,$C157,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA157)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA157,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157)))))))","v":177.11999999999989},{"$f":"IF($F157=\"Terminated\",0,IF($AA157=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C157,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMIFS(OverValue,OverEmp,$C157,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA157)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA157,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157)))))))","v":1650},{"$f":"IF($F157=\"Terminated\",0,IF($AA157=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C157,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMIFS(OverValue,OverEmp,$C157,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA157)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA157,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157)))))))","v":0},{"$f":"IF($F157=\"Terminated\",0,IF($AA157=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C157,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMIFS(OverValue,OverEmp,$C157,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA157)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA157,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC157,PayEmp,$C157)))))))","v":0},1827.12,166827.12,65755.28,{"$f":"IF(OR($B157<=Setup!$E$12,$B157>=Setup!$D$12+1),0,IF($F157<>\"Active\",0,IF($AE157=\"Yes\",$AB157,((YEAR($AC157)*12)+MONTH($AC157))-((YEAR($AD157)*12)+MONTH($AD157)-1))))","v":11},{"$f":"IF(OR($B157<=Setup!$E$12,$B157>=Setup!$D$12+1),0,((YEAR($AC157)*12)+MONTH($AC157))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":11},45316,{"$f":"IF(ISNA(VLOOKUP($C157,EmpAll,COLUMN(Emp!$E$4),0)),$AC157,IF(VLOOKUP($C157,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C157,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C157,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C157,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C157,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A157=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C157,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMIFS(OverValue,OverEmp,$C157,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1)),IF(ISNA(VLOOKUP($C157,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$N$4),0)))","v":5},{"$f":"VLOOKUP($AG157,MedList,COLUMN(Setup!$C$49),1)","v":1466},17592,{"$f":"IF(ISNA(VLOOKUP($C157,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C157,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C157,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C157,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C157,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1966363.6363636362,{"$f":"-IF($F157=\"Terminated\",0,IF($AA157=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C157,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA157*12)+(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB157/3,0))*4)+(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB157/6,0))*2)+(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F157=\"Terminated\",0,IF($AA157=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C157,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA157*12)+(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB157/3,0))*4)+(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB157/6,0))*2)+(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":-147477.27272727271},{"$f":"-IF($F157=\"Terminated\",0,IF($AA157=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C157,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA157*12)+(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB157/3,0))*4)+(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB157/6,0))*2)+(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F157=\"Terminated\",0,IF($AA157=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C157,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA157*12)+(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB157/3,0))*4)+(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB157/6,0))*2)+(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1818886.3636363635,1816363.6363636362,{"$f":"-IF($F157=\"Terminated\",0,IF($AA157=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C157,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA157*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F157=\"Terminated\",0,IF($AA157=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C157,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA157*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":-136227.27272727271},{"$f":"-IF($F157=\"Terminated\",0,IF($AA157=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C157,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA157*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F157=\"Terminated\",0,IF($AA157=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C157,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC157),MONTH($AC157)+1,1),OverEnd,\">=\"&DATE(YEAR($AC157),MONTH($AC157),1))>0,SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA157*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C157)*(PayDate<=$AC157)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA157*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C157,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C157,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1680136.3636363635,138750,{"$f":"IF(ISNUMBER($AL157),($AR157*$AL157)-$AI157-$AK157,MAX(0,IF($AL157=\"B\",IF($AR157<Setup!$C$32,($AR157*Setup!$D$32)-$AI157-$AK157,(($AR157-VLOOKUP($AR157,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR157,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR157,TaxBracket2,1),0,1,1)-$AI157-$AK157),IF($AR157<Setup!$C$21,($AR157*Setup!$D$21)-$AI157-$AK157,(($AR157-VLOOKUP($AR157,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR157,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR157,TaxBracket1,1),0,1,1)-$AI157-$AK157))))","v":610510.86363636353},{"$f":"IF(ISNUMBER($AL157),($AX157*$AL157)-$AI157-$AK157,MAX(0,IF($AL157=\"B\",IF($AX157<Setup!$C$32,($AX157*Setup!$D$32)-$AI157-$AK157,(($AX157-VLOOKUP($AX157,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX157,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX157,TaxBracket2,1),0,1,1)-$AI157-$AK157),IF($AX157<Setup!$C$21,($AX157*Setup!$D$21)-$AI157-$AK157,(($AX157-VLOOKUP($AX157,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX157,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX157,TaxBracket1,1),0,1,1)-$AI157-$AK157))))","v":553547.90909090894},56962.954545454588,0.92371705963938977,7.6282940360610271E-2,1966363.6363636362]
[{"$f":"IF(ROW($A158)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B158,\"yyyy\")&TEXT($B158,\"mm\")&\"-\"&$C158)","v":"202401-EXS002"},{"$f":"IF(ROW($A158)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A158)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A158)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A158)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45316},{"$f":"IF(ROW($A158)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A158)-ROW($A$6)-IF(ROW($A158)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A158)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS002"},{"$f":"IF(ISNA(VLOOKUP($C158,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C158,EmpAll,COLUMN(Emp!$B$4),0))","v":"Smith F"},{"$f":"IF(ISNA(VLOOKUP($C158,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C158,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C158,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C158,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC158),MONTH($AC158)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C158,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC158),MONTH($AC158),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F158<>\"Active\",0,IF(COUNTIFS(OverEmp,$C158,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMIFS(OverValue,OverEmp,$C158,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1)),IF(AND($AC158>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C158)>0),SUMIFS(EmpIncrease,EmpCode,$C158),SUMIFS(EmpSalary,EmpCode,$C158))))","v":132000},{"$f":"IF($F158<>\"Active\",0,IF(COUNTIFS(OverEmp,$C158,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMIFS(OverValue,OverEmp,$C158,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1)),0))","v":0},{"$f":"IF($F158<>\"Active\",0,IF(COUNTIFS(OverEmp,$C158,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMIFS(OverValue,OverEmp,$C158,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1)),IF(MONTH(B158)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C158),0)))","v":0},{"$f":"IF($F158<>\"Active\",0,IF(COUNTIFS(OverEmp,$C158,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMIFS(OverValue,OverEmp,$C158,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1)),0))","v":0},{"$f":"IF($F158<>\"Active\",0,IF(COUNTIFS(OverEmp,$C158,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMIFS(OverValue,OverEmp,$C158,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1)),0))","v":0},132000,{"$f":"IF(COUNTIFS(OverEmp,$C158,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMIFS(OverValue,OverEmp,$C158,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1)),(($BA158/12*$AA158)+(BB158*IF(1-$BC158=0,0,BD158/(1-$BC158))))-IF($F158=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC158,PayEmp,$C158)))","v":43418.333333333198},{"$f":"IF($F158=\"Terminated\",0,IF($AA158=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C158,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMIFS(OverValue,OverEmp,$C158,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA158)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA158,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158))))))","v":177.11999999999989},{"$f":"IF($F158=\"Terminated\",0,IF($AA158=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C158,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMIFS(OverValue,OverEmp,$C158,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA158)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA158,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158))))))","v":0},{"$f":"IF($F158=\"Terminated\",0,IF($AA158=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C158,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMIFS(OverValue,OverEmp,$C158,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA158)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA158,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158))))))","v":0},{"$f":"IF($F158=\"Terminated\",0,IF($AA158=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C158,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMIFS(OverValue,OverEmp,$C158,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA158)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA158,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158))))))","v":0},43595.4533333332,88404.55,{"$f":"IF($F158=\"Terminated\",0,IF($AA158=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C158,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMIFS(OverValue,OverEmp,$C158,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA158)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA158,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158)))))))","v":177.11999999999989},{"$f":"IF($F158=\"Terminated\",0,IF($AA158=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C158,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMIFS(OverValue,OverEmp,$C158,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA158)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA158,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158)))))))","v":1320},{"$f":"IF($F158=\"Terminated\",0,IF($AA158=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C158,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMIFS(OverValue,OverEmp,$C158,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA158)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA158,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158)))))))","v":0},{"$f":"IF($F158=\"Terminated\",0,IF($AA158=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C158,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMIFS(OverValue,OverEmp,$C158,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA158)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA158,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC158,PayEmp,$C158)))))))","v":0},1497.12,133497.12,45092.57,{"$f":"IF(OR($B158<=Setup!$E$12,$B158>=Setup!$D$12+1),0,IF($F158<>\"Active\",0,IF($AE158=\"Yes\",$AB158,((YEAR($AC158)*12)+MONTH($AC158))-((YEAR($AD158)*12)+MONTH($AD158)-1))))","v":11},{"$f":"IF(OR($B158<=Setup!$E$12,$B158>=Setup!$D$12+1),0,((YEAR($AC158)*12)+MONTH($AC158))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":11},45316,{"$f":"IF(ISNA(VLOOKUP($C158,EmpAll,COLUMN(Emp!$E$4),0)),$AC158,IF(VLOOKUP($C158,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C158,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C158,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C158,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C158,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A158=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C158,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMIFS(OverValue,OverEmp,$C158,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1)),IF(ISNA(VLOOKUP($C158,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$N$4),0)))","v":3},{"$f":"VLOOKUP($AG158,MedList,COLUMN(Setup!$C$49),1)","v":974},10704,{"$f":"IF(ISNA(VLOOKUP($C158,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C158,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C158,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C158,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C158,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1573090.9090909092,{"$f":"-IF($F158=\"Terminated\",0,IF($AA158=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C158,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA158*12)+(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB158/3,0))*4)+(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB158/6,0))*2)+(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F158=\"Terminated\",0,IF($AA158=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C158,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA158*12)+(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB158/3,0))*4)+(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB158/6,0))*2)+(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F158=\"Terminated\",0,IF($AA158=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C158,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA158*12)+(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB158/3,0))*4)+(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB158/6,0))*2)+(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F158=\"Terminated\",0,IF($AA158=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C158,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA158*12)+(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB158/3,0))*4)+(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB158/6,0))*2)+(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1573090.9090909092,1453090.9090909092,{"$f":"-IF($F158=\"Terminated\",0,IF($AA158=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C158,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA158*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F158=\"Terminated\",0,IF($AA158=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C158,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA158*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F158=\"Terminated\",0,IF($AA158=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C158,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA158*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F158=\"Terminated\",0,IF($AA158=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C158,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC158),MONTH($AC158)+1,1),OverEnd,\">=\"&DATE(YEAR($AC158),MONTH($AC158),1))>0,SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA158*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C158)*(PayDate<=$AC158)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA158*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C158,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C158,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1453090.9090909092,120000,{"$f":"IF(ISNUMBER($AL158),($AR158*$AL158)-$AI158-$AK158,MAX(0,IF($AL158=\"B\",IF($AR158<Setup!$C$32,($AR158*Setup!$D$32)-$AI158-$AK158,(($AR158-VLOOKUP($AR158,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR158,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR158,TaxBracket2,1),0,1,1)-$AI158-$AK158),IF($AR158<Setup!$C$21,($AR158*Setup!$D$21)-$AI158-$AK158,(($AR158-VLOOKUP($AR158,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR158,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR158,TaxBracket1,1),0,1,1)-$AI158-$AK158))))","v":516547.27272727271},{"$f":"IF(ISNUMBER($AL158),($AX158*$AL158)-$AI158-$AK158,MAX(0,IF($AL158=\"B\",IF($AX158<Setup!$C$32,($AX158*Setup!$D$32)-$AI158-$AK158,(($AX158-VLOOKUP($AX158,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX158,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX158,TaxBracket2,1),0,1,1)-$AI158-$AK158),IF($AX158<Setup!$C$21,($AX158*Setup!$D$21)-$AI158-$AK158,(($AX158-VLOOKUP($AX158,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX158,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX158,TaxBracket1,1),0,1,1)-$AI158-$AK158))))","v":467347.27272727271},49200,0.92371705963938977,7.6282940360610257E-2,1573090.9090909092]
[{"$f":"IF(ROW($A159)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B159,\"yyyy\")&TEXT($B159,\"mm\")&\"-\"&$C159)","v":"202401-EXS003"},{"$f":"IF(ROW($A159)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A159)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A159)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A159)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45316},{"$f":"IF(ROW($A159)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A159)-ROW($A$6)-IF(ROW($A159)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A159)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS003"},{"$f":"IF(ISNA(VLOOKUP($C159,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C159,EmpAll,COLUMN(Emp!$B$4),0))","v":"Wilson PG"},{"$f":"IF(ISNA(VLOOKUP($C159,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C159,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C159,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C159,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC159),MONTH($AC159)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C159,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC159),MONTH($AC159),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F159<>\"Active\",0,IF(COUNTIFS(OverEmp,$C159,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMIFS(OverValue,OverEmp,$C159,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1)),IF(AND($AC159>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C159)>0),SUMIFS(EmpIncrease,EmpCode,$C159),SUMIFS(EmpSalary,EmpCode,$C159))))","v":16500},{"$f":"IF($F159<>\"Active\",0,IF(COUNTIFS(OverEmp,$C159,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMIFS(OverValue,OverEmp,$C159,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1)),0))","v":0},{"$f":"IF($F159<>\"Active\",0,IF(COUNTIFS(OverEmp,$C159,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMIFS(OverValue,OverEmp,$C159,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1)),IF(MONTH(B159)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C159),0)))","v":0},{"$f":"IF($F159<>\"Active\",0,IF(COUNTIFS(OverEmp,$C159,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMIFS(OverValue,OverEmp,$C159,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1)),0))","v":0},{"$f":"IF($F159<>\"Active\",0,IF(COUNTIFS(OverEmp,$C159,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMIFS(OverValue,OverEmp,$C159,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1)),0))","v":0},16500,{"$f":"IF(COUNTIFS(OverEmp,$C159,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMIFS(OverValue,OverEmp,$C159,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1)),(($BA159/12*$AA159)+(BB159*IF(1-$BC159=0,0,BD159/(1-$BC159))))-IF($F159=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC159,PayEmp,$C159)))","v":1169.75},{"$f":"IF($F159=\"Terminated\",0,IF($AA159=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C159,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMIFS(OverValue,OverEmp,$C159,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA159)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA159,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159))))))","v":165},{"$f":"IF($F159=\"Terminated\",0,IF($AA159=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C159,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMIFS(OverValue,OverEmp,$C159,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA159)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA159,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159))))))","v":0},{"$f":"IF($F159=\"Terminated\",0,IF($AA159=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C159,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMIFS(OverValue,OverEmp,$C159,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA159)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA159,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159))))))","v":2000},{"$f":"IF($F159=\"Terminated\",0,IF($AA159=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C159,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMIFS(OverValue,OverEmp,$C159,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA159)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA159,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159))))))","v":0},3334.75,13165.25,{"$f":"IF($F159=\"Terminated\",0,IF($AA159=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C159,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMIFS(OverValue,OverEmp,$C159,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA159)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA159,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159)))))))","v":165},{"$f":"IF($F159=\"Terminated\",0,IF($AA159=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C159,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMIFS(OverValue,OverEmp,$C159,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA159)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA159,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159)))))))","v":165},{"$f":"IF($F159=\"Terminated\",0,IF($AA159=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C159,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMIFS(OverValue,OverEmp,$C159,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA159)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA159,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159)))))))","v":0},{"$f":"IF($F159=\"Terminated\",0,IF($AA159=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C159,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMIFS(OverValue,OverEmp,$C159,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA159)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA159,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC159,PayEmp,$C159)))))))","v":0},330,16830,3664.75,{"$f":"IF(OR($B159<=Setup!$E$12,$B159>=Setup!$D$12+1),0,IF($F159<>\"Active\",0,IF($AE159=\"Yes\",$AB159,((YEAR($AC159)*12)+MONTH($AC159))-((YEAR($AD159)*12)+MONTH($AD159)-1))))","v":11},{"$f":"IF(OR($B159<=Setup!$E$12,$B159>=Setup!$D$12+1),0,((YEAR($AC159)*12)+MONTH($AC159))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":11},45316,{"$f":"IF(ISNA(VLOOKUP($C159,EmpAll,COLUMN(Emp!$E$4),0)),$AC159,IF(VLOOKUP($C159,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C159,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C159,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C159,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C159,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A159=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C159,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMIFS(OverValue,OverEmp,$C159,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1)),IF(ISNA(VLOOKUP($C159,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG159,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C159,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C159,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C159,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C159,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C159,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},196636.36363636365,{"$f":"-IF($F159=\"Terminated\",0,IF($AA159=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C159,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA159*12)+(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB159/3,0))*4)+(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB159/6,0))*2)+(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F159=\"Terminated\",0,IF($AA159=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C159,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA159*12)+(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB159/3,0))*4)+(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB159/6,0))*2)+(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F159=\"Terminated\",0,IF($AA159=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C159,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA159*12)+(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB159/3,0))*4)+(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB159/6,0))*2)+(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F159=\"Terminated\",0,IF($AA159=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C159,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA159*12)+(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB159/3,0))*4)+(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB159/6,0))*2)+(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},196636.36363636365,181636.36363636365,{"$f":"-IF($F159=\"Terminated\",0,IF($AA159=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C159,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA159*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F159=\"Terminated\",0,IF($AA159=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C159,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA159*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F159=\"Terminated\",0,IF($AA159=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C159,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA159*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F159=\"Terminated\",0,IF($AA159=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C159,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC159),MONTH($AC159)+1,1),OverEnd,\">=\"&DATE(YEAR($AC159),MONTH($AC159),1))>0,SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA159*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C159)*(PayDate<=$AC159)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA159*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C159,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C159,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},181636.36363636365,15000,{"$f":"IF(ISNUMBER($AL159),($AR159*$AL159)-$AI159-$AK159,MAX(0,IF($AL159=\"B\",IF($AR159<Setup!$C$32,($AR159*Setup!$D$32)-$AI159-$AK159,(($AR159-VLOOKUP($AR159,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR159,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR159,TaxBracket2,1),0,1,1)-$AI159-$AK159),IF($AR159<Setup!$C$21,($AR159*Setup!$D$21)-$AI159-$AK159,(($AR159-VLOOKUP($AR159,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR159,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR159,TaxBracket1,1),0,1,1)-$AI159-$AK159))))","v":13791.545454545456},{"$f":"IF(ISNUMBER($AL159),($AX159*$AL159)-$AI159-$AK159,MAX(0,IF($AL159=\"B\",IF($AX159<Setup!$C$32,($AX159*Setup!$D$32)-$AI159-$AK159,(($AX159-VLOOKUP($AX159,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX159,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX159,TaxBracket2,1),0,1,1)-$AI159-$AK159),IF($AX159<Setup!$C$21,($AX159*Setup!$D$21)-$AI159-$AK159,(($AX159-VLOOKUP($AX159,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX159,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX159,TaxBracket1,1),0,1,1)-$AI159-$AK159))))","v":11091.545454545456},2700,0.92371705963938977,7.6282940360610257E-2,196636.36363636365]
[{"$f":"IF(ROW($A160)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B160,\"yyyy\")&TEXT($B160,\"mm\")&\"-\"&$C160)","v":"202401-EXS004"},{"$f":"IF(ROW($A160)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A160)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A160)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A160)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45316},{"$f":"IF(ROW($A160)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A160)-ROW($A$6)-IF(ROW($A160)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A160)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS004"},{"$f":"IF(ISNA(VLOOKUP($C160,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C160,EmpAll,COLUMN(Emp!$B$4),0))","v":"Osborne S"},{"$f":"IF(ISNA(VLOOKUP($C160,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C160,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C160,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C160,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC160),MONTH($AC160)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C160,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC160),MONTH($AC160),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F160<>\"Active\",0,IF(COUNTIFS(OverEmp,$C160,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMIFS(OverValue,OverEmp,$C160,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1)),IF(AND($AC160>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C160)>0),SUMIFS(EmpIncrease,EmpCode,$C160),SUMIFS(EmpSalary,EmpCode,$C160))))","v":16500},{"$f":"IF($F160<>\"Active\",0,IF(COUNTIFS(OverEmp,$C160,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMIFS(OverValue,OverEmp,$C160,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1)),0))","v":0},{"$f":"IF($F160<>\"Active\",0,IF(COUNTIFS(OverEmp,$C160,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMIFS(OverValue,OverEmp,$C160,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1)),IF(MONTH(B160)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C160),0)))","v":0},{"$f":"IF($F160<>\"Active\",0,IF(COUNTIFS(OverEmp,$C160,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMIFS(OverValue,OverEmp,$C160,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1)),0))","v":0},{"$f":"IF($F160<>\"Active\",0,IF(COUNTIFS(OverEmp,$C160,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMIFS(OverValue,OverEmp,$C160,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1)),0))","v":0},16500,{"$f":"IF(COUNTIFS(OverEmp,$C160,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMIFS(OverValue,OverEmp,$C160,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1)),(($BA160/12*$AA160)+(BB160*IF(1-$BC160=0,0,BD160/(1-$BC160))))-IF($F160=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC160,PayEmp,$C160)))","v":1169.7499999999982},{"$f":"IF($F160=\"Terminated\",0,IF($AA160=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C160,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMIFS(OverValue,OverEmp,$C160,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA160)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA160,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160))))))","v":165},{"$f":"IF($F160=\"Terminated\",0,IF($AA160=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C160,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMIFS(OverValue,OverEmp,$C160,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA160)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA160,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160))))))","v":0},{"$f":"IF($F160=\"Terminated\",0,IF($AA160=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C160,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMIFS(OverValue,OverEmp,$C160,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA160)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA160,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160))))))","v":500},{"$f":"IF($F160=\"Terminated\",0,IF($AA160=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C160,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMIFS(OverValue,OverEmp,$C160,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA160)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA160,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160))))))","v":0},1834.7499999999982,14665.25,{"$f":"IF($F160=\"Terminated\",0,IF($AA160=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C160,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMIFS(OverValue,OverEmp,$C160,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA160)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA160,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160)))))))","v":165},{"$f":"IF($F160=\"Terminated\",0,IF($AA160=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C160,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMIFS(OverValue,OverEmp,$C160,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA160)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA160,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160)))))))","v":165},{"$f":"IF($F160=\"Terminated\",0,IF($AA160=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C160,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMIFS(OverValue,OverEmp,$C160,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA160)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA160,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160)))))))","v":0},{"$f":"IF($F160=\"Terminated\",0,IF($AA160=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C160,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMIFS(OverValue,OverEmp,$C160,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA160)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA160,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC160,PayEmp,$C160)))))))","v":0},330,16830,2164.75,{"$f":"IF(OR($B160<=Setup!$E$12,$B160>=Setup!$D$12+1),0,IF($F160<>\"Active\",0,IF($AE160=\"Yes\",$AB160,((YEAR($AC160)*12)+MONTH($AC160))-((YEAR($AD160)*12)+MONTH($AD160)-1))))","v":11},{"$f":"IF(OR($B160<=Setup!$E$12,$B160>=Setup!$D$12+1),0,((YEAR($AC160)*12)+MONTH($AC160))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":11},45316,{"$f":"IF(ISNA(VLOOKUP($C160,EmpAll,COLUMN(Emp!$E$4),0)),$AC160,IF(VLOOKUP($C160,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C160,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C160,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C160,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C160,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A160=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C160,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMIFS(OverValue,OverEmp,$C160,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1)),IF(ISNA(VLOOKUP($C160,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG160,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C160,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C160,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C160,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C160,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C160,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},200236.36363636365,{"$f":"-IF($F160=\"Terminated\",0,IF($AA160=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C160,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA160*12)+(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB160/3,0))*4)+(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB160/6,0))*2)+(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F160=\"Terminated\",0,IF($AA160=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C160,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA160*12)+(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB160/3,0))*4)+(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB160/6,0))*2)+(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F160=\"Terminated\",0,IF($AA160=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C160,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA160*12)+(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB160/3,0))*4)+(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB160/6,0))*2)+(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F160=\"Terminated\",0,IF($AA160=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C160,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA160*12)+(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB160/3,0))*4)+(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB160/6,0))*2)+(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},200236.36363636365,181636.36363636365,{"$f":"-IF($F160=\"Terminated\",0,IF($AA160=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C160,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA160*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F160=\"Terminated\",0,IF($AA160=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C160,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA160*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F160=\"Terminated\",0,IF($AA160=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C160,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA160*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F160=\"Terminated\",0,IF($AA160=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C160,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC160),MONTH($AC160)+1,1),OverEnd,\">=\"&DATE(YEAR($AC160),MONTH($AC160),1))>0,SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA160*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C160)*(PayDate<=$AC160)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA160*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C160,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C160,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},181636.36363636365,18600,{"$f":"IF(ISNUMBER($AL160),($AR160*$AL160)-$AI160-$AK160,MAX(0,IF($AL160=\"B\",IF($AR160<Setup!$C$32,($AR160*Setup!$D$32)-$AI160-$AK160,(($AR160-VLOOKUP($AR160,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR160,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR160,TaxBracket2,1),0,1,1)-$AI160-$AK160),IF($AR160<Setup!$C$21,($AR160*Setup!$D$21)-$AI160-$AK160,(($AR160-VLOOKUP($AR160,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR160,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR160,TaxBracket1,1),0,1,1)-$AI160-$AK160))))","v":14439.545454545456},{"$f":"IF(ISNUMBER($AL160),($AX160*$AL160)-$AI160-$AK160,MAX(0,IF($AL160=\"B\",IF($AX160<Setup!$C$32,($AX160*Setup!$D$32)-$AI160-$AK160,(($AX160-VLOOKUP($AX160,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX160,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX160,TaxBracket2,1),0,1,1)-$AI160-$AK160),IF($AX160<Setup!$C$21,($AX160*Setup!$D$21)-$AI160-$AK160,(($AX160-VLOOKUP($AX160,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX160,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX160,TaxBracket1,1),0,1,1)-$AI160-$AK160))))","v":11091.545454545456},3348,0.90710977935167525,9.2890220648324709E-2,200236.36363636365]
[{"$f":"IF(ROW($A161)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B161,\"yyyy\")&TEXT($B161,\"mm\")&\"-\"&$C161)","v":"202401-EXS005"},{"$f":"IF(ROW($A161)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A161)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A161)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A161)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45316},{"$f":"IF(ROW($A161)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A161)-ROW($A$6)-IF(ROW($A161)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A161)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS005"},{"$f":"IF(ISNA(VLOOKUP($C161,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C161,EmpAll,COLUMN(Emp!$B$4),0))","v":"Miller R"},{"$f":"IF(ISNA(VLOOKUP($C161,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C161,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C161,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C161,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC161),MONTH($AC161)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C161,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC161),MONTH($AC161),0)),\"Terminated\",\"Active\")))","v":"Terminated"},{"$f":"IF($F161<>\"Active\",0,IF(COUNTIFS(OverEmp,$C161,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMIFS(OverValue,OverEmp,$C161,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1)),IF(AND($AC161>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C161)>0),SUMIFS(EmpIncrease,EmpCode,$C161),SUMIFS(EmpSalary,EmpCode,$C161))))","v":0},{"$f":"IF($F161<>\"Active\",0,IF(COUNTIFS(OverEmp,$C161,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMIFS(OverValue,OverEmp,$C161,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1)),0))","v":0},{"$f":"IF($F161<>\"Active\",0,IF(COUNTIFS(OverEmp,$C161,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMIFS(OverValue,OverEmp,$C161,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1)),IF(MONTH(B161)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C161),0)))","v":0},{"$f":"IF($F161<>\"Active\",0,IF(COUNTIFS(OverEmp,$C161,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMIFS(OverValue,OverEmp,$C161,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1)),0))","v":0},{"$f":"IF($F161<>\"Active\",0,IF(COUNTIFS(OverEmp,$C161,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMIFS(OverValue,OverEmp,$C161,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C161,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMIFS(OverValue,OverEmp,$C161,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1)),(($BA161/12*$AA161)+(BB161*IF(1-$BC161=0,0,BD161/(1-$BC161))))-IF($F161=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC161,PayEmp,$C161)))","v":0},{"$f":"IF($F161=\"Terminated\",0,IF($AA161=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C161,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMIFS(OverValue,OverEmp,$C161,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA161)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA161,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161))))))","v":0},{"$f":"IF($F161=\"Terminated\",0,IF($AA161=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C161,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMIFS(OverValue,OverEmp,$C161,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA161)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA161,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161))))))","v":0},{"$f":"IF($F161=\"Terminated\",0,IF($AA161=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C161,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMIFS(OverValue,OverEmp,$C161,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA161)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA161,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161))))))","v":0},{"$f":"IF($F161=\"Terminated\",0,IF($AA161=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C161,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMIFS(OverValue,OverEmp,$C161,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA161)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA161,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161))))))","v":0},0,0,{"$f":"IF($F161=\"Terminated\",0,IF($AA161=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C161,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMIFS(OverValue,OverEmp,$C161,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA161)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA161,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161)))))))","v":0},{"$f":"IF($F161=\"Terminated\",0,IF($AA161=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C161,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMIFS(OverValue,OverEmp,$C161,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA161)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA161,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161)))))))","v":0},{"$f":"IF($F161=\"Terminated\",0,IF($AA161=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C161,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMIFS(OverValue,OverEmp,$C161,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA161)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA161,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161)))))))","v":0},{"$f":"IF($F161=\"Terminated\",0,IF($AA161=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C161,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMIFS(OverValue,OverEmp,$C161,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA161)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA161,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC161,PayEmp,$C161)))))))","v":0},{"$f":"SUM(OFFSET($T161,0,0,1,COLUMN($X$6)-COLUMN($T$7)))","v":0},0,{"$f":"ROUND(SUM(R161,X161),2)","v":0},{"$f":"IF(OR($B161<=Setup!$E$12,$B161>=Setup!$D$12+1),0,IF($F161<>\"Active\",0,IF($AE161=\"Yes\",$AB161,((YEAR($AC161)*12)+MONTH($AC161))-((YEAR($AD161)*12)+MONTH($AD161)-1))))","v":0},{"$f":"IF(OR($B161<=Setup!$E$12,$B161>=Setup!$D$12+1),0,((YEAR($AC161)*12)+MONTH($AC161))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":11},45316,{"$f":"IF(ISNA(VLOOKUP($C161,EmpAll,COLUMN(Emp!$E$4),0)),$AC161,IF(VLOOKUP($C161,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C161,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C161,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C161,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C161,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A161=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C161,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMIFS(OverValue,OverEmp,$C161,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1)),IF(ISNA(VLOOKUP($C161,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG161,MedList,COLUMN(Setup!$C$49),1)","v":364},8372,{"$f":"IF(ISNA(VLOOKUP($C161,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C161,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($AJ161,RebateList,4,0)),VLOOKUP(\"A\",RebateList,3,0),VLOOKUP($AJ161,RebateList,4,0))","v":17235},{"$f":"IF(ISNA(VLOOKUP($C161,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C161,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C161,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F161=\"Terminated\",0,IF($AA161=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C161,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA161*12)+(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB161/3,0))*4)+(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB161/6,0))*2)+(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F161=\"Terminated\",0,IF($AA161=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C161,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA161*12)+(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB161/3,0))*4)+(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB161/6,0))*2)+(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F161=\"Terminated\",0,IF($AA161=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C161,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA161*12)+(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB161/3,0))*4)+(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB161/6,0))*2)+(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F161=\"Terminated\",0,IF($AA161=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C161,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA161*12)+(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB161/3,0))*4)+(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB161/6,0))*2)+(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},{"$f":"$AM161+SUM(OFFSET($AM161,0,1,1,COLUMN($AR$2)-COLUMN($AM$2)-1))","v":0},0,{"$f":"-IF($F161=\"Terminated\",0,IF($AA161=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C161,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA161*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F161=\"Terminated\",0,IF($AA161=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C161,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA161*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F161=\"Terminated\",0,IF($AA161=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C161,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA161*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F161=\"Terminated\",0,IF($AA161=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C161,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC161),MONTH($AC161)+1,1),OverEnd,\">=\"&DATE(YEAR($AC161),MONTH($AC161),1))>0,SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA161*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C161)*(PayDate<=$AC161)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA161*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C161,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C161,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL161),($AR161*$AL161)-$AI161-$AK161,MAX(0,IF($AL161=\"B\",IF($AR161<Setup!$C$32,($AR161*Setup!$D$32)-$AI161-$AK161,(($AR161-VLOOKUP($AR161,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR161,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR161,TaxBracket2,1),0,1,1)-$AI161-$AK161),IF($AR161<Setup!$C$21,($AR161*Setup!$D$21)-$AI161-$AK161,(($AR161-VLOOKUP($AR161,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR161,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR161,TaxBracket1,1),0,1,1)-$AI161-$AK161))))","v":0},{"$f":"IF(ISNUMBER($AL161),($AX161*$AL161)-$AI161-$AK161,MAX(0,IF($AL161=\"B\",IF($AX161<Setup!$C$32,($AX161*Setup!$D$32)-$AI161-$AK161,(($AX161-VLOOKUP($AX161,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX161,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX161,TaxBracket2,1),0,1,1)-$AI161-$AK161),IF($AX161<Setup!$C$21,($AX161*Setup!$D$21)-$AI161-$AK161,(($AX161-VLOOKUP($AX161,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX161,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX161,TaxBracket1,1),0,1,1)-$AI161-$AK161))))","v":0},{"$f":"AZ161-BA161","v":0},0,0,0]
[{"$f":"IF(ROW($A162)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B162,\"yyyy\")&TEXT($B162,\"mm\")&\"-\"&$C162)","v":"202401-EXS006"},{"$f":"IF(ROW($A162)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A162)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A162)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A162)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45316},{"$f":"IF(ROW($A162)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A162)-ROW($A$6)-IF(ROW($A162)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A162)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS006"},{"$f":"IF(ISNA(VLOOKUP($C162,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C162,EmpAll,COLUMN(Emp!$B$4),0))","v":"Andrews MS"},{"$f":"IF(ISNA(VLOOKUP($C162,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C162,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C162,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C162,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC162),MONTH($AC162)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C162,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC162),MONTH($AC162),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F162<>\"Active\",0,IF(COUNTIFS(OverEmp,$C162,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMIFS(OverValue,OverEmp,$C162,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1)),IF(AND($AC162>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C162)>0),SUMIFS(EmpIncrease,EmpCode,$C162),SUMIFS(EmpSalary,EmpCode,$C162))))","v":11000},{"$f":"IF($F162<>\"Active\",0,IF(COUNTIFS(OverEmp,$C162,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMIFS(OverValue,OverEmp,$C162,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1)),0))","v":0},{"$f":"IF($F162<>\"Active\",0,IF(COUNTIFS(OverEmp,$C162,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMIFS(OverValue,OverEmp,$C162,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1)),IF(MONTH(B162)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C162),0)))","v":0},{"$f":"IF($F162<>\"Active\",0,IF(COUNTIFS(OverEmp,$C162,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMIFS(OverValue,OverEmp,$C162,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1)),0))","v":0},{"$f":"IF($F162<>\"Active\",0,IF(COUNTIFS(OverEmp,$C162,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMIFS(OverValue,OverEmp,$C162,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1)),0))","v":0},11000,{"$f":"IF(COUNTIFS(OverEmp,$C162,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMIFS(OverValue,OverEmp,$C162,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1)),(($BA162/12*$AA162)+(BB162*IF(1-$BC162=0,0,BD162/(1-$BC162))))-IF($F162=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC162,PayEmp,$C162)))","v":180.24999999999955},{"$f":"IF($F162=\"Terminated\",0,IF($AA162=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C162,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMIFS(OverValue,OverEmp,$C162,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA162)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA162,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162))))))","v":110},{"$f":"IF($F162=\"Terminated\",0,IF($AA162=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C162,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMIFS(OverValue,OverEmp,$C162,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA162)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA162,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162))))))","v":0},{"$f":"IF($F162=\"Terminated\",0,IF($AA162=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C162,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMIFS(OverValue,OverEmp,$C162,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA162)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA162,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162))))))","v":0},{"$f":"IF($F162=\"Terminated\",0,IF($AA162=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C162,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMIFS(OverValue,OverEmp,$C162,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA162)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA162,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162))))))","v":0},290.24999999999955,10709.75,{"$f":"IF($F162=\"Terminated\",0,IF($AA162=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C162,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMIFS(OverValue,OverEmp,$C162,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA162)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA162,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162)))))))","v":110},{"$f":"IF($F162=\"Terminated\",0,IF($AA162=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C162,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMIFS(OverValue,OverEmp,$C162,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA162)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA162,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162)))))))","v":110},{"$f":"IF($F162=\"Terminated\",0,IF($AA162=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C162,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMIFS(OverValue,OverEmp,$C162,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA162)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA162,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162)))))))","v":0},{"$f":"IF($F162=\"Terminated\",0,IF($AA162=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C162,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMIFS(OverValue,OverEmp,$C162,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA162)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA162,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC162,PayEmp,$C162)))))))","v":0},220,11220,510.25,{"$f":"IF(OR($B162<=Setup!$E$12,$B162>=Setup!$D$12+1),0,IF($F162<>\"Active\",0,IF($AE162=\"Yes\",$AB162,((YEAR($AC162)*12)+MONTH($AC162))-((YEAR($AD162)*12)+MONTH($AD162)-1))))","v":11},{"$f":"IF(OR($B162<=Setup!$E$12,$B162>=Setup!$D$12+1),0,((YEAR($AC162)*12)+MONTH($AC162))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":11},45316,{"$f":"IF(ISNA(VLOOKUP($C162,EmpAll,COLUMN(Emp!$E$4),0)),$AC162,IF(VLOOKUP($C162,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C162,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C162,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C162,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C162,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A162=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C162,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMIFS(OverValue,OverEmp,$C162,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1)),IF(ISNA(VLOOKUP($C162,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG162,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C162,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C162,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C162,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C162,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C162,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},131090.90909090909,{"$f":"-IF($F162=\"Terminated\",0,IF($AA162=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C162,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA162*12)+(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB162/3,0))*4)+(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB162/6,0))*2)+(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F162=\"Terminated\",0,IF($AA162=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C162,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA162*12)+(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB162/3,0))*4)+(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB162/6,0))*2)+(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F162=\"Terminated\",0,IF($AA162=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C162,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA162*12)+(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB162/3,0))*4)+(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB162/6,0))*2)+(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F162=\"Terminated\",0,IF($AA162=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C162,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA162*12)+(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB162/3,0))*4)+(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB162/6,0))*2)+(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},131090.90909090909,121090.90909090909,{"$f":"-IF($F162=\"Terminated\",0,IF($AA162=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C162,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA162*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F162=\"Terminated\",0,IF($AA162=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C162,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA162*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F162=\"Terminated\",0,IF($AA162=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C162,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA162*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F162=\"Terminated\",0,IF($AA162=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C162,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC162),MONTH($AC162)+1,1),OverEnd,\">=\"&DATE(YEAR($AC162),MONTH($AC162),1))>0,SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA162*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C162)*(PayDate<=$AC162)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA162*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C162,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C162,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},121090.90909090909,10000,{"$f":"IF(ISNUMBER($AL162),($AR162*$AL162)-$AI162-$AK162,MAX(0,IF($AL162=\"B\",IF($AR162<Setup!$C$32,($AR162*Setup!$D$32)-$AI162-$AK162,(($AR162-VLOOKUP($AR162,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR162,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR162,TaxBracket2,1),0,1,1)-$AI162-$AK162),IF($AR162<Setup!$C$21,($AR162*Setup!$D$21)-$AI162-$AK162,(($AR162-VLOOKUP($AR162,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR162,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR162,TaxBracket1,1),0,1,1)-$AI162-$AK162))))","v":1993.363636363636},{"$f":"IF(ISNUMBER($AL162),($AX162*$AL162)-$AI162-$AK162,MAX(0,IF($AL162=\"B\",IF($AX162<Setup!$C$32,($AX162*Setup!$D$32)-$AI162-$AK162,(($AX162-VLOOKUP($AX162,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX162,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX162,TaxBracket2,1),0,1,1)-$AI162-$AK162),IF($AX162<Setup!$C$21,($AX162*Setup!$D$21)-$AI162-$AK162,(($AX162-VLOOKUP($AX162,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX162,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX162,TaxBracket1,1),0,1,1)-$AI162-$AK162))))","v":193.36363636363603},1800,0.92371705963938977,7.6282940360610271E-2,131090.90909090909]
[{"$f":"IF(ROW($A163)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B163,\"yyyy\")&TEXT($B163,\"mm\")&\"-\"&$C163)","v":"202401-EXS007"},{"$f":"IF(ROW($A163)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A163)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A163)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A163)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45316},{"$f":"IF(ROW($A163)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A163)-ROW($A$6)-IF(ROW($A163)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A163)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS007"},{"$f":"IF(ISNA(VLOOKUP($C163,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C163,EmpAll,COLUMN(Emp!$B$4),0))","v":"Phillips KE"},{"$f":"IF(ISNA(VLOOKUP($C163,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C163,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C163,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C163,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC163),MONTH($AC163)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C163,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC163),MONTH($AC163),0)),\"Terminated\",\"Active\")))","v":"Terminated"},{"$f":"IF($F163<>\"Active\",0,IF(COUNTIFS(OverEmp,$C163,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMIFS(OverValue,OverEmp,$C163,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1)),IF(AND($AC163>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C163)>0),SUMIFS(EmpIncrease,EmpCode,$C163),SUMIFS(EmpSalary,EmpCode,$C163))))","v":0},{"$f":"IF($F163<>\"Active\",0,IF(COUNTIFS(OverEmp,$C163,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMIFS(OverValue,OverEmp,$C163,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1)),0))","v":0},{"$f":"IF($F163<>\"Active\",0,IF(COUNTIFS(OverEmp,$C163,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMIFS(OverValue,OverEmp,$C163,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1)),IF(MONTH(B163)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C163),0)))","v":0},{"$f":"IF($F163<>\"Active\",0,IF(COUNTIFS(OverEmp,$C163,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMIFS(OverValue,OverEmp,$C163,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1)),0))","v":0},{"$f":"IF($F163<>\"Active\",0,IF(COUNTIFS(OverEmp,$C163,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMIFS(OverValue,OverEmp,$C163,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C163,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMIFS(OverValue,OverEmp,$C163,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1)),(($BA163/12*$AA163)+(BB163*IF(1-$BC163=0,0,BD163/(1-$BC163))))-IF($F163=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC163,PayEmp,$C163)))","v":0},{"$f":"IF($F163=\"Terminated\",0,IF($AA163=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C163,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMIFS(OverValue,OverEmp,$C163,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA163)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA163,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163))))))","v":0},{"$f":"IF($F163=\"Terminated\",0,IF($AA163=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C163,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMIFS(OverValue,OverEmp,$C163,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA163)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA163,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163))))))","v":0},{"$f":"IF($F163=\"Terminated\",0,IF($AA163=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C163,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMIFS(OverValue,OverEmp,$C163,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA163)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA163,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163))))))","v":0},{"$f":"IF($F163=\"Terminated\",0,IF($AA163=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C163,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMIFS(OverValue,OverEmp,$C163,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA163)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA163,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163))))))","v":0},0,0,{"$f":"IF($F163=\"Terminated\",0,IF($AA163=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C163,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMIFS(OverValue,OverEmp,$C163,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA163)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA163,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163)))))))","v":0},{"$f":"IF($F163=\"Terminated\",0,IF($AA163=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C163,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMIFS(OverValue,OverEmp,$C163,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA163)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA163,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163)))))))","v":0},{"$f":"IF($F163=\"Terminated\",0,IF($AA163=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C163,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMIFS(OverValue,OverEmp,$C163,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA163)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA163,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163)))))))","v":0},{"$f":"IF($F163=\"Terminated\",0,IF($AA163=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C163,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMIFS(OverValue,OverEmp,$C163,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA163)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA163,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC163,PayEmp,$C163)))))))","v":0},0,0,0,{"$f":"IF(OR($B163<=Setup!$E$12,$B163>=Setup!$D$12+1),0,IF($F163<>\"Active\",0,IF($AE163=\"Yes\",$AB163,((YEAR($AC163)*12)+MONTH($AC163))-((YEAR($AD163)*12)+MONTH($AD163)-1))))","v":0},{"$f":"IF(OR($B163<=Setup!$E$12,$B163>=Setup!$D$12+1),0,((YEAR($AC163)*12)+MONTH($AC163))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":11},45316,{"$f":"IF(ISNA(VLOOKUP($C163,EmpAll,COLUMN(Emp!$E$4),0)),$AC163,IF(VLOOKUP($C163,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C163,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C163,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C163,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C163,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A163=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C163,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMIFS(OverValue,OverEmp,$C163,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1)),IF(ISNA(VLOOKUP($C163,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG163,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C163,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C163,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C163,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C163,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C163,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F163=\"Terminated\",0,IF($AA163=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C163,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA163*12)+(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB163/3,0))*4)+(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB163/6,0))*2)+(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F163=\"Terminated\",0,IF($AA163=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C163,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA163*12)+(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB163/3,0))*4)+(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB163/6,0))*2)+(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F163=\"Terminated\",0,IF($AA163=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C163,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA163*12)+(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB163/3,0))*4)+(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB163/6,0))*2)+(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F163=\"Terminated\",0,IF($AA163=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C163,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA163*12)+(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB163/3,0))*4)+(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB163/6,0))*2)+(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F163=\"Terminated\",0,IF($AA163=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C163,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA163*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F163=\"Terminated\",0,IF($AA163=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C163,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA163*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F163=\"Terminated\",0,IF($AA163=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C163,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA163*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F163=\"Terminated\",0,IF($AA163=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C163,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC163),MONTH($AC163)+1,1),OverEnd,\">=\"&DATE(YEAR($AC163),MONTH($AC163),1))>0,SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA163*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C163)*(PayDate<=$AC163)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA163*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C163,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C163,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL163),($AR163*$AL163)-$AI163-$AK163,MAX(0,IF($AL163=\"B\",IF($AR163<Setup!$C$32,($AR163*Setup!$D$32)-$AI163-$AK163,(($AR163-VLOOKUP($AR163,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR163,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR163,TaxBracket2,1),0,1,1)-$AI163-$AK163),IF($AR163<Setup!$C$21,($AR163*Setup!$D$21)-$AI163-$AK163,(($AR163-VLOOKUP($AR163,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR163,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR163,TaxBracket1,1),0,1,1)-$AI163-$AK163))))","v":0},{"$f":"IF(ISNUMBER($AL163),($AX163*$AL163)-$AI163-$AK163,MAX(0,IF($AL163=\"B\",IF($AX163<Setup!$C$32,($AX163*Setup!$D$32)-$AI163-$AK163,(($AX163-VLOOKUP($AX163,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX163,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX163,TaxBracket2,1),0,1,1)-$AI163-$AK163),IF($AX163<Setup!$C$21,($AX163*Setup!$D$21)-$AI163-$AK163,(($AX163-VLOOKUP($AX163,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX163,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX163,TaxBracket1,1),0,1,1)-$AI163-$AK163))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A164)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B164,\"yyyy\")&TEXT($B164,\"mm\")&\"-\"&$C164)","v":"202401-EXS008"},{"$f":"IF(ROW($A164)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A164)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A164)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A164)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45316},{"$f":"IF(ROW($A164)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A164)-ROW($A$6)-IF(ROW($A164)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A164)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS008"},{"$f":"IF(ISNA(VLOOKUP($C164,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C164,EmpAll,COLUMN(Emp!$B$4),0))","v":"Matthews B"},{"$f":"IF(ISNA(VLOOKUP($C164,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C164,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C164,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C164,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC164),MONTH($AC164)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C164,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC164),MONTH($AC164),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F164<>\"Active\",0,IF(COUNTIFS(OverEmp,$C164,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMIFS(OverValue,OverEmp,$C164,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1)),IF(AND($AC164>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C164)>0),SUMIFS(EmpIncrease,EmpCode,$C164),SUMIFS(EmpSalary,EmpCode,$C164))))","v":10000},{"$f":"IF($F164<>\"Active\",0,IF(COUNTIFS(OverEmp,$C164,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMIFS(OverValue,OverEmp,$C164,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1)),0))","v":0},{"$f":"IF($F164<>\"Active\",0,IF(COUNTIFS(OverEmp,$C164,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMIFS(OverValue,OverEmp,$C164,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1)),IF(MONTH(B164)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C164),0)))","v":0},{"$f":"IF($F164<>\"Active\",0,IF(COUNTIFS(OverEmp,$C164,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMIFS(OverValue,OverEmp,$C164,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1)),0))","v":0},{"$f":"IF($F164<>\"Active\",0,IF(COUNTIFS(OverEmp,$C164,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMIFS(OverValue,OverEmp,$C164,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C164,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMIFS(OverValue,OverEmp,$C164,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1)),(($BA164/12*$AA164)+(BB164*IF(1-$BC164=0,0,BD164/(1-$BC164))))-IF($F164=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC164,PayEmp,$C164)))","v":363.74999999999864},{"$f":"IF($F164=\"Terminated\",0,IF($AA164=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C164,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMIFS(OverValue,OverEmp,$C164,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA164)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA164,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164))))))","v":100},{"$f":"IF($F164=\"Terminated\",0,IF($AA164=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C164,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMIFS(OverValue,OverEmp,$C164,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA164)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA164,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164))))))","v":0},{"$f":"IF($F164=\"Terminated\",0,IF($AA164=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C164,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMIFS(OverValue,OverEmp,$C164,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA164)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA164,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164))))))","v":0},{"$f":"IF($F164=\"Terminated\",0,IF($AA164=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C164,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMIFS(OverValue,OverEmp,$C164,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA164)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA164,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164))))))","v":0},463.74999999999864,9536.25,{"$f":"IF($F164=\"Terminated\",0,IF($AA164=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C164,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMIFS(OverValue,OverEmp,$C164,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA164)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA164,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164)))))))","v":100},{"$f":"IF($F164=\"Terminated\",0,IF($AA164=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C164,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMIFS(OverValue,OverEmp,$C164,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA164)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA164,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164)))))))","v":100},{"$f":"IF($F164=\"Terminated\",0,IF($AA164=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C164,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMIFS(OverValue,OverEmp,$C164,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA164)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA164,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164)))))))","v":0},{"$f":"IF($F164=\"Terminated\",0,IF($AA164=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C164,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMIFS(OverValue,OverEmp,$C164,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA164)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA164,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC164,PayEmp,$C164)))))))","v":0},200,10200,663.75,{"$f":"IF(OR($B164<=Setup!$E$12,$B164>=Setup!$D$12+1),0,IF($F164<>\"Active\",0,IF($AE164=\"Yes\",$AB164,((YEAR($AC164)*12)+MONTH($AC164))-((YEAR($AD164)*12)+MONTH($AD164)-1))))","v":11},{"$f":"IF(OR($B164<=Setup!$E$12,$B164>=Setup!$D$12+1),0,((YEAR($AC164)*12)+MONTH($AC164))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":11},45316,{"$f":"IF(ISNA(VLOOKUP($C164,EmpAll,COLUMN(Emp!$E$4),0)),$AC164,IF(VLOOKUP($C164,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C164,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C164,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C164,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C164,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A164=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C164,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMIFS(OverValue,OverEmp,$C164,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1)),IF(ISNA(VLOOKUP($C164,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG164,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C164,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C164,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C164,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C164,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C164,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},118090.90909090909,{"$f":"-IF($F164=\"Terminated\",0,IF($AA164=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C164,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA164*12)+(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB164/3,0))*4)+(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB164/6,0))*2)+(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F164=\"Terminated\",0,IF($AA164=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C164,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA164*12)+(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB164/3,0))*4)+(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB164/6,0))*2)+(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F164=\"Terminated\",0,IF($AA164=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C164,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA164*12)+(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB164/3,0))*4)+(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB164/6,0))*2)+(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F164=\"Terminated\",0,IF($AA164=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C164,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA164*12)+(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB164/3,0))*4)+(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB164/6,0))*2)+(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},118090.90909090909,109090.90909090909,{"$f":"-IF($F164=\"Terminated\",0,IF($AA164=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C164,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA164*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F164=\"Terminated\",0,IF($AA164=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C164,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA164*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F164=\"Terminated\",0,IF($AA164=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C164,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA164*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F164=\"Terminated\",0,IF($AA164=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C164,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC164),MONTH($AC164)+1,1),OverEnd,\">=\"&DATE(YEAR($AC164),MONTH($AC164),1))>0,SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA164*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C164)*(PayDate<=$AC164)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA164*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C164,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C164,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},109090.90909090909,9000,{"$f":"IF(ISNUMBER($AL164),($AR164*$AL164)-$AI164-$AK164,MAX(0,IF($AL164=\"B\",IF($AR164<Setup!$C$32,($AR164*Setup!$D$32)-$AI164-$AK164,(($AR164-VLOOKUP($AR164,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR164,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR164,TaxBracket2,1),0,1,1)-$AI164-$AK164),IF($AR164<Setup!$C$21,($AR164*Setup!$D$21)-$AI164-$AK164,(($AR164-VLOOKUP($AR164,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR164,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR164,TaxBracket1,1),0,1,1)-$AI164-$AK164))))","v":4021.363636363636},{"$f":"IF(ISNUMBER($AL164),($AX164*$AL164)-$AI164-$AK164,MAX(0,IF($AL164=\"B\",IF($AX164<Setup!$C$32,($AX164*Setup!$D$32)-$AI164-$AK164,(($AX164-VLOOKUP($AX164,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX164,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX164,TaxBracket2,1),0,1,1)-$AI164-$AK164),IF($AX164<Setup!$C$21,($AX164*Setup!$D$21)-$AI164-$AK164,(($AX164-VLOOKUP($AX164,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX164,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX164,TaxBracket1,1),0,1,1)-$AI164-$AK164))))","v":2401.363636363636},1620,0.92378752886836024,7.6212471131639731E-2,118090.90909090909]
[{"$f":"IF(ROW($A165)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B165,\"yyyy\")&TEXT($B165,\"mm\")&\"-\"&$C165)","v":"202401-EXS009"},{"$f":"IF(ROW($A165)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A165)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A165)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A165)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45316},{"$f":"IF(ROW($A165)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A165)-ROW($A$6)-IF(ROW($A165)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A165)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS009"},{"$f":"IF(ISNA(VLOOKUP($C165,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C165,EmpAll,COLUMN(Emp!$B$4),0))","v":"Brown JT"},{"$f":"IF(ISNA(VLOOKUP($C165,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C165,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C165,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C165,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC165),MONTH($AC165)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C165,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC165),MONTH($AC165),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F165<>\"Active\",0,IF(COUNTIFS(OverEmp,$C165,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMIFS(OverValue,OverEmp,$C165,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1)),IF(AND($AC165>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C165)>0),SUMIFS(EmpIncrease,EmpCode,$C165),SUMIFS(EmpSalary,EmpCode,$C165))))","v":10000},{"$f":"IF($F165<>\"Active\",0,IF(COUNTIFS(OverEmp,$C165,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMIFS(OverValue,OverEmp,$C165,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1)),0))","v":0},{"$f":"IF($F165<>\"Active\",0,IF(COUNTIFS(OverEmp,$C165,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMIFS(OverValue,OverEmp,$C165,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1)),IF(MONTH(B165)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C165),0)))","v":0},{"$f":"IF($F165<>\"Active\",0,IF(COUNTIFS(OverEmp,$C165,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMIFS(OverValue,OverEmp,$C165,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1)),0))","v":0},{"$f":"IF($F165<>\"Active\",0,IF(COUNTIFS(OverEmp,$C165,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMIFS(OverValue,OverEmp,$C165,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C165,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMIFS(OverValue,OverEmp,$C165,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1)),(($BA165/12*$AA165)+(BB165*IF(1-$BC165=0,0,BD165/(1-$BC165))))-IF($F165=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC165,PayEmp,$C165)))","v":363.74999999999864},{"$f":"IF($F165=\"Terminated\",0,IF($AA165=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C165,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMIFS(OverValue,OverEmp,$C165,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA165)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA165,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165))))))","v":100},{"$f":"IF($F165=\"Terminated\",0,IF($AA165=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C165,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMIFS(OverValue,OverEmp,$C165,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA165)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA165,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165))))))","v":0},{"$f":"IF($F165=\"Terminated\",0,IF($AA165=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C165,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMIFS(OverValue,OverEmp,$C165,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA165)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA165,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165))))))","v":0},{"$f":"IF($F165=\"Terminated\",0,IF($AA165=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C165,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMIFS(OverValue,OverEmp,$C165,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA165)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA165,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165))))))","v":0},463.74999999999864,9536.25,{"$f":"IF($F165=\"Terminated\",0,IF($AA165=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C165,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMIFS(OverValue,OverEmp,$C165,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA165)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA165,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165)))))))","v":100},{"$f":"IF($F165=\"Terminated\",0,IF($AA165=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C165,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMIFS(OverValue,OverEmp,$C165,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA165)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA165,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165)))))))","v":100},{"$f":"IF($F165=\"Terminated\",0,IF($AA165=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C165,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMIFS(OverValue,OverEmp,$C165,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA165)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA165,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165)))))))","v":0},{"$f":"IF($F165=\"Terminated\",0,IF($AA165=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C165,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMIFS(OverValue,OverEmp,$C165,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA165)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA165,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC165,PayEmp,$C165)))))))","v":0},200,10200,663.75,{"$f":"IF(OR($B165<=Setup!$E$12,$B165>=Setup!$D$12+1),0,IF($F165<>\"Active\",0,IF($AE165=\"Yes\",$AB165,((YEAR($AC165)*12)+MONTH($AC165))-((YEAR($AD165)*12)+MONTH($AD165)-1))))","v":11},{"$f":"IF(OR($B165<=Setup!$E$12,$B165>=Setup!$D$12+1),0,((YEAR($AC165)*12)+MONTH($AC165))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":11},{"$f":"DATE(YEAR($B165),MONTH($B165),DAY($B165))","v":45316},{"$f":"IF(ISNA(VLOOKUP($C165,EmpAll,COLUMN(Emp!$E$4),0)),$AC165,IF(VLOOKUP($C165,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C165,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C165,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C165,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C165,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A165=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C165,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMIFS(OverValue,OverEmp,$C165,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1)),IF(ISNA(VLOOKUP($C165,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG165,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C165,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C165,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C165,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C165,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C165,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},118090.90909090909,{"$f":"-IF($F165=\"Terminated\",0,IF($AA165=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C165,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA165*12)+(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB165/3,0))*4)+(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB165/6,0))*2)+(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F165=\"Terminated\",0,IF($AA165=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C165,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA165*12)+(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB165/3,0))*4)+(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB165/6,0))*2)+(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F165=\"Terminated\",0,IF($AA165=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C165,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA165*12)+(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB165/3,0))*4)+(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB165/6,0))*2)+(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F165=\"Terminated\",0,IF($AA165=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C165,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA165*12)+(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB165/3,0))*4)+(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB165/6,0))*2)+(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},118090.90909090909,109090.90909090909,{"$f":"-IF($F165=\"Terminated\",0,IF($AA165=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C165,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA165*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F165=\"Terminated\",0,IF($AA165=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C165,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA165*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F165=\"Terminated\",0,IF($AA165=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C165,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA165*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F165=\"Terminated\",0,IF($AA165=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C165,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC165),MONTH($AC165)+1,1),OverEnd,\">=\"&DATE(YEAR($AC165),MONTH($AC165),1))>0,SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA165*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C165)*(PayDate<=$AC165)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA165*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C165,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C165,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},109090.90909090909,9000,{"$f":"IF(ISNUMBER($AL165),($AR165*$AL165)-$AI165-$AK165,MAX(0,IF($AL165=\"B\",IF($AR165<Setup!$C$32,($AR165*Setup!$D$32)-$AI165-$AK165,(($AR165-VLOOKUP($AR165,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR165,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR165,TaxBracket2,1),0,1,1)-$AI165-$AK165),IF($AR165<Setup!$C$21,($AR165*Setup!$D$21)-$AI165-$AK165,(($AR165-VLOOKUP($AR165,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR165,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR165,TaxBracket1,1),0,1,1)-$AI165-$AK165))))","v":4021.363636363636},{"$f":"IF(ISNUMBER($AL165),($AX165*$AL165)-$AI165-$AK165,MAX(0,IF($AL165=\"B\",IF($AX165<Setup!$C$32,($AX165*Setup!$D$32)-$AI165-$AK165,(($AX165-VLOOKUP($AX165,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX165,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX165,TaxBracket2,1),0,1,1)-$AI165-$AK165),IF($AX165<Setup!$C$21,($AX165*Setup!$D$21)-$AI165-$AK165,(($AX165-VLOOKUP($AX165,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX165,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX165,TaxBracket1,1),0,1,1)-$AI165-$AK165))))","v":2401.363636363636},1620,0.92378752886836024,7.6212471131639731E-2,118090.90909090909]
[{"$f":"IF(ROW($A166)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B166,\"yyyy\")&TEXT($B166,\"mm\")&\"-\"&$C166)","v":"202401-EXS010"},{"$f":"IF(ROW($A166)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A166)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A166)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A166)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45316},{"$f":"IF(ROW($A166)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A166)-ROW($A$6)-IF(ROW($A166)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A166)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS010"},{"$f":"IF(ISNA(VLOOKUP($C166,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C166,EmpAll,COLUMN(Emp!$B$4),0))","v":"Lewis I"},{"$f":"IF(ISNA(VLOOKUP($C166,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C166,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C166,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C166,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC166),MONTH($AC166)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C166,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC166),MONTH($AC166),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F166<>\"Active\",0,IF(COUNTIFS(OverEmp,$C166,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMIFS(OverValue,OverEmp,$C166,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1)),IF(AND($AC166>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C166)>0),SUMIFS(EmpIncrease,EmpCode,$C166),SUMIFS(EmpSalary,EmpCode,$C166))))","v":10000},{"$f":"IF($F166<>\"Active\",0,IF(COUNTIFS(OverEmp,$C166,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMIFS(OverValue,OverEmp,$C166,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1)),0))","v":0},{"$f":"IF($F166<>\"Active\",0,IF(COUNTIFS(OverEmp,$C166,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMIFS(OverValue,OverEmp,$C166,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1)),IF(MONTH(B166)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C166),0)))","v":0},{"$f":"IF($F166<>\"Active\",0,IF(COUNTIFS(OverEmp,$C166,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMIFS(OverValue,OverEmp,$C166,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1)),0))","v":0},{"$f":"IF($F166<>\"Active\",0,IF(COUNTIFS(OverEmp,$C166,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMIFS(OverValue,OverEmp,$C166,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C166,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMIFS(OverValue,OverEmp,$C166,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1)),(($BA166/12*$AA166)+(BB166*IF(1-$BC166=0,0,BD166/(1-$BC166))))-IF($F166=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC166,PayEmp,$C166)))","v":363.74999999999864},{"$f":"IF($F166=\"Terminated\",0,IF($AA166=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C166,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMIFS(OverValue,OverEmp,$C166,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA166)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA166,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166))))))","v":100},{"$f":"IF($F166=\"Terminated\",0,IF($AA166=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C166,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMIFS(OverValue,OverEmp,$C166,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA166)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA166,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166))))))","v":0},{"$f":"IF($F166=\"Terminated\",0,IF($AA166=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C166,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMIFS(OverValue,OverEmp,$C166,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA166)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA166,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166))))))","v":0},{"$f":"IF($F166=\"Terminated\",0,IF($AA166=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C166,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMIFS(OverValue,OverEmp,$C166,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA166)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA166,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166))))))","v":0},463.74999999999864,9536.25,{"$f":"IF($F166=\"Terminated\",0,IF($AA166=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C166,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMIFS(OverValue,OverEmp,$C166,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA166)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA166,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166)))))))","v":100},{"$f":"IF($F166=\"Terminated\",0,IF($AA166=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C166,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMIFS(OverValue,OverEmp,$C166,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA166)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA166,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166)))))))","v":100},{"$f":"IF($F166=\"Terminated\",0,IF($AA166=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C166,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMIFS(OverValue,OverEmp,$C166,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA166)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA166,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166)))))))","v":0},{"$f":"IF($F166=\"Terminated\",0,IF($AA166=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C166,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMIFS(OverValue,OverEmp,$C166,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA166)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA166,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC166,PayEmp,$C166)))))))","v":0},200,10200,663.75,{"$f":"IF(OR($B166<=Setup!$E$12,$B166>=Setup!$D$12+1),0,IF($F166<>\"Active\",0,IF($AE166=\"Yes\",$AB166,((YEAR($AC166)*12)+MONTH($AC166))-((YEAR($AD166)*12)+MONTH($AD166)-1))))","v":11},{"$f":"IF(OR($B166<=Setup!$E$12,$B166>=Setup!$D$12+1),0,((YEAR($AC166)*12)+MONTH($AC166))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":11},45316,{"$f":"IF(ISNA(VLOOKUP($C166,EmpAll,COLUMN(Emp!$E$4),0)),$AC166,IF(VLOOKUP($C166,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C166,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C166,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C166,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C166,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A166=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C166,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMIFS(OverValue,OverEmp,$C166,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1)),IF(ISNA(VLOOKUP($C166,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG166,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C166,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C166,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C166,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C166,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C166,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},118090.90909090909,{"$f":"-IF($F166=\"Terminated\",0,IF($AA166=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C166,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA166*12)+(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB166/3,0))*4)+(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB166/6,0))*2)+(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F166=\"Terminated\",0,IF($AA166=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C166,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA166*12)+(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB166/3,0))*4)+(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB166/6,0))*2)+(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F166=\"Terminated\",0,IF($AA166=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C166,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA166*12)+(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB166/3,0))*4)+(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB166/6,0))*2)+(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F166=\"Terminated\",0,IF($AA166=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C166,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA166*12)+(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB166/3,0))*4)+(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB166/6,0))*2)+(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},118090.90909090909,109090.90909090909,{"$f":"-IF($F166=\"Terminated\",0,IF($AA166=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C166,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA166*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F166=\"Terminated\",0,IF($AA166=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C166,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA166*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F166=\"Terminated\",0,IF($AA166=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C166,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA166*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F166=\"Terminated\",0,IF($AA166=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C166,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC166),MONTH($AC166)+1,1),OverEnd,\">=\"&DATE(YEAR($AC166),MONTH($AC166),1))>0,SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA166*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C166)*(PayDate<=$AC166)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA166*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C166,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C166,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},109090.90909090909,9000,{"$f":"IF(ISNUMBER($AL166),($AR166*$AL166)-$AI166-$AK166,MAX(0,IF($AL166=\"B\",IF($AR166<Setup!$C$32,($AR166*Setup!$D$32)-$AI166-$AK166,(($AR166-VLOOKUP($AR166,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR166,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR166,TaxBracket2,1),0,1,1)-$AI166-$AK166),IF($AR166<Setup!$C$21,($AR166*Setup!$D$21)-$AI166-$AK166,(($AR166-VLOOKUP($AR166,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR166,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR166,TaxBracket1,1),0,1,1)-$AI166-$AK166))))","v":4021.363636363636},{"$f":"IF(ISNUMBER($AL166),($AX166*$AL166)-$AI166-$AK166,MAX(0,IF($AL166=\"B\",IF($AX166<Setup!$C$32,($AX166*Setup!$D$32)-$AI166-$AK166,(($AX166-VLOOKUP($AX166,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX166,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX166,TaxBracket2,1),0,1,1)-$AI166-$AK166),IF($AX166<Setup!$C$21,($AX166*Setup!$D$21)-$AI166-$AK166,(($AX166-VLOOKUP($AX166,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX166,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX166,TaxBracket1,1),0,1,1)-$AI166-$AK166))))","v":2401.363636363636},1620,0.92378752886836024,7.6212471131639731E-2,118090.90909090909]
[{"$f":"IF(ROW($A167)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B167,\"yyyy\")&TEXT($B167,\"mm\")&\"-\"&$C167)","v":"202401-EXS011"},{"$f":"IF(ROW($A167)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A167)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A167)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A167)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45316},{"$f":"IF(ROW($A167)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A167)-ROW($A$6)-IF(ROW($A167)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A167)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS011"},{"$f":"IF(ISNA(VLOOKUP($C167,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C167,EmpAll,COLUMN(Emp!$B$4),0))","v":"Newport GD"},{"$f":"IF(ISNA(VLOOKUP($C167,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C167,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C167,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C167,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC167),MONTH($AC167)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C167,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC167),MONTH($AC167),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F167<>\"Active\",0,IF(COUNTIFS(OverEmp,$C167,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMIFS(OverValue,OverEmp,$C167,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1)),IF(AND($AC167>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C167)>0),SUMIFS(EmpIncrease,EmpCode,$C167),SUMIFS(EmpSalary,EmpCode,$C167))))","v":6000},{"$f":"IF($F167<>\"Active\",0,IF(COUNTIFS(OverEmp,$C167,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMIFS(OverValue,OverEmp,$C167,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1)),0))","v":0},{"$f":"IF($F167<>\"Active\",0,IF(COUNTIFS(OverEmp,$C167,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMIFS(OverValue,OverEmp,$C167,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1)),IF(MONTH(B167)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C167),0)))","v":0},{"$f":"IF($F167<>\"Active\",0,IF(COUNTIFS(OverEmp,$C167,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMIFS(OverValue,OverEmp,$C167,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1)),0))","v":0},{"$f":"IF($F167<>\"Active\",0,IF(COUNTIFS(OverEmp,$C167,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMIFS(OverValue,OverEmp,$C167,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1)),0))","v":0},{"$f":"IF($AA167=0,0,SUM(OFFSET($G167,0,0,1,COLUMN($L$6)-COLUMN($G$6))))","v":6000},{"$f":"IF(COUNTIFS(OverEmp,$C167,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMIFS(OverValue,OverEmp,$C167,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1)),(($BA167/12*$AA167)+(BB167*IF(1-$BC167=0,0,BD167/(1-$BC167))))-IF($F167=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC167,PayEmp,$C167)))","v":0},{"$f":"IF($F167=\"Terminated\",0,IF($AA167=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C167,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMIFS(OverValue,OverEmp,$C167,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA167)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA167,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167))))))","v":60},{"$f":"IF($F167=\"Terminated\",0,IF($AA167=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C167,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMIFS(OverValue,OverEmp,$C167,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA167)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA167,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167))))))","v":0},{"$f":"IF($F167=\"Terminated\",0,IF($AA167=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C167,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMIFS(OverValue,OverEmp,$C167,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA167)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA167,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167))))))","v":0},{"$f":"IF($F167=\"Terminated\",0,IF($AA167=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C167,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMIFS(OverValue,OverEmp,$C167,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA167)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA167,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167))))))","v":0},{"$f":"SUM(OFFSET(M167,0,0,1,COLUMN($R$6)-COLUMN($M$6)))","v":60},{"$f":"ROUND(SUM(L167,-R167),2)","v":5940},{"$f":"IF($F167=\"Terminated\",0,IF($AA167=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C167,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMIFS(OverValue,OverEmp,$C167,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA167)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA167,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167)))))))","v":60},{"$f":"IF($F167=\"Terminated\",0,IF($AA167=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C167,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMIFS(OverValue,OverEmp,$C167,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA167)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA167,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167)))))))","v":60},{"$f":"IF($F167=\"Terminated\",0,IF($AA167=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C167,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMIFS(OverValue,OverEmp,$C167,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA167)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA167,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167)))))))","v":0},{"$f":"IF($F167=\"Terminated\",0,IF($AA167=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C167,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMIFS(OverValue,OverEmp,$C167,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA167)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA167,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC167,PayEmp,$C167)))))))","v":0},120,{"$f":"L167+X167","v":6120},180,{"$f":"IF(OR($B167<=Setup!$E$12,$B167>=Setup!$D$12+1),0,IF($F167<>\"Active\",0,IF($AE167=\"Yes\",$AB167,((YEAR($AC167)*12)+MONTH($AC167))-((YEAR($AD167)*12)+MONTH($AD167)-1))))","v":11},{"$f":"IF(OR($B167<=Setup!$E$12,$B167>=Setup!$D$12+1),0,((YEAR($AC167)*12)+MONTH($AC167))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":11},45316,{"$f":"IF(ISNA(VLOOKUP($C167,EmpAll,COLUMN(Emp!$E$4),0)),$AC167,IF(VLOOKUP($C167,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C167,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C167,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C167,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C167,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A167=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C167,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMIFS(OverValue,OverEmp,$C167,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1)),IF(ISNA(VLOOKUP($C167,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG167,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C167,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C167,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C167,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C167,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C167,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},66090.909090909088,{"$f":"-IF($F167=\"Terminated\",0,IF($AA167=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C167,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA167*12)+(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB167/3,0))*4)+(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB167/6,0))*2)+(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F167=\"Terminated\",0,IF($AA167=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C167,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA167*12)+(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB167/3,0))*4)+(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB167/6,0))*2)+(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F167=\"Terminated\",0,IF($AA167=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C167,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA167*12)+(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB167/3,0))*4)+(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB167/6,0))*2)+(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F167=\"Terminated\",0,IF($AA167=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C167,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA167*12)+(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB167/3,0))*4)+(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB167/6,0))*2)+(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},66090.909090909088,61090.909090909088,{"$f":"-IF($F167=\"Terminated\",0,IF($AA167=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C167,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA167*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F167=\"Terminated\",0,IF($AA167=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C167,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA167*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F167=\"Terminated\",0,IF($AA167=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C167,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA167*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F167=\"Terminated\",0,IF($AA167=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C167,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC167),MONTH($AC167)+1,1),OverEnd,\">=\"&DATE(YEAR($AC167),MONTH($AC167),1))>0,SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA167*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C167)*(PayDate<=$AC167)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA167*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C167,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C167,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},{"$f":"$AS167+SUM(OFFSET($AT167,0,0,1,COLUMN($AX$2)-COLUMN($AT$2)))","v":61090.909090909088},{"$f":"AR167-AX167","v":5000},{"$f":"IF(ISNUMBER($AL167),($AR167*$AL167)-$AI167-$AK167,MAX(0,IF($AL167=\"B\",IF($AR167<Setup!$C$32,($AR167*Setup!$D$32)-$AI167-$AK167,(($AR167-VLOOKUP($AR167,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR167,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR167,TaxBracket2,1),0,1,1)-$AI167-$AK167),IF($AR167<Setup!$C$21,($AR167*Setup!$D$21)-$AI167-$AK167,(($AR167-VLOOKUP($AR167,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR167,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR167,TaxBracket1,1),0,1,1)-$AI167-$AK167))))","v":0},{"$f":"IF(ISNUMBER($AL167),($AX167*$AL167)-$AI167-$AK167,MAX(0,IF($AL167=\"B\",IF($AX167<Setup!$C$32,($AX167*Setup!$D$32)-$AI167-$AK167,(($AX167-VLOOKUP($AX167,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX167,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX167,TaxBracket2,1),0,1,1)-$AI167-$AK167),IF($AX167<Setup!$C$21,($AX167*Setup!$D$21)-$AI167-$AK167,(($AX167-VLOOKUP($AX167,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX167,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX167,TaxBracket1,1),0,1,1)-$AI167-$AK167))))","v":0},0,0.92434662998624484,7.5653370013755161E-2,66090.909090909088]
[{"$f":"IF(ROW($A168)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B168,\"yyyy\")&TEXT($B168,\"mm\")&\"-\"&$C168)","v":"202401-EXS012"},{"$f":"IF(ROW($A168)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A168)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A168)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A168)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45316},{"$f":"IF(ROW($A168)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A168)-ROW($A$6)-IF(ROW($A168)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A168)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS012"},{"$f":"IF(ISNA(VLOOKUP($C168,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C168,EmpAll,COLUMN(Emp!$B$4),0))","v":"Williams VS"},{"$f":"IF(ISNA(VLOOKUP($C168,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C168,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C168,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C168,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC168),MONTH($AC168)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C168,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC168),MONTH($AC168),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F168<>\"Active\",0,IF(COUNTIFS(OverEmp,$C168,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMIFS(OverValue,OverEmp,$C168,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1)),IF(AND($AC168>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C168)>0),SUMIFS(EmpIncrease,EmpCode,$C168),SUMIFS(EmpSalary,EmpCode,$C168))))","v":6000},{"$f":"IF($F168<>\"Active\",0,IF(COUNTIFS(OverEmp,$C168,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMIFS(OverValue,OverEmp,$C168,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1)),0))","v":0},{"$f":"IF($F168<>\"Active\",0,IF(COUNTIFS(OverEmp,$C168,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMIFS(OverValue,OverEmp,$C168,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1)),IF(MONTH(B168)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C168),0)))","v":0},{"$f":"IF($F168<>\"Active\",0,IF(COUNTIFS(OverEmp,$C168,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMIFS(OverValue,OverEmp,$C168,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1)),0))","v":0},{"$f":"IF($F168<>\"Active\",0,IF(COUNTIFS(OverEmp,$C168,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMIFS(OverValue,OverEmp,$C168,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1)),0))","v":0},6000,{"$f":"IF(COUNTIFS(OverEmp,$C168,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMIFS(OverValue,OverEmp,$C168,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1)),(($BA168/12*$AA168)+(BB168*IF(1-$BC168=0,0,BD168/(1-$BC168))))-IF($F168=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC168,PayEmp,$C168)))","v":0},{"$f":"IF($F168=\"Terminated\",0,IF($AA168=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C168,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMIFS(OverValue,OverEmp,$C168,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA168)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA168,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168))))))","v":60},{"$f":"IF($F168=\"Terminated\",0,IF($AA168=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C168,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMIFS(OverValue,OverEmp,$C168,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA168)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA168,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168))))))","v":0},{"$f":"IF($F168=\"Terminated\",0,IF($AA168=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C168,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMIFS(OverValue,OverEmp,$C168,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA168)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA168,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168))))))","v":0},{"$f":"IF($F168=\"Terminated\",0,IF($AA168=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C168,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMIFS(OverValue,OverEmp,$C168,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA168)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA168,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168))))))","v":0},60,5940,{"$f":"IF($F168=\"Terminated\",0,IF($AA168=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C168,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMIFS(OverValue,OverEmp,$C168,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA168)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA168,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168)))))))","v":60},{"$f":"IF($F168=\"Terminated\",0,IF($AA168=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C168,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMIFS(OverValue,OverEmp,$C168,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA168)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA168,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168)))))))","v":60},{"$f":"IF($F168=\"Terminated\",0,IF($AA168=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C168,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMIFS(OverValue,OverEmp,$C168,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA168)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA168,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168)))))))","v":0},{"$f":"IF($F168=\"Terminated\",0,IF($AA168=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C168,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMIFS(OverValue,OverEmp,$C168,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA168)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA168,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC168,PayEmp,$C168)))))))","v":0},120,6120,180,{"$f":"IF(OR($B168<=Setup!$E$12,$B168>=Setup!$D$12+1),0,IF($F168<>\"Active\",0,IF($AE168=\"Yes\",$AB168,((YEAR($AC168)*12)+MONTH($AC168))-((YEAR($AD168)*12)+MONTH($AD168)-1))))","v":11},{"$f":"IF(OR($B168<=Setup!$E$12,$B168>=Setup!$D$12+1),0,((YEAR($AC168)*12)+MONTH($AC168))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":11},45316,{"$f":"IF(ISNA(VLOOKUP($C168,EmpAll,COLUMN(Emp!$E$4),0)),$AC168,IF(VLOOKUP($C168,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C168,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C168,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C168,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C168,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A168=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C168,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMIFS(OverValue,OverEmp,$C168,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1)),IF(ISNA(VLOOKUP($C168,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG168,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C168,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C168,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C168,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C168,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C168,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},66090.909090909088,{"$f":"-IF($F168=\"Terminated\",0,IF($AA168=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C168,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA168*12)+(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB168/3,0))*4)+(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB168/6,0))*2)+(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F168=\"Terminated\",0,IF($AA168=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C168,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA168*12)+(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB168/3,0))*4)+(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB168/6,0))*2)+(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F168=\"Terminated\",0,IF($AA168=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C168,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA168*12)+(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB168/3,0))*4)+(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB168/6,0))*2)+(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F168=\"Terminated\",0,IF($AA168=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C168,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA168*12)+(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB168/3,0))*4)+(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB168/6,0))*2)+(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},66090.909090909088,61090.909090909088,{"$f":"-IF($F168=\"Terminated\",0,IF($AA168=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C168,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA168*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F168=\"Terminated\",0,IF($AA168=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C168,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA168*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F168=\"Terminated\",0,IF($AA168=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C168,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA168*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F168=\"Terminated\",0,IF($AA168=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C168,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC168),MONTH($AC168)+1,1),OverEnd,\">=\"&DATE(YEAR($AC168),MONTH($AC168),1))>0,SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA168*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C168)*(PayDate<=$AC168)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA168*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C168,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C168,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},61090.909090909088,5000,{"$f":"IF(ISNUMBER($AL168),($AR168*$AL168)-$AI168-$AK168,MAX(0,IF($AL168=\"B\",IF($AR168<Setup!$C$32,($AR168*Setup!$D$32)-$AI168-$AK168,(($AR168-VLOOKUP($AR168,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR168,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR168,TaxBracket2,1),0,1,1)-$AI168-$AK168),IF($AR168<Setup!$C$21,($AR168*Setup!$D$21)-$AI168-$AK168,(($AR168-VLOOKUP($AR168,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR168,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR168,TaxBracket1,1),0,1,1)-$AI168-$AK168))))","v":0},{"$f":"IF(ISNUMBER($AL168),($AX168*$AL168)-$AI168-$AK168,MAX(0,IF($AL168=\"B\",IF($AX168<Setup!$C$32,($AX168*Setup!$D$32)-$AI168-$AK168,(($AX168-VLOOKUP($AX168,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX168,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX168,TaxBracket2,1),0,1,1)-$AI168-$AK168),IF($AX168<Setup!$C$21,($AX168*Setup!$D$21)-$AI168-$AK168,(($AX168-VLOOKUP($AX168,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX168,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX168,TaxBracket1,1),0,1,1)-$AI168-$AK168))))","v":0},0,0.92434662998624484,7.5653370013755161E-2,66090.909090909088]
[{"$f":"IF(ROW($A169)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B169,\"yyyy\")&TEXT($B169,\"mm\")&\"-\"&$C169)","v":"202401-EXS013"},{"$f":"IF(ROW($A169)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A169)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A169)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A169)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45316},{"$f":"IF(ROW($A169)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A169)-ROW($A$6)-IF(ROW($A169)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A169)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS013"},{"$f":"IF(ISNA(VLOOKUP($C169,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C169,EmpAll,COLUMN(Emp!$B$4),0))","v":"East WD"},{"$f":"IF(ISNA(VLOOKUP($C169,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C169,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C169,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C169,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC169),MONTH($AC169)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C169,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC169),MONTH($AC169),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F169<>\"Active\",0,IF(COUNTIFS(OverEmp,$C169,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMIFS(OverValue,OverEmp,$C169,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1)),IF(AND($AC169>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C169)>0),SUMIFS(EmpIncrease,EmpCode,$C169),SUMIFS(EmpSalary,EmpCode,$C169))))","v":6000},{"$f":"IF($F169<>\"Active\",0,IF(COUNTIFS(OverEmp,$C169,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMIFS(OverValue,OverEmp,$C169,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1)),0))","v":0},{"$f":"IF($F169<>\"Active\",0,IF(COUNTIFS(OverEmp,$C169,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMIFS(OverValue,OverEmp,$C169,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1)),IF(MONTH(B169)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C169),0)))","v":0},{"$f":"IF($F169<>\"Active\",0,IF(COUNTIFS(OverEmp,$C169,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMIFS(OverValue,OverEmp,$C169,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1)),0))","v":0},{"$f":"IF($F169<>\"Active\",0,IF(COUNTIFS(OverEmp,$C169,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMIFS(OverValue,OverEmp,$C169,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1)),0))","v":0},6000,{"$f":"IF(COUNTIFS(OverEmp,$C169,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMIFS(OverValue,OverEmp,$C169,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1)),(($BA169/12*$AA169)+(BB169*IF(1-$BC169=0,0,BD169/(1-$BC169))))-IF($F169=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC169,PayEmp,$C169)))","v":0},{"$f":"IF($F169=\"Terminated\",0,IF($AA169=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C169,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMIFS(OverValue,OverEmp,$C169,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA169)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA169,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169))))))","v":60},{"$f":"IF($F169=\"Terminated\",0,IF($AA169=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C169,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMIFS(OverValue,OverEmp,$C169,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA169)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA169,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169))))))","v":0},{"$f":"IF($F169=\"Terminated\",0,IF($AA169=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C169,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMIFS(OverValue,OverEmp,$C169,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA169)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA169,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169))))))","v":0},{"$f":"IF($F169=\"Terminated\",0,IF($AA169=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C169,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMIFS(OverValue,OverEmp,$C169,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA169)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA169,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169))))))","v":0},60,5940,{"$f":"IF($F169=\"Terminated\",0,IF($AA169=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C169,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMIFS(OverValue,OverEmp,$C169,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA169)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA169,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169)))))))","v":60},{"$f":"IF($F169=\"Terminated\",0,IF($AA169=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C169,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMIFS(OverValue,OverEmp,$C169,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA169)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA169,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169)))))))","v":60},{"$f":"IF($F169=\"Terminated\",0,IF($AA169=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C169,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMIFS(OverValue,OverEmp,$C169,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA169)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA169,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169)))))))","v":0},{"$f":"IF($F169=\"Terminated\",0,IF($AA169=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C169,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMIFS(OverValue,OverEmp,$C169,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA169)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA169,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC169,PayEmp,$C169)))))))","v":0},120,6120,180,{"$f":"IF(OR($B169<=Setup!$E$12,$B169>=Setup!$D$12+1),0,IF($F169<>\"Active\",0,IF($AE169=\"Yes\",$AB169,((YEAR($AC169)*12)+MONTH($AC169))-((YEAR($AD169)*12)+MONTH($AD169)-1))))","v":11},{"$f":"IF(OR($B169<=Setup!$E$12,$B169>=Setup!$D$12+1),0,((YEAR($AC169)*12)+MONTH($AC169))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":11},45316,{"$f":"IF(ISNA(VLOOKUP($C169,EmpAll,COLUMN(Emp!$E$4),0)),$AC169,IF(VLOOKUP($C169,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C169,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C169,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C169,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C169,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A169=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C169,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMIFS(OverValue,OverEmp,$C169,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1)),IF(ISNA(VLOOKUP($C169,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG169,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C169,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C169,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C169,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C169,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C169,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},66090.909090909088,{"$f":"-IF($F169=\"Terminated\",0,IF($AA169=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C169,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA169*12)+(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB169/3,0))*4)+(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB169/6,0))*2)+(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F169=\"Terminated\",0,IF($AA169=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C169,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA169*12)+(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB169/3,0))*4)+(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB169/6,0))*2)+(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F169=\"Terminated\",0,IF($AA169=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C169,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA169*12)+(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB169/3,0))*4)+(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB169/6,0))*2)+(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F169=\"Terminated\",0,IF($AA169=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C169,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA169*12)+(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB169/3,0))*4)+(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB169/6,0))*2)+(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},66090.909090909088,61090.909090909088,{"$f":"-IF($F169=\"Terminated\",0,IF($AA169=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C169,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA169*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F169=\"Terminated\",0,IF($AA169=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C169,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA169*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F169=\"Terminated\",0,IF($AA169=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C169,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA169*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F169=\"Terminated\",0,IF($AA169=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C169,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC169),MONTH($AC169)+1,1),OverEnd,\">=\"&DATE(YEAR($AC169),MONTH($AC169),1))>0,SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA169*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C169)*(PayDate<=$AC169)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA169*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C169,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C169,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},61090.909090909088,5000,{"$f":"IF(ISNUMBER($AL169),($AR169*$AL169)-$AI169-$AK169,MAX(0,IF($AL169=\"B\",IF($AR169<Setup!$C$32,($AR169*Setup!$D$32)-$AI169-$AK169,(($AR169-VLOOKUP($AR169,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR169,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR169,TaxBracket2,1),0,1,1)-$AI169-$AK169),IF($AR169<Setup!$C$21,($AR169*Setup!$D$21)-$AI169-$AK169,(($AR169-VLOOKUP($AR169,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR169,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR169,TaxBracket1,1),0,1,1)-$AI169-$AK169))))","v":0},{"$f":"IF(ISNUMBER($AL169),($AX169*$AL169)-$AI169-$AK169,MAX(0,IF($AL169=\"B\",IF($AX169<Setup!$C$32,($AX169*Setup!$D$32)-$AI169-$AK169,(($AX169-VLOOKUP($AX169,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX169,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX169,TaxBracket2,1),0,1,1)-$AI169-$AK169),IF($AX169<Setup!$C$21,($AX169*Setup!$D$21)-$AI169-$AK169,(($AX169-VLOOKUP($AX169,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX169,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX169,TaxBracket1,1),0,1,1)-$AI169-$AK169))))","v":0},0,0.92434662998624484,7.5653370013755161E-2,66090.909090909088]
[{"$f":"IF(ROW($A170)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B170,\"yyyy\")&TEXT($B170,\"mm\")&\"-\"&$C170)","v":"202401-EXS014"},{"$f":"IF(ROW($A170)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A170)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A170)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A170)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45316},{"$f":"IF(ROW($A170)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A170)-ROW($A$6)-IF(ROW($A170)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A170)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS014"},{"$f":"IF(ISNA(VLOOKUP($C170,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C170,EmpAll,COLUMN(Emp!$B$4),0))","v":"Ross Q"},{"$f":"IF(ISNA(VLOOKUP($C170,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C170,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C170,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C170,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC170),MONTH($AC170)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C170,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC170),MONTH($AC170),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F170<>\"Active\",0,IF(COUNTIFS(OverEmp,$C170,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMIFS(OverValue,OverEmp,$C170,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1)),IF(AND($AC170>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C170)>0),SUMIFS(EmpIncrease,EmpCode,$C170),SUMIFS(EmpSalary,EmpCode,$C170))))","v":31000},{"$f":"IF($F170<>\"Active\",0,IF(COUNTIFS(OverEmp,$C170,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMIFS(OverValue,OverEmp,$C170,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1)),0))","v":0},{"$f":"IF($F170<>\"Active\",0,IF(COUNTIFS(OverEmp,$C170,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMIFS(OverValue,OverEmp,$C170,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1)),IF(MONTH(B170)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C170),0)))","v":0},{"$f":"IF($F170<>\"Active\",0,IF(COUNTIFS(OverEmp,$C170,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMIFS(OverValue,OverEmp,$C170,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1)),0))","v":0},{"$f":"IF($F170<>\"Active\",0,IF(COUNTIFS(OverEmp,$C170,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMIFS(OverValue,OverEmp,$C170,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1)),0))","v":0},31000,{"$f":"IF(COUNTIFS(OverEmp,$C170,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMIFS(OverValue,OverEmp,$C170,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1)),(($BA170/12*$AA170)+(BB170*IF(1-$BC170=0,0,BD170/(1-$BC170))))-IF($F170=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC170,PayEmp,$C170)))","v":5043.0833333333321},{"$f":"IF($F170=\"Terminated\",0,IF($AA170=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C170,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMIFS(OverValue,OverEmp,$C170,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA170)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA170,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170))))))","v":177.12000000000012},{"$f":"IF($F170=\"Terminated\",0,IF($AA170=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C170,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMIFS(OverValue,OverEmp,$C170,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA170)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA170,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170))))))","v":0},{"$f":"IF($F170=\"Terminated\",0,IF($AA170=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C170,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMIFS(OverValue,OverEmp,$C170,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA170)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA170,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170))))))","v":0},{"$f":"IF($F170=\"Terminated\",0,IF($AA170=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C170,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMIFS(OverValue,OverEmp,$C170,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA170)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA170,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170))))))","v":0},5220.203333333332,25779.8,{"$f":"IF($F170=\"Terminated\",0,IF($AA170=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C170,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMIFS(OverValue,OverEmp,$C170,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA170)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA170,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170)))))))","v":177.12000000000012},{"$f":"IF($F170=\"Terminated\",0,IF($AA170=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C170,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMIFS(OverValue,OverEmp,$C170,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA170)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA170,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170)))))))","v":310},{"$f":"IF($F170=\"Terminated\",0,IF($AA170=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C170,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMIFS(OverValue,OverEmp,$C170,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA170)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA170,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170)))))))","v":0},{"$f":"IF($F170=\"Terminated\",0,IF($AA170=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C170,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMIFS(OverValue,OverEmp,$C170,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA170)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA170,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC170,PayEmp,$C170)))))))","v":0},487.12000000000012,31487.119999999999,5707.32,{"$f":"IF(OR($B170<=Setup!$E$12,$B170>=Setup!$D$12+1),0,IF($F170<>\"Active\",0,IF($AE170=\"Yes\",$AB170,((YEAR($AC170)*12)+MONTH($AC170))-((YEAR($AD170)*12)+MONTH($AD170)-1))))","v":8},{"$f":"IF(OR($B170<=Setup!$E$12,$B170>=Setup!$D$12+1),0,((YEAR($AC170)*12)+MONTH($AC170))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":11},45316,{"$f":"IF(ISNA(VLOOKUP($C170,EmpAll,COLUMN(Emp!$E$4),0)),$AC170,IF(VLOOKUP($C170,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C170,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-06-25"},{"$f":"IF(ISNA(VLOOKUP($C170,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C170,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C170,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A170=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C170,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMIFS(OverValue,OverEmp,$C170,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1)),IF(ISNA(VLOOKUP($C170,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG170,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C170,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C170,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C170,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C170,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C170,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},352575,{"$f":"-IF($F170=\"Terminated\",0,IF($AA170=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C170,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA170*12)+(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB170/3,0))*4)+(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB170/6,0))*2)+(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F170=\"Terminated\",0,IF($AA170=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C170,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA170*12)+(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB170/3,0))*4)+(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB170/6,0))*2)+(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F170=\"Terminated\",0,IF($AA170=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C170,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA170*12)+(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB170/3,0))*4)+(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB170/6,0))*2)+(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F170=\"Terminated\",0,IF($AA170=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C170,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA170*12)+(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB170/3,0))*4)+(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB170/6,0))*2)+(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},352575,352575,{"$f":"-IF($F170=\"Terminated\",0,IF($AA170=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C170,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA170*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F170=\"Terminated\",0,IF($AA170=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C170,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA170*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F170=\"Terminated\",0,IF($AA170=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C170,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA170*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F170=\"Terminated\",0,IF($AA170=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C170,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC170),MONTH($AC170)+1,1),OverEnd,\">=\"&DATE(YEAR($AC170),MONTH($AC170),1))>0,SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA170*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C170)*(PayDate<=$AC170)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA170*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C170,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C170,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},352575,0,{"$f":"IF(ISNUMBER($AL170),($AR170*$AL170)-$AI170-$AK170,MAX(0,IF($AL170=\"B\",IF($AR170<Setup!$C$32,($AR170*Setup!$D$32)-$AI170-$AK170,(($AR170-VLOOKUP($AR170,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR170,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR170,TaxBracket2,1),0,1,1)-$AI170-$AK170),IF($AR170<Setup!$C$21,($AR170*Setup!$D$21)-$AI170-$AK170,(($AR170-VLOOKUP($AR170,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR170,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR170,TaxBracket1,1),0,1,1)-$AI170-$AK170))))","v":55466.5},{"$f":"IF(ISNUMBER($AL170),($AX170*$AL170)-$AI170-$AK170,MAX(0,IF($AL170=\"B\",IF($AX170<Setup!$C$32,($AX170*Setup!$D$32)-$AI170-$AK170,(($AX170-VLOOKUP($AX170,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX170,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX170,TaxBracket2,1),0,1,1)-$AI170-$AK170),IF($AX170<Setup!$C$21,($AX170*Setup!$D$21)-$AI170-$AK170,(($AX170-VLOOKUP($AX170,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX170,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX170,TaxBracket1,1),0,1,1)-$AI170-$AK170))))","v":55466.5},0,1,0,352575]
[{"$f":"IF(ROW($A171)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B171,\"yyyy\")&TEXT($B171,\"mm\")&\"-\"&$C171)","v":"202401-EXS015"},{"$f":"IF(ROW($A171)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A171)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A171)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A171)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45316},{"$f":"IF(ROW($A171)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A171)-ROW($A$6)-IF(ROW($A171)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A171)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS015"},{"$f":"IF(ISNA(VLOOKUP($C171,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C171,EmpAll,COLUMN(Emp!$B$4),0))","v":"Graham L"},{"$f":"IF(ISNA(VLOOKUP($C171,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C171,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C171,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C171,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC171),MONTH($AC171)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C171,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC171),MONTH($AC171),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F171<>\"Active\",0,IF(COUNTIFS(OverEmp,$C171,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMIFS(OverValue,OverEmp,$C171,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1)),IF(AND($AC171>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C171)>0),SUMIFS(EmpIncrease,EmpCode,$C171),SUMIFS(EmpSalary,EmpCode,$C171))))","v":10500},{"$f":"IF($F171<>\"Active\",0,IF(COUNTIFS(OverEmp,$C171,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMIFS(OverValue,OverEmp,$C171,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1)),0))","v":0},{"$f":"IF($F171<>\"Active\",0,IF(COUNTIFS(OverEmp,$C171,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMIFS(OverValue,OverEmp,$C171,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1)),IF(MONTH(B171)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C171),0)))","v":0},{"$f":"IF($F171<>\"Active\",0,IF(COUNTIFS(OverEmp,$C171,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMIFS(OverValue,OverEmp,$C171,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1)),0))","v":0},{"$f":"IF($F171<>\"Active\",0,IF(COUNTIFS(OverEmp,$C171,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMIFS(OverValue,OverEmp,$C171,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1)),0))","v":0},10500,{"$f":"IF(COUNTIFS(OverEmp,$C171,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMIFS(OverValue,OverEmp,$C171,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1)),(($BA171/12*$AA171)+(BB171*IF(1-$BC171=0,0,BD171/(1-$BC171))))-IF($F171=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC171,PayEmp,$C171)))","v":0},{"$f":"IF($F171=\"Terminated\",0,IF($AA171=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C171,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMIFS(OverValue,OverEmp,$C171,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA171)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA171,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171))))))","v":105},{"$f":"IF($F171=\"Terminated\",0,IF($AA171=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C171,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMIFS(OverValue,OverEmp,$C171,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA171)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA171,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171))))))","v":0},{"$f":"IF($F171=\"Terminated\",0,IF($AA171=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C171,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMIFS(OverValue,OverEmp,$C171,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA171)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA171,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171))))))","v":0},{"$f":"IF($F171=\"Terminated\",0,IF($AA171=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C171,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMIFS(OverValue,OverEmp,$C171,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA171)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA171,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171))))))","v":0},105,10395,{"$f":"IF($F171=\"Terminated\",0,IF($AA171=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C171,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMIFS(OverValue,OverEmp,$C171,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA171)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA171,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171)))))))","v":105},{"$f":"IF($F171=\"Terminated\",0,IF($AA171=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C171,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMIFS(OverValue,OverEmp,$C171,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA171)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA171,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171)))))))","v":105},{"$f":"IF($F171=\"Terminated\",0,IF($AA171=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C171,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMIFS(OverValue,OverEmp,$C171,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA171)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA171,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171)))))))","v":0},{"$f":"IF($F171=\"Terminated\",0,IF($AA171=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C171,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMIFS(OverValue,OverEmp,$C171,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA171)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA171,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC171,PayEmp,$C171)))))))","v":0},210,10710,315,{"$f":"IF(OR($B171<=Setup!$E$12,$B171>=Setup!$D$12+1),0,IF($F171<>\"Active\",0,IF($AE171=\"Yes\",$AB171,((YEAR($AC171)*12)+MONTH($AC171))-((YEAR($AD171)*12)+MONTH($AD171)-1))))","v":1},{"$f":"IF(OR($B171<=Setup!$E$12,$B171>=Setup!$D$12+1),0,((YEAR($AC171)*12)+MONTH($AC171))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":11},45316,{"$f":"IF(ISNA(VLOOKUP($C171,EmpAll,COLUMN(Emp!$E$4),0)),$AC171,IF(VLOOKUP($C171,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C171,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-01-25"},{"$f":"IF(ISNA(VLOOKUP($C171,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C171,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C171,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A171=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C171,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMIFS(OverValue,OverEmp,$C171,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1)),IF(ISNA(VLOOKUP($C171,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG171,MedList,COLUMN(Setup!$C$49),1)","v":364},8008,{"$f":"IF(ISNA(VLOOKUP($C171,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C171,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C171,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C171,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C171,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},126000,{"$f":"-IF($F171=\"Terminated\",0,IF($AA171=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C171,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA171*12)+(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB171/3,0))*4)+(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB171/6,0))*2)+(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F171=\"Terminated\",0,IF($AA171=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C171,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA171*12)+(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB171/3,0))*4)+(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB171/6,0))*2)+(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F171=\"Terminated\",0,IF($AA171=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C171,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA171*12)+(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB171/3,0))*4)+(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB171/6,0))*2)+(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F171=\"Terminated\",0,IF($AA171=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C171,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA171*12)+(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB171/3,0))*4)+(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB171/6,0))*2)+(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},126000,126000,{"$f":"-IF($F171=\"Terminated\",0,IF($AA171=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C171,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA171*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F171=\"Terminated\",0,IF($AA171=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C171,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA171*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F171=\"Terminated\",0,IF($AA171=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C171,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA171*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F171=\"Terminated\",0,IF($AA171=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C171,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC171),MONTH($AC171)+1,1),OverEnd,\">=\"&DATE(YEAR($AC171),MONTH($AC171),1))>0,SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA171*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C171)*(PayDate<=$AC171)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA171*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C171,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C171,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},126000,0,{"$f":"IF(ISNUMBER($AL171),($AR171*$AL171)-$AI171-$AK171,MAX(0,IF($AL171=\"B\",IF($AR171<Setup!$C$32,($AR171*Setup!$D$32)-$AI171-$AK171,(($AR171-VLOOKUP($AR171,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR171,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR171,TaxBracket2,1),0,1,1)-$AI171-$AK171),IF($AR171<Setup!$C$21,($AR171*Setup!$D$21)-$AI171-$AK171,(($AR171-VLOOKUP($AR171,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR171,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR171,TaxBracket1,1),0,1,1)-$AI171-$AK171))))","v":0},{"$f":"IF(ISNUMBER($AL171),($AX171*$AL171)-$AI171-$AK171,MAX(0,IF($AL171=\"B\",IF($AX171<Setup!$C$32,($AX171*Setup!$D$32)-$AI171-$AK171,(($AX171-VLOOKUP($AX171,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX171,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX171,TaxBracket2,1),0,1,1)-$AI171-$AK171),IF($AX171<Setup!$C$21,($AX171*Setup!$D$21)-$AI171-$AK171,(($AX171-VLOOKUP($AX171,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX171,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX171,TaxBracket1,1),0,1,1)-$AI171-$AK171))))","v":0},0,1,0,126000]
[{"$f":"IF(ROW($A172)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B172,\"yyyy\")&TEXT($B172,\"mm\")&\"-\"&$C172)","v":"202402-EXS001"},{"$f":"IF(ROW($A172)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A172)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A172)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A172)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45347},{"$f":"IF(ROW($A172)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A172)-ROW($A$6)-IF(ROW($A172)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A172)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS001"},{"$f":"IF(ISNA(VLOOKUP($C172,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C172,EmpAll,COLUMN(Emp!$B$4),0))","v":"Taylor AE"},{"$f":"IF(ISNA(VLOOKUP($C172,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C172,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C172,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C172,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC172),MONTH($AC172)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C172,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC172),MONTH($AC172),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F172<>\"Active\",0,IF(COUNTIFS(OverEmp,$C172,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMIFS(OverValue,OverEmp,$C172,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1)),IF(AND($AC172>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C172)>0),SUMIFS(EmpIncrease,EmpCode,$C172),SUMIFS(EmpSalary,EmpCode,$C172))))","v":165000},{"$f":"IF($F172<>\"Active\",0,IF(COUNTIFS(OverEmp,$C172,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMIFS(OverValue,OverEmp,$C172,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1)),0))","v":0},{"$f":"IF($F172<>\"Active\",0,IF(COUNTIFS(OverEmp,$C172,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMIFS(OverValue,OverEmp,$C172,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1)),IF(MONTH(B172)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C172),0)))","v":0},{"$f":"IF($F172<>\"Active\",0,IF(COUNTIFS(OverEmp,$C172,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMIFS(OverValue,OverEmp,$C172,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1)),0))","v":0},{"$f":"IF($F172<>\"Active\",0,IF(COUNTIFS(OverEmp,$C172,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMIFS(OverValue,OverEmp,$C172,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1)),0))","v":0},165000,{"$f":"IF(COUNTIFS(OverEmp,$C172,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMIFS(OverValue,OverEmp,$C172,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1)),(($BA172/12*$AA172)+(BB172*IF(1-$BC172=0,0,BD172/(1-$BC172))))-IF($F172=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC172,PayEmp,$C172)))","v":51805.128787878901},{"$f":"IF($F172=\"Terminated\",0,IF($AA172=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C172,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMIFS(OverValue,OverEmp,$C172,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA172)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA172,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172))))))","v":177.12000000000012},{"$f":"IF($F172=\"Terminated\",0,IF($AA172=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C172,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMIFS(OverValue,OverEmp,$C172,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA172)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA172,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172))))))","v":12375},{"$f":"IF($F172=\"Terminated\",0,IF($AA172=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C172,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMIFS(OverValue,OverEmp,$C172,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA172)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA172,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172))))))","v":0},{"$f":"IF($F172=\"Terminated\",0,IF($AA172=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C172,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMIFS(OverValue,OverEmp,$C172,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA172)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA172,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172))))))","v":0},64357.248787878903,100642.75,{"$f":"IF($F172=\"Terminated\",0,IF($AA172=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C172,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMIFS(OverValue,OverEmp,$C172,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA172)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA172,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172)))))))","v":177.12000000000012},{"$f":"IF($F172=\"Terminated\",0,IF($AA172=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C172,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMIFS(OverValue,OverEmp,$C172,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA172)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA172,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172)))))))","v":1650},{"$f":"IF($F172=\"Terminated\",0,IF($AA172=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C172,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMIFS(OverValue,OverEmp,$C172,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA172)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA172,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172)))))))","v":0},{"$f":"IF($F172=\"Terminated\",0,IF($AA172=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C172,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMIFS(OverValue,OverEmp,$C172,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA172)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA172,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC172,PayEmp,$C172)))))))","v":0},1827.1200000000001,166827.12,66184.37,{"$f":"IF(OR($B172<=Setup!$E$12,$B172>=Setup!$D$12+1),0,IF($F172<>\"Active\",0,IF($AE172=\"Yes\",$AB172,((YEAR($AC172)*12)+MONTH($AC172))-((YEAR($AD172)*12)+MONTH($AD172)-1))))","v":12},{"$f":"IF(OR($B172<=Setup!$E$12,$B172>=Setup!$D$12+1),0,((YEAR($AC172)*12)+MONTH($AC172))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45347,{"$f":"IF(ISNA(VLOOKUP($C172,EmpAll,COLUMN(Emp!$E$4),0)),$AC172,IF(VLOOKUP($C172,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C172,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C172,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C172,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C172,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A172=PaySlip!$G$3,1,0)","v":1},{"$f":"IF(COUNTIFS(OverEmp,$C172,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMIFS(OverValue,OverEmp,$C172,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1)),IF(ISNA(VLOOKUP($C172,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$N$4),0)))","v":5},{"$f":"VLOOKUP($AG172,MedList,COLUMN(Setup!$C$49),1)","v":1466},17592,{"$f":"IF(ISNA(VLOOKUP($C172,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C172,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C172,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C172,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C172,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1980000,{"$f":"-IF($F172=\"Terminated\",0,IF($AA172=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C172,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA172*12)+(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB172/3,0))*4)+(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB172/6,0))*2)+(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F172=\"Terminated\",0,IF($AA172=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C172,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA172*12)+(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB172/3,0))*4)+(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB172/6,0))*2)+(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":-148500},{"$f":"-IF($F172=\"Terminated\",0,IF($AA172=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C172,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA172*12)+(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB172/3,0))*4)+(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB172/6,0))*2)+(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F172=\"Terminated\",0,IF($AA172=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C172,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA172*12)+(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB172/3,0))*4)+(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB172/6,0))*2)+(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1831500,1830000,{"$f":"-IF($F172=\"Terminated\",0,IF($AA172=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C172,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA172*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F172=\"Terminated\",0,IF($AA172=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C172,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA172*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":-137250},{"$f":"-IF($F172=\"Terminated\",0,IF($AA172=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C172,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA172*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F172=\"Terminated\",0,IF($AA172=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C172,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC172),MONTH($AC172)+1,1),OverEnd,\">=\"&DATE(YEAR($AC172),MONTH($AC172),1))>0,SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA172*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C172)*(PayDate<=$AC172)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA172*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C172,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C172,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1692750,138750,{"$f":"IF(ISNUMBER($AL172),($AR172*$AL172)-$AI172-$AK172,MAX(0,IF($AL172=\"B\",IF($AR172<Setup!$C$32,($AR172*Setup!$D$32)-$AI172-$AK172,(($AR172-VLOOKUP($AR172,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR172,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR172,TaxBracket2,1),0,1,1)-$AI172-$AK172),IF($AR172<Setup!$C$21,($AR172*Setup!$D$21)-$AI172-$AK172,(($AR172-VLOOKUP($AR172,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR172,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR172,TaxBracket1,1),0,1,1)-$AI172-$AK172))))","v":616187},{"$f":"IF(ISNUMBER($AL172),($AX172*$AL172)-$AI172-$AK172,MAX(0,IF($AL172=\"B\",IF($AX172<Setup!$C$32,($AX172*Setup!$D$32)-$AI172-$AK172,(($AX172-VLOOKUP($AX172,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX172,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX172,TaxBracket2,1),0,1,1)-$AI172-$AK172),IF($AX172<Setup!$C$21,($AX172*Setup!$D$21)-$AI172-$AK172,(($AX172-VLOOKUP($AX172,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX172,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX172,TaxBracket1,1),0,1,1)-$AI172-$AK172))))","v":558719.5},57467.5,0.9242424242424242,7.575757575757576E-2,1980000]
[{"$f":"IF(ROW($A173)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B173,\"yyyy\")&TEXT($B173,\"mm\")&\"-\"&$C173)","v":"202402-EXS002"},{"$f":"IF(ROW($A173)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A173)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A173)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A173)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45347},{"$f":"IF(ROW($A173)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A173)-ROW($A$6)-IF(ROW($A173)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A173)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS002"},{"$f":"IF(ISNA(VLOOKUP($C173,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C173,EmpAll,COLUMN(Emp!$B$4),0))","v":"Smith F"},{"$f":"IF(ISNA(VLOOKUP($C173,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C173,EmpAll,COLUMN(Emp!$C$4),0))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($C173,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C173,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC173),MONTH($AC173)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C173,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC173),MONTH($AC173),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F173<>\"Active\",0,IF(COUNTIFS(OverEmp,$C173,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMIFS(OverValue,OverEmp,$C173,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1)),IF(AND($AC173>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C173)>0),SUMIFS(EmpIncrease,EmpCode,$C173),SUMIFS(EmpSalary,EmpCode,$C173))))","v":132000},{"$f":"IF($F173<>\"Active\",0,IF(COUNTIFS(OverEmp,$C173,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMIFS(OverValue,OverEmp,$C173,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1)),0))","v":0},{"$f":"IF($F173<>\"Active\",0,IF(COUNTIFS(OverEmp,$C173,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMIFS(OverValue,OverEmp,$C173,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1)),IF(MONTH(B173)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C173),0)))","v":0},{"$f":"IF($F173<>\"Active\",0,IF(COUNTIFS(OverEmp,$C173,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMIFS(OverValue,OverEmp,$C173,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1)),0))","v":0},{"$f":"IF($F173<>\"Active\",0,IF(COUNTIFS(OverEmp,$C173,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMIFS(OverValue,OverEmp,$C173,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1)),0))","v":0},132000,{"$f":"IF(COUNTIFS(OverEmp,$C173,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMIFS(OverValue,OverEmp,$C173,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1)),(($BA173/12*$AA173)+(BB173*IF(1-$BC173=0,0,BD173/(1-$BC173))))-IF($F173=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC173,PayEmp,$C173)))","v":43418.333333333372},{"$f":"IF($F173=\"Terminated\",0,IF($AA173=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C173,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMIFS(OverValue,OverEmp,$C173,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA173)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA173,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173))))))","v":177.12000000000012},{"$f":"IF($F173=\"Terminated\",0,IF($AA173=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C173,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMIFS(OverValue,OverEmp,$C173,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA173)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA173,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173))))))","v":0},{"$f":"IF($F173=\"Terminated\",0,IF($AA173=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C173,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMIFS(OverValue,OverEmp,$C173,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA173)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA173,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173))))))","v":0},{"$f":"IF($F173=\"Terminated\",0,IF($AA173=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C173,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMIFS(OverValue,OverEmp,$C173,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA173)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA173,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173))))))","v":0},43595.453333333375,88404.55,{"$f":"IF($F173=\"Terminated\",0,IF($AA173=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C173,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMIFS(OverValue,OverEmp,$C173,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA173)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA173,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173)))))))","v":177.12000000000012},{"$f":"IF($F173=\"Terminated\",0,IF($AA173=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C173,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMIFS(OverValue,OverEmp,$C173,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA173)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA173,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173)))))))","v":1320},{"$f":"IF($F173=\"Terminated\",0,IF($AA173=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C173,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMIFS(OverValue,OverEmp,$C173,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA173)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA173,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173)))))))","v":0},{"$f":"IF($F173=\"Terminated\",0,IF($AA173=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C173,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMIFS(OverValue,OverEmp,$C173,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA173)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA173,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC173,PayEmp,$C173)))))))","v":0},1497.1200000000001,133497.12,45092.57,{"$f":"IF(OR($B173<=Setup!$E$12,$B173>=Setup!$D$12+1),0,IF($F173<>\"Active\",0,IF($AE173=\"Yes\",$AB173,((YEAR($AC173)*12)+MONTH($AC173))-((YEAR($AD173)*12)+MONTH($AD173)-1))))","v":12},{"$f":"IF(OR($B173<=Setup!$E$12,$B173>=Setup!$D$12+1),0,((YEAR($AC173)*12)+MONTH($AC173))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45347,{"$f":"IF(ISNA(VLOOKUP($C173,EmpAll,COLUMN(Emp!$E$4),0)),$AC173,IF(VLOOKUP($C173,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C173,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C173,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C173,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C173,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A173=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C173,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMIFS(OverValue,OverEmp,$C173,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1)),IF(ISNA(VLOOKUP($C173,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$N$4),0)))","v":3},{"$f":"VLOOKUP($AG173,MedList,COLUMN(Setup!$C$49),1)","v":974},10704,{"$f":"IF(ISNA(VLOOKUP($C173,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C173,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C173,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C173,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C173,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},1584000,{"$f":"-IF($F173=\"Terminated\",0,IF($AA173=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C173,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA173*12)+(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB173/3,0))*4)+(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB173/6,0))*2)+(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F173=\"Terminated\",0,IF($AA173=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C173,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA173*12)+(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB173/3,0))*4)+(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB173/6,0))*2)+(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F173=\"Terminated\",0,IF($AA173=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C173,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA173*12)+(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB173/3,0))*4)+(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB173/6,0))*2)+(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F173=\"Terminated\",0,IF($AA173=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C173,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA173*12)+(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB173/3,0))*4)+(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB173/6,0))*2)+(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},1584000,1464000,{"$f":"-IF($F173=\"Terminated\",0,IF($AA173=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C173,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA173*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F173=\"Terminated\",0,IF($AA173=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C173,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA173*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F173=\"Terminated\",0,IF($AA173=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C173,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA173*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F173=\"Terminated\",0,IF($AA173=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C173,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC173),MONTH($AC173)+1,1),OverEnd,\">=\"&DATE(YEAR($AC173),MONTH($AC173),1))>0,SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA173*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C173)*(PayDate<=$AC173)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA173*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C173,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C173,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},1464000,120000,{"$f":"IF(ISNUMBER($AL173),($AR173*$AL173)-$AI173-$AK173,MAX(0,IF($AL173=\"B\",IF($AR173<Setup!$C$32,($AR173*Setup!$D$32)-$AI173-$AK173,(($AR173-VLOOKUP($AR173,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR173,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR173,TaxBracket2,1),0,1,1)-$AI173-$AK173),IF($AR173<Setup!$C$21,($AR173*Setup!$D$21)-$AI173-$AK173,(($AR173-VLOOKUP($AR173,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR173,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR173,TaxBracket1,1),0,1,1)-$AI173-$AK173))))","v":521020},{"$f":"IF(ISNUMBER($AL173),($AX173*$AL173)-$AI173-$AK173,MAX(0,IF($AL173=\"B\",IF($AX173<Setup!$C$32,($AX173*Setup!$D$32)-$AI173-$AK173,(($AX173-VLOOKUP($AX173,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX173,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX173,TaxBracket2,1),0,1,1)-$AI173-$AK173),IF($AX173<Setup!$C$21,($AX173*Setup!$D$21)-$AI173-$AK173,(($AX173-VLOOKUP($AX173,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX173,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX173,TaxBracket1,1),0,1,1)-$AI173-$AK173))))","v":471820},49200,0.9242424242424242,7.575757575757576E-2,1584000]
[{"$f":"IF(ROW($A174)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B174,\"yyyy\")&TEXT($B174,\"mm\")&\"-\"&$C174)","v":"202402-EXS003"},{"$f":"IF(ROW($A174)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A174)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A174)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A174)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45347},{"$f":"IF(ROW($A174)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A174)-ROW($A$6)-IF(ROW($A174)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A174)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS003"},{"$f":"IF(ISNA(VLOOKUP($C174,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C174,EmpAll,COLUMN(Emp!$B$4),0))","v":"Wilson PG"},{"$f":"IF(ISNA(VLOOKUP($C174,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C174,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C174,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C174,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC174),MONTH($AC174)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C174,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC174),MONTH($AC174),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F174<>\"Active\",0,IF(COUNTIFS(OverEmp,$C174,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMIFS(OverValue,OverEmp,$C174,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1)),IF(AND($AC174>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C174)>0),SUMIFS(EmpIncrease,EmpCode,$C174),SUMIFS(EmpSalary,EmpCode,$C174))))","v":16500},{"$f":"IF($F174<>\"Active\",0,IF(COUNTIFS(OverEmp,$C174,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMIFS(OverValue,OverEmp,$C174,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1)),0))","v":0},{"$f":"IF($F174<>\"Active\",0,IF(COUNTIFS(OverEmp,$C174,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMIFS(OverValue,OverEmp,$C174,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1)),IF(MONTH(B174)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C174),0)))","v":0},{"$f":"IF($F174<>\"Active\",0,IF(COUNTIFS(OverEmp,$C174,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMIFS(OverValue,OverEmp,$C174,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1)),0))","v":0},{"$f":"IF($F174<>\"Active\",0,IF(COUNTIFS(OverEmp,$C174,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMIFS(OverValue,OverEmp,$C174,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1)),0))","v":0},16500,{"$f":"IF(COUNTIFS(OverEmp,$C174,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMIFS(OverValue,OverEmp,$C174,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1)),(($BA174/12*$AA174)+(BB174*IF(1-$BC174=0,0,BD174/(1-$BC174))))-IF($F174=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC174,PayEmp,$C174)))","v":1169.7499999999964},{"$f":"IF($F174=\"Terminated\",0,IF($AA174=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C174,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMIFS(OverValue,OverEmp,$C174,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA174)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA174,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174))))))","v":165},{"$f":"IF($F174=\"Terminated\",0,IF($AA174=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C174,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMIFS(OverValue,OverEmp,$C174,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA174)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA174,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174))))))","v":0},{"$f":"IF($F174=\"Terminated\",0,IF($AA174=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C174,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMIFS(OverValue,OverEmp,$C174,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA174)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA174,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174))))))","v":2000},{"$f":"IF($F174=\"Terminated\",0,IF($AA174=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C174,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMIFS(OverValue,OverEmp,$C174,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA174)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA174,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174))))))","v":0},3334.7499999999964,13165.25,{"$f":"IF($F174=\"Terminated\",0,IF($AA174=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C174,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMIFS(OverValue,OverEmp,$C174,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA174)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA174,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174)))))))","v":165},{"$f":"IF($F174=\"Terminated\",0,IF($AA174=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C174,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMIFS(OverValue,OverEmp,$C174,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA174)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA174,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174)))))))","v":165},{"$f":"IF($F174=\"Terminated\",0,IF($AA174=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C174,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMIFS(OverValue,OverEmp,$C174,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA174)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA174,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174)))))))","v":0},{"$f":"IF($F174=\"Terminated\",0,IF($AA174=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C174,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMIFS(OverValue,OverEmp,$C174,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA174)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA174,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC174,PayEmp,$C174)))))))","v":0},330,16830,3664.75,{"$f":"IF(OR($B174<=Setup!$E$12,$B174>=Setup!$D$12+1),0,IF($F174<>\"Active\",0,IF($AE174=\"Yes\",$AB174,((YEAR($AC174)*12)+MONTH($AC174))-((YEAR($AD174)*12)+MONTH($AD174)-1))))","v":12},{"$f":"IF(OR($B174<=Setup!$E$12,$B174>=Setup!$D$12+1),0,((YEAR($AC174)*12)+MONTH($AC174))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45347,{"$f":"IF(ISNA(VLOOKUP($C174,EmpAll,COLUMN(Emp!$E$4),0)),$AC174,IF(VLOOKUP($C174,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C174,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C174,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C174,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C174,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A174=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C174,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMIFS(OverValue,OverEmp,$C174,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1)),IF(ISNA(VLOOKUP($C174,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG174,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C174,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C174,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C174,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C174,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C174,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},198000,{"$f":"-IF($F174=\"Terminated\",0,IF($AA174=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C174,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA174*12)+(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB174/3,0))*4)+(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB174/6,0))*2)+(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F174=\"Terminated\",0,IF($AA174=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C174,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA174*12)+(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB174/3,0))*4)+(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB174/6,0))*2)+(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F174=\"Terminated\",0,IF($AA174=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C174,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA174*12)+(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB174/3,0))*4)+(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB174/6,0))*2)+(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F174=\"Terminated\",0,IF($AA174=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C174,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA174*12)+(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB174/3,0))*4)+(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB174/6,0))*2)+(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},198000,183000,{"$f":"-IF($F174=\"Terminated\",0,IF($AA174=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C174,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA174*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F174=\"Terminated\",0,IF($AA174=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C174,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA174*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F174=\"Terminated\",0,IF($AA174=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C174,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA174*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F174=\"Terminated\",0,IF($AA174=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C174,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC174),MONTH($AC174)+1,1),OverEnd,\">=\"&DATE(YEAR($AC174),MONTH($AC174),1))>0,SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA174*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C174)*(PayDate<=$AC174)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA174*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C174,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C174,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},183000,15000,{"$f":"IF(ISNUMBER($AL174),($AR174*$AL174)-$AI174-$AK174,MAX(0,IF($AL174=\"B\",IF($AR174<Setup!$C$32,($AR174*Setup!$D$32)-$AI174-$AK174,(($AR174-VLOOKUP($AR174,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR174,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR174,TaxBracket2,1),0,1,1)-$AI174-$AK174),IF($AR174<Setup!$C$21,($AR174*Setup!$D$21)-$AI174-$AK174,(($AR174-VLOOKUP($AR174,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR174,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR174,TaxBracket1,1),0,1,1)-$AI174-$AK174))))","v":14037},{"$f":"IF(ISNUMBER($AL174),($AX174*$AL174)-$AI174-$AK174,MAX(0,IF($AL174=\"B\",IF($AX174<Setup!$C$32,($AX174*Setup!$D$32)-$AI174-$AK174,(($AX174-VLOOKUP($AX174,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX174,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX174,TaxBracket2,1),0,1,1)-$AI174-$AK174),IF($AX174<Setup!$C$21,($AX174*Setup!$D$21)-$AI174-$AK174,(($AX174-VLOOKUP($AX174,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX174,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX174,TaxBracket1,1),0,1,1)-$AI174-$AK174))))","v":11337},2700,0.9242424242424242,7.575757575757576E-2,198000]
[{"$f":"IF(ROW($A175)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B175,\"yyyy\")&TEXT($B175,\"mm\")&\"-\"&$C175)","v":"202402-EXS004"},{"$f":"IF(ROW($A175)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A175)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A175)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A175)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45347},{"$f":"IF(ROW($A175)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A175)-ROW($A$6)-IF(ROW($A175)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A175)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS004"},{"$f":"IF(ISNA(VLOOKUP($C175,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C175,EmpAll,COLUMN(Emp!$B$4),0))","v":"Osborne S"},{"$f":"IF(ISNA(VLOOKUP($C175,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C175,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C175,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C175,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC175),MONTH($AC175)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C175,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC175),MONTH($AC175),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F175<>\"Active\",0,IF(COUNTIFS(OverEmp,$C175,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMIFS(OverValue,OverEmp,$C175,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1)),IF(AND($AC175>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C175)>0),SUMIFS(EmpIncrease,EmpCode,$C175),SUMIFS(EmpSalary,EmpCode,$C175))))","v":16500},{"$f":"IF($F175<>\"Active\",0,IF(COUNTIFS(OverEmp,$C175,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMIFS(OverValue,OverEmp,$C175,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1)),0))","v":0},{"$f":"IF($F175<>\"Active\",0,IF(COUNTIFS(OverEmp,$C175,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMIFS(OverValue,OverEmp,$C175,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1)),IF(MONTH(B175)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C175),0)))","v":0},{"$f":"IF($F175<>\"Active\",0,IF(COUNTIFS(OverEmp,$C175,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMIFS(OverValue,OverEmp,$C175,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1)),0))","v":0},{"$f":"IF($F175<>\"Active\",0,IF(COUNTIFS(OverEmp,$C175,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMIFS(OverValue,OverEmp,$C175,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1)),0))","v":0},16500,{"$f":"IF(COUNTIFS(OverEmp,$C175,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMIFS(OverValue,OverEmp,$C175,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1)),(($BA175/12*$AA175)+(BB175*IF(1-$BC175=0,0,BD175/(1-$BC175))))-IF($F175=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC175,PayEmp,$C175)))","v":1169.7500000000018},{"$f":"IF($F175=\"Terminated\",0,IF($AA175=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C175,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMIFS(OverValue,OverEmp,$C175,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA175)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA175,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175))))))","v":165},{"$f":"IF($F175=\"Terminated\",0,IF($AA175=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C175,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMIFS(OverValue,OverEmp,$C175,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA175)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA175,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175))))))","v":0},{"$f":"IF($F175=\"Terminated\",0,IF($AA175=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C175,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMIFS(OverValue,OverEmp,$C175,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA175)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA175,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175))))))","v":500},{"$f":"IF($F175=\"Terminated\",0,IF($AA175=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C175,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMIFS(OverValue,OverEmp,$C175,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA175)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA175,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175))))))","v":0},1834.7500000000018,14665.25,{"$f":"IF($F175=\"Terminated\",0,IF($AA175=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C175,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMIFS(OverValue,OverEmp,$C175,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA175)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA175,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175)))))))","v":165},{"$f":"IF($F175=\"Terminated\",0,IF($AA175=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C175,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMIFS(OverValue,OverEmp,$C175,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA175)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA175,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175)))))))","v":165},{"$f":"IF($F175=\"Terminated\",0,IF($AA175=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C175,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMIFS(OverValue,OverEmp,$C175,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA175)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA175,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175)))))))","v":0},{"$f":"IF($F175=\"Terminated\",0,IF($AA175=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C175,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMIFS(OverValue,OverEmp,$C175,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA175)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA175,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC175,PayEmp,$C175)))))))","v":0},330,16830,2164.75,{"$f":"IF(OR($B175<=Setup!$E$12,$B175>=Setup!$D$12+1),0,IF($F175<>\"Active\",0,IF($AE175=\"Yes\",$AB175,((YEAR($AC175)*12)+MONTH($AC175))-((YEAR($AD175)*12)+MONTH($AD175)-1))))","v":12},{"$f":"IF(OR($B175<=Setup!$E$12,$B175>=Setup!$D$12+1),0,((YEAR($AC175)*12)+MONTH($AC175))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45347,{"$f":"IF(ISNA(VLOOKUP($C175,EmpAll,COLUMN(Emp!$E$4),0)),$AC175,IF(VLOOKUP($C175,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C175,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C175,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C175,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C175,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A175=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C175,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMIFS(OverValue,OverEmp,$C175,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1)),IF(ISNA(VLOOKUP($C175,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG175,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C175,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C175,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C175,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C175,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C175,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},201600,{"$f":"-IF($F175=\"Terminated\",0,IF($AA175=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C175,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA175*12)+(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB175/3,0))*4)+(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB175/6,0))*2)+(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F175=\"Terminated\",0,IF($AA175=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C175,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA175*12)+(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB175/3,0))*4)+(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB175/6,0))*2)+(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F175=\"Terminated\",0,IF($AA175=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C175,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA175*12)+(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB175/3,0))*4)+(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB175/6,0))*2)+(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F175=\"Terminated\",0,IF($AA175=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C175,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA175*12)+(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB175/3,0))*4)+(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB175/6,0))*2)+(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},201600,183000,{"$f":"-IF($F175=\"Terminated\",0,IF($AA175=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C175,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA175*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F175=\"Terminated\",0,IF($AA175=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C175,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA175*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F175=\"Terminated\",0,IF($AA175=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C175,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA175*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F175=\"Terminated\",0,IF($AA175=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C175,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC175),MONTH($AC175)+1,1),OverEnd,\">=\"&DATE(YEAR($AC175),MONTH($AC175),1))>0,SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA175*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C175)*(PayDate<=$AC175)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA175*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C175,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C175,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},183000,18600,{"$f":"IF(ISNUMBER($AL175),($AR175*$AL175)-$AI175-$AK175,MAX(0,IF($AL175=\"B\",IF($AR175<Setup!$C$32,($AR175*Setup!$D$32)-$AI175-$AK175,(($AR175-VLOOKUP($AR175,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR175,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR175,TaxBracket2,1),0,1,1)-$AI175-$AK175),IF($AR175<Setup!$C$21,($AR175*Setup!$D$21)-$AI175-$AK175,(($AR175-VLOOKUP($AR175,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR175,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR175,TaxBracket1,1),0,1,1)-$AI175-$AK175))))","v":14685},{"$f":"IF(ISNUMBER($AL175),($AX175*$AL175)-$AI175-$AK175,MAX(0,IF($AL175=\"B\",IF($AX175<Setup!$C$32,($AX175*Setup!$D$32)-$AI175-$AK175,(($AX175-VLOOKUP($AX175,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX175,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX175,TaxBracket2,1),0,1,1)-$AI175-$AK175),IF($AX175<Setup!$C$21,($AX175*Setup!$D$21)-$AI175-$AK175,(($AX175-VLOOKUP($AX175,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX175,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX175,TaxBracket1,1),0,1,1)-$AI175-$AK175))))","v":11337},3348,0.90773809523809523,9.2261904761904767E-2,201600]
[{"$f":"IF(ROW($A176)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B176,\"yyyy\")&TEXT($B176,\"mm\")&\"-\"&$C176)","v":"202402-EXS005"},{"$f":"IF(ROW($A176)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A176)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A176)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A176)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45347},{"$f":"IF(ROW($A176)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A176)-ROW($A$6)-IF(ROW($A176)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A176)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS005"},{"$f":"IF(ISNA(VLOOKUP($C176,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C176,EmpAll,COLUMN(Emp!$B$4),0))","v":"Miller R"},{"$f":"IF(ISNA(VLOOKUP($C176,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C176,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C176,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C176,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC176),MONTH($AC176)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C176,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC176),MONTH($AC176),0)),\"Terminated\",\"Active\")))","v":"Terminated"},{"$f":"IF($F176<>\"Active\",0,IF(COUNTIFS(OverEmp,$C176,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMIFS(OverValue,OverEmp,$C176,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1)),IF(AND($AC176>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C176)>0),SUMIFS(EmpIncrease,EmpCode,$C176),SUMIFS(EmpSalary,EmpCode,$C176))))","v":0},{"$f":"IF($F176<>\"Active\",0,IF(COUNTIFS(OverEmp,$C176,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMIFS(OverValue,OverEmp,$C176,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1)),0))","v":0},{"$f":"IF($F176<>\"Active\",0,IF(COUNTIFS(OverEmp,$C176,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMIFS(OverValue,OverEmp,$C176,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1)),IF(MONTH(B176)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C176),0)))","v":0},{"$f":"IF($F176<>\"Active\",0,IF(COUNTIFS(OverEmp,$C176,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMIFS(OverValue,OverEmp,$C176,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1)),0))","v":0},{"$f":"IF($F176<>\"Active\",0,IF(COUNTIFS(OverEmp,$C176,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMIFS(OverValue,OverEmp,$C176,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C176,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMIFS(OverValue,OverEmp,$C176,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1)),(($BA176/12*$AA176)+(BB176*IF(1-$BC176=0,0,BD176/(1-$BC176))))-IF($F176=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC176,PayEmp,$C176)))","v":0},{"$f":"IF($F176=\"Terminated\",0,IF($AA176=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C176,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMIFS(OverValue,OverEmp,$C176,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA176)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA176,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176))))))","v":0},{"$f":"IF($F176=\"Terminated\",0,IF($AA176=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C176,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMIFS(OverValue,OverEmp,$C176,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA176)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA176,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176))))))","v":0},{"$f":"IF($F176=\"Terminated\",0,IF($AA176=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C176,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMIFS(OverValue,OverEmp,$C176,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA176)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA176,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176))))))","v":0},{"$f":"IF($F176=\"Terminated\",0,IF($AA176=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C176,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMIFS(OverValue,OverEmp,$C176,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA176)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA176,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176))))))","v":0},0,0,{"$f":"IF($F176=\"Terminated\",0,IF($AA176=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C176,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMIFS(OverValue,OverEmp,$C176,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA176)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA176,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176)))))))","v":0},{"$f":"IF($F176=\"Terminated\",0,IF($AA176=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C176,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMIFS(OverValue,OverEmp,$C176,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA176)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA176,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176)))))))","v":0},{"$f":"IF($F176=\"Terminated\",0,IF($AA176=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C176,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMIFS(OverValue,OverEmp,$C176,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA176)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA176,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176)))))))","v":0},{"$f":"IF($F176=\"Terminated\",0,IF($AA176=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C176,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMIFS(OverValue,OverEmp,$C176,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA176)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA176,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC176,PayEmp,$C176)))))))","v":0},0,0,0,{"$f":"IF(OR($B176<=Setup!$E$12,$B176>=Setup!$D$12+1),0,IF($F176<>\"Active\",0,IF($AE176=\"Yes\",$AB176,((YEAR($AC176)*12)+MONTH($AC176))-((YEAR($AD176)*12)+MONTH($AD176)-1))))","v":0},{"$f":"IF(OR($B176<=Setup!$E$12,$B176>=Setup!$D$12+1),0,((YEAR($AC176)*12)+MONTH($AC176))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45347,{"$f":"IF(ISNA(VLOOKUP($C176,EmpAll,COLUMN(Emp!$E$4),0)),$AC176,IF(VLOOKUP($C176,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C176,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C176,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C176,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C176,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A176=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C176,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMIFS(OverValue,OverEmp,$C176,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1)),IF(ISNA(VLOOKUP($C176,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG176,MedList,COLUMN(Setup!$C$49),1)","v":364},8736,{"$f":"IF(ISNA(VLOOKUP($C176,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C176,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C176,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C176,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C176,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F176=\"Terminated\",0,IF($AA176=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C176,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA176*12)+(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB176/3,0))*4)+(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB176/6,0))*2)+(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F176=\"Terminated\",0,IF($AA176=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C176,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA176*12)+(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB176/3,0))*4)+(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB176/6,0))*2)+(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F176=\"Terminated\",0,IF($AA176=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C176,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA176*12)+(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB176/3,0))*4)+(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB176/6,0))*2)+(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F176=\"Terminated\",0,IF($AA176=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C176,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA176*12)+(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB176/3,0))*4)+(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB176/6,0))*2)+(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F176=\"Terminated\",0,IF($AA176=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C176,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA176*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F176=\"Terminated\",0,IF($AA176=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C176,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA176*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F176=\"Terminated\",0,IF($AA176=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C176,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA176*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F176=\"Terminated\",0,IF($AA176=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C176,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC176),MONTH($AC176)+1,1),OverEnd,\">=\"&DATE(YEAR($AC176),MONTH($AC176),1))>0,SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA176*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C176)*(PayDate<=$AC176)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA176*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C176,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C176,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL176),($AR176*$AL176)-$AI176-$AK176,MAX(0,IF($AL176=\"B\",IF($AR176<Setup!$C$32,($AR176*Setup!$D$32)-$AI176-$AK176,(($AR176-VLOOKUP($AR176,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR176,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR176,TaxBracket2,1),0,1,1)-$AI176-$AK176),IF($AR176<Setup!$C$21,($AR176*Setup!$D$21)-$AI176-$AK176,(($AR176-VLOOKUP($AR176,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR176,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR176,TaxBracket1,1),0,1,1)-$AI176-$AK176))))","v":0},{"$f":"IF(ISNUMBER($AL176),($AX176*$AL176)-$AI176-$AK176,MAX(0,IF($AL176=\"B\",IF($AX176<Setup!$C$32,($AX176*Setup!$D$32)-$AI176-$AK176,(($AX176-VLOOKUP($AX176,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX176,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX176,TaxBracket2,1),0,1,1)-$AI176-$AK176),IF($AX176<Setup!$C$21,($AX176*Setup!$D$21)-$AI176-$AK176,(($AX176-VLOOKUP($AX176,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX176,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX176,TaxBracket1,1),0,1,1)-$AI176-$AK176))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A177)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B177,\"yyyy\")&TEXT($B177,\"mm\")&\"-\"&$C177)","v":"202402-EXS006"},{"$f":"IF(ROW($A177)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A177)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A177)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A177)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45347},{"$f":"IF(ROW($A177)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A177)-ROW($A$6)-IF(ROW($A177)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A177)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS006"},{"$f":"IF(ISNA(VLOOKUP($C177,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C177,EmpAll,COLUMN(Emp!$B$4),0))","v":"Andrews MS"},{"$f":"IF(ISNA(VLOOKUP($C177,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C177,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C177,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C177,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC177),MONTH($AC177)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C177,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC177),MONTH($AC177),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F177<>\"Active\",0,IF(COUNTIFS(OverEmp,$C177,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMIFS(OverValue,OverEmp,$C177,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1)),IF(AND($AC177>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C177)>0),SUMIFS(EmpIncrease,EmpCode,$C177),SUMIFS(EmpSalary,EmpCode,$C177))))","v":11000},{"$f":"IF($F177<>\"Active\",0,IF(COUNTIFS(OverEmp,$C177,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMIFS(OverValue,OverEmp,$C177,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1)),0))","v":0},{"$f":"IF($F177<>\"Active\",0,IF(COUNTIFS(OverEmp,$C177,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMIFS(OverValue,OverEmp,$C177,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1)),IF(MONTH(B177)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C177),0)))","v":0},{"$f":"IF($F177<>\"Active\",0,IF(COUNTIFS(OverEmp,$C177,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMIFS(OverValue,OverEmp,$C177,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1)),0))","v":0},{"$f":"IF($F177<>\"Active\",0,IF(COUNTIFS(OverEmp,$C177,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMIFS(OverValue,OverEmp,$C177,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1)),0))","v":0},11000,{"$f":"IF(COUNTIFS(OverEmp,$C177,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMIFS(OverValue,OverEmp,$C177,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1)),(($BA177/12*$AA177)+(BB177*IF(1-$BC177=0,0,BD177/(1-$BC177))))-IF($F177=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC177,PayEmp,$C177)))","v":179.74999999999841},{"$f":"IF($F177=\"Terminated\",0,IF($AA177=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C177,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMIFS(OverValue,OverEmp,$C177,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA177)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA177,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177))))))","v":110},{"$f":"IF($F177=\"Terminated\",0,IF($AA177=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C177,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMIFS(OverValue,OverEmp,$C177,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA177)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA177,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177))))))","v":0},{"$f":"IF($F177=\"Terminated\",0,IF($AA177=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C177,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMIFS(OverValue,OverEmp,$C177,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA177)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA177,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177))))))","v":0},{"$f":"IF($F177=\"Terminated\",0,IF($AA177=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C177,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMIFS(OverValue,OverEmp,$C177,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA177)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA177,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177))))))","v":0},289.74999999999841,10710.25,{"$f":"IF($F177=\"Terminated\",0,IF($AA177=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C177,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMIFS(OverValue,OverEmp,$C177,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA177)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA177,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177)))))))","v":110},{"$f":"IF($F177=\"Terminated\",0,IF($AA177=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C177,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMIFS(OverValue,OverEmp,$C177,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA177)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA177,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177)))))))","v":110},{"$f":"IF($F177=\"Terminated\",0,IF($AA177=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C177,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMIFS(OverValue,OverEmp,$C177,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA177)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA177,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177)))))))","v":0},{"$f":"IF($F177=\"Terminated\",0,IF($AA177=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C177,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMIFS(OverValue,OverEmp,$C177,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA177)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA177,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC177,PayEmp,$C177)))))))","v":0},220,11220,509.75,{"$f":"IF(OR($B177<=Setup!$E$12,$B177>=Setup!$D$12+1),0,IF($F177<>\"Active\",0,IF($AE177=\"Yes\",$AB177,((YEAR($AC177)*12)+MONTH($AC177))-((YEAR($AD177)*12)+MONTH($AD177)-1))))","v":12},{"$f":"IF(OR($B177<=Setup!$E$12,$B177>=Setup!$D$12+1),0,((YEAR($AC177)*12)+MONTH($AC177))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45347,{"$f":"IF(ISNA(VLOOKUP($C177,EmpAll,COLUMN(Emp!$E$4),0)),$AC177,IF(VLOOKUP($C177,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C177,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C177,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C177,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C177,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A177=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C177,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMIFS(OverValue,OverEmp,$C177,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1)),IF(ISNA(VLOOKUP($C177,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG177,MedList,COLUMN(Setup!$C$49),1)","v":364},4368,{"$f":"IF(ISNA(VLOOKUP($C177,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C177,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C177,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C177,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C177,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},132000,{"$f":"-IF($F177=\"Terminated\",0,IF($AA177=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C177,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA177*12)+(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB177/3,0))*4)+(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB177/6,0))*2)+(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F177=\"Terminated\",0,IF($AA177=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C177,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA177*12)+(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB177/3,0))*4)+(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB177/6,0))*2)+(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F177=\"Terminated\",0,IF($AA177=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C177,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA177*12)+(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB177/3,0))*4)+(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB177/6,0))*2)+(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F177=\"Terminated\",0,IF($AA177=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C177,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA177*12)+(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB177/3,0))*4)+(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB177/6,0))*2)+(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},132000,122000,{"$f":"-IF($F177=\"Terminated\",0,IF($AA177=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C177,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA177*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F177=\"Terminated\",0,IF($AA177=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C177,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA177*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F177=\"Terminated\",0,IF($AA177=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C177,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA177*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F177=\"Terminated\",0,IF($AA177=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C177,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC177),MONTH($AC177)+1,1),OverEnd,\">=\"&DATE(YEAR($AC177),MONTH($AC177),1))>0,SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA177*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C177)*(PayDate<=$AC177)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA177*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C177,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C177,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},122000,10000,{"$f":"IF(ISNUMBER($AL177),($AR177*$AL177)-$AI177-$AK177,MAX(0,IF($AL177=\"B\",IF($AR177<Setup!$C$32,($AR177*Setup!$D$32)-$AI177-$AK177,(($AR177-VLOOKUP($AR177,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR177,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR177,TaxBracket2,1),0,1,1)-$AI177-$AK177),IF($AR177<Setup!$C$21,($AR177*Setup!$D$21)-$AI177-$AK177,(($AR177-VLOOKUP($AR177,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR177,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR177,TaxBracket1,1),0,1,1)-$AI177-$AK177))))","v":2157},{"$f":"IF(ISNUMBER($AL177),($AX177*$AL177)-$AI177-$AK177,MAX(0,IF($AL177=\"B\",IF($AX177<Setup!$C$32,($AX177*Setup!$D$32)-$AI177-$AK177,(($AX177-VLOOKUP($AX177,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX177,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX177,TaxBracket2,1),0,1,1)-$AI177-$AK177),IF($AX177<Setup!$C$21,($AX177*Setup!$D$21)-$AI177-$AK177,(($AX177-VLOOKUP($AX177,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX177,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX177,TaxBracket1,1),0,1,1)-$AI177-$AK177))))","v":357},1800,0.9242424242424242,7.575757575757576E-2,132000]
[{"$f":"IF(ROW($A178)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B178,\"yyyy\")&TEXT($B178,\"mm\")&\"-\"&$C178)","v":"202402-EXS007"},{"$f":"IF(ROW($A178)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A178)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A178)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A178)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45347},{"$f":"IF(ROW($A178)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A178)-ROW($A$6)-IF(ROW($A178)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A178)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS007"},{"$f":"IF(ISNA(VLOOKUP($C178,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C178,EmpAll,COLUMN(Emp!$B$4),0))","v":"Phillips KE"},{"$f":"IF(ISNA(VLOOKUP($C178,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C178,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C178,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C178,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC178),MONTH($AC178)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C178,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC178),MONTH($AC178),0)),\"Terminated\",\"Active\")))","v":"Terminated"},{"$f":"IF($F178<>\"Active\",0,IF(COUNTIFS(OverEmp,$C178,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMIFS(OverValue,OverEmp,$C178,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1)),IF(AND($AC178>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C178)>0),SUMIFS(EmpIncrease,EmpCode,$C178),SUMIFS(EmpSalary,EmpCode,$C178))))","v":0},{"$f":"IF($F178<>\"Active\",0,IF(COUNTIFS(OverEmp,$C178,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMIFS(OverValue,OverEmp,$C178,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1)),0))","v":0},{"$f":"IF($F178<>\"Active\",0,IF(COUNTIFS(OverEmp,$C178,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMIFS(OverValue,OverEmp,$C178,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1)),IF(MONTH(B178)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C178),0)))","v":0},{"$f":"IF($F178<>\"Active\",0,IF(COUNTIFS(OverEmp,$C178,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMIFS(OverValue,OverEmp,$C178,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1)),0))","v":0},{"$f":"IF($F178<>\"Active\",0,IF(COUNTIFS(OverEmp,$C178,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMIFS(OverValue,OverEmp,$C178,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C178,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMIFS(OverValue,OverEmp,$C178,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1)),(($BA178/12*$AA178)+(BB178*IF(1-$BC178=0,0,BD178/(1-$BC178))))-IF($F178=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC178,PayEmp,$C178)))","v":0},{"$f":"IF($F178=\"Terminated\",0,IF($AA178=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C178,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMIFS(OverValue,OverEmp,$C178,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA178)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA178,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178))))))","v":0},{"$f":"IF($F178=\"Terminated\",0,IF($AA178=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C178,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMIFS(OverValue,OverEmp,$C178,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA178)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA178,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178))))))","v":0},{"$f":"IF($F178=\"Terminated\",0,IF($AA178=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C178,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMIFS(OverValue,OverEmp,$C178,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA178)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA178,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178))))))","v":0},{"$f":"IF($F178=\"Terminated\",0,IF($AA178=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C178,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMIFS(OverValue,OverEmp,$C178,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA178)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA178,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178))))))","v":0},0,0,{"$f":"IF($F178=\"Terminated\",0,IF($AA178=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C178,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMIFS(OverValue,OverEmp,$C178,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA178)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA178,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178)))))))","v":0},{"$f":"IF($F178=\"Terminated\",0,IF($AA178=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C178,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMIFS(OverValue,OverEmp,$C178,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA178)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA178,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178)))))))","v":0},{"$f":"IF($F178=\"Terminated\",0,IF($AA178=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C178,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMIFS(OverValue,OverEmp,$C178,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA178)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA178,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178)))))))","v":0},{"$f":"IF($F178=\"Terminated\",0,IF($AA178=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C178,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMIFS(OverValue,OverEmp,$C178,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA178)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA178,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC178,PayEmp,$C178)))))))","v":0},0,0,0,{"$f":"IF(OR($B178<=Setup!$E$12,$B178>=Setup!$D$12+1),0,IF($F178<>\"Active\",0,IF($AE178=\"Yes\",$AB178,((YEAR($AC178)*12)+MONTH($AC178))-((YEAR($AD178)*12)+MONTH($AD178)-1))))","v":0},{"$f":"IF(OR($B178<=Setup!$E$12,$B178>=Setup!$D$12+1),0,((YEAR($AC178)*12)+MONTH($AC178))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45347,{"$f":"IF(ISNA(VLOOKUP($C178,EmpAll,COLUMN(Emp!$E$4),0)),$AC178,IF(VLOOKUP($C178,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C178,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C178,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C178,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C178,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A178=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C178,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMIFS(OverValue,OverEmp,$C178,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1)),IF(ISNA(VLOOKUP($C178,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG178,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C178,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C178,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C178,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C178,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C178,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},0,{"$f":"-IF($F178=\"Terminated\",0,IF($AA178=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C178,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA178*12)+(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB178/3,0))*4)+(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB178/6,0))*2)+(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F178=\"Terminated\",0,IF($AA178=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C178,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA178*12)+(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB178/3,0))*4)+(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB178/6,0))*2)+(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F178=\"Terminated\",0,IF($AA178=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C178,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA178*12)+(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB178/3,0))*4)+(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB178/6,0))*2)+(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F178=\"Terminated\",0,IF($AA178=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C178,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA178*12)+(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB178/3,0))*4)+(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB178/6,0))*2)+(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F178=\"Terminated\",0,IF($AA178=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C178,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA178*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F178=\"Terminated\",0,IF($AA178=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C178,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA178*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F178=\"Terminated\",0,IF($AA178=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C178,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA178*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F178=\"Terminated\",0,IF($AA178=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C178,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC178),MONTH($AC178)+1,1),OverEnd,\">=\"&DATE(YEAR($AC178),MONTH($AC178),1))>0,SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA178*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C178)*(PayDate<=$AC178)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA178*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C178,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C178,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL178),($AR178*$AL178)-$AI178-$AK178,MAX(0,IF($AL178=\"B\",IF($AR178<Setup!$C$32,($AR178*Setup!$D$32)-$AI178-$AK178,(($AR178-VLOOKUP($AR178,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR178,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR178,TaxBracket2,1),0,1,1)-$AI178-$AK178),IF($AR178<Setup!$C$21,($AR178*Setup!$D$21)-$AI178-$AK178,(($AR178-VLOOKUP($AR178,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR178,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR178,TaxBracket1,1),0,1,1)-$AI178-$AK178))))","v":0},{"$f":"IF(ISNUMBER($AL178),($AX178*$AL178)-$AI178-$AK178,MAX(0,IF($AL178=\"B\",IF($AX178<Setup!$C$32,($AX178*Setup!$D$32)-$AI178-$AK178,(($AX178-VLOOKUP($AX178,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX178,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX178,TaxBracket2,1),0,1,1)-$AI178-$AK178),IF($AX178<Setup!$C$21,($AX178*Setup!$D$21)-$AI178-$AK178,(($AX178-VLOOKUP($AX178,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX178,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX178,TaxBracket1,1),0,1,1)-$AI178-$AK178))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A179)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B179,\"yyyy\")&TEXT($B179,\"mm\")&\"-\"&$C179)","v":"202402-EXS008"},{"$f":"IF(ROW($A179)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A179)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A179)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A179)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45347},{"$f":"IF(ROW($A179)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A179)-ROW($A$6)-IF(ROW($A179)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A179)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS008"},{"$f":"IF(ISNA(VLOOKUP($C179,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C179,EmpAll,COLUMN(Emp!$B$4),0))","v":"Matthews B"},{"$f":"IF(ISNA(VLOOKUP($C179,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C179,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C179,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C179,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC179),MONTH($AC179)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C179,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC179),MONTH($AC179),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F179<>\"Active\",0,IF(COUNTIFS(OverEmp,$C179,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMIFS(OverValue,OverEmp,$C179,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1)),IF(AND($AC179>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C179)>0),SUMIFS(EmpIncrease,EmpCode,$C179),SUMIFS(EmpSalary,EmpCode,$C179))))","v":10000},{"$f":"IF($F179<>\"Active\",0,IF(COUNTIFS(OverEmp,$C179,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMIFS(OverValue,OverEmp,$C179,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1)),0))","v":0},{"$f":"IF($F179<>\"Active\",0,IF(COUNTIFS(OverEmp,$C179,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMIFS(OverValue,OverEmp,$C179,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1)),IF(MONTH(B179)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C179),0)))","v":0},{"$f":"IF($F179<>\"Active\",0,IF(COUNTIFS(OverEmp,$C179,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMIFS(OverValue,OverEmp,$C179,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1)),0))","v":0},{"$f":"IF($F179<>\"Active\",0,IF(COUNTIFS(OverEmp,$C179,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMIFS(OverValue,OverEmp,$C179,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C179,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMIFS(OverValue,OverEmp,$C179,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1)),(($BA179/12*$AA179)+(BB179*IF(1-$BC179=0,0,BD179/(1-$BC179))))-IF($F179=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC179,PayEmp,$C179)))","v":363.75000000000136},{"$f":"IF($F179=\"Terminated\",0,IF($AA179=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C179,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMIFS(OverValue,OverEmp,$C179,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA179)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA179,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179))))))","v":100},{"$f":"IF($F179=\"Terminated\",0,IF($AA179=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C179,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMIFS(OverValue,OverEmp,$C179,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA179)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA179,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179))))))","v":0},{"$f":"IF($F179=\"Terminated\",0,IF($AA179=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C179,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMIFS(OverValue,OverEmp,$C179,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA179)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA179,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179))))))","v":0},{"$f":"IF($F179=\"Terminated\",0,IF($AA179=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C179,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMIFS(OverValue,OverEmp,$C179,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA179)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA179,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179))))))","v":0},463.75000000000136,9536.25,{"$f":"IF($F179=\"Terminated\",0,IF($AA179=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C179,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMIFS(OverValue,OverEmp,$C179,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA179)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA179,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179)))))))","v":100},{"$f":"IF($F179=\"Terminated\",0,IF($AA179=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C179,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMIFS(OverValue,OverEmp,$C179,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA179)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA179,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179)))))))","v":100},{"$f":"IF($F179=\"Terminated\",0,IF($AA179=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C179,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMIFS(OverValue,OverEmp,$C179,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA179)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA179,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179)))))))","v":0},{"$f":"IF($F179=\"Terminated\",0,IF($AA179=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C179,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMIFS(OverValue,OverEmp,$C179,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA179)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA179,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC179,PayEmp,$C179)))))))","v":0},200,10200,663.75,{"$f":"IF(OR($B179<=Setup!$E$12,$B179>=Setup!$D$12+1),0,IF($F179<>\"Active\",0,IF($AE179=\"Yes\",$AB179,((YEAR($AC179)*12)+MONTH($AC179))-((YEAR($AD179)*12)+MONTH($AD179)-1))))","v":12},{"$f":"IF(OR($B179<=Setup!$E$12,$B179>=Setup!$D$12+1),0,((YEAR($AC179)*12)+MONTH($AC179))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45347,{"$f":"IF(ISNA(VLOOKUP($C179,EmpAll,COLUMN(Emp!$E$4),0)),$AC179,IF(VLOOKUP($C179,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C179,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C179,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C179,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C179,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A179=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C179,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMIFS(OverValue,OverEmp,$C179,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1)),IF(ISNA(VLOOKUP($C179,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG179,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C179,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C179,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C179,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C179,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C179,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},119000,{"$f":"-IF($F179=\"Terminated\",0,IF($AA179=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C179,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA179*12)+(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB179/3,0))*4)+(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB179/6,0))*2)+(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F179=\"Terminated\",0,IF($AA179=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C179,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA179*12)+(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB179/3,0))*4)+(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB179/6,0))*2)+(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F179=\"Terminated\",0,IF($AA179=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C179,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA179*12)+(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB179/3,0))*4)+(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB179/6,0))*2)+(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F179=\"Terminated\",0,IF($AA179=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C179,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA179*12)+(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB179/3,0))*4)+(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB179/6,0))*2)+(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},119000,110000,{"$f":"-IF($F179=\"Terminated\",0,IF($AA179=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C179,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA179*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F179=\"Terminated\",0,IF($AA179=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C179,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA179*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F179=\"Terminated\",0,IF($AA179=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C179,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA179*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F179=\"Terminated\",0,IF($AA179=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C179,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC179),MONTH($AC179)+1,1),OverEnd,\">=\"&DATE(YEAR($AC179),MONTH($AC179),1))>0,SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA179*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C179)*(PayDate<=$AC179)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA179*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C179,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C179,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},110000,9000,{"$f":"IF(ISNUMBER($AL179),($AR179*$AL179)-$AI179-$AK179,MAX(0,IF($AL179=\"B\",IF($AR179<Setup!$C$32,($AR179*Setup!$D$32)-$AI179-$AK179,(($AR179-VLOOKUP($AR179,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR179,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR179,TaxBracket2,1),0,1,1)-$AI179-$AK179),IF($AR179<Setup!$C$21,($AR179*Setup!$D$21)-$AI179-$AK179,(($AR179-VLOOKUP($AR179,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR179,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR179,TaxBracket1,1),0,1,1)-$AI179-$AK179))))","v":4185},{"$f":"IF(ISNUMBER($AL179),($AX179*$AL179)-$AI179-$AK179,MAX(0,IF($AL179=\"B\",IF($AX179<Setup!$C$32,($AX179*Setup!$D$32)-$AI179-$AK179,(($AX179-VLOOKUP($AX179,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX179,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX179,TaxBracket2,1),0,1,1)-$AI179-$AK179),IF($AX179<Setup!$C$21,($AX179*Setup!$D$21)-$AI179-$AK179,(($AX179-VLOOKUP($AX179,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX179,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX179,TaxBracket1,1),0,1,1)-$AI179-$AK179))))","v":2565},1620,0.92436974789915971,7.5630252100840331E-2,119000]
[{"$f":"IF(ROW($A180)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B180,\"yyyy\")&TEXT($B180,\"mm\")&\"-\"&$C180)","v":"202402-EXS009"},{"$f":"IF(ROW($A180)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A180)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A180)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A180)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45347},{"$f":"IF(ROW($A180)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A180)-ROW($A$6)-IF(ROW($A180)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A180)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS009"},{"$f":"IF(ISNA(VLOOKUP($C180,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C180,EmpAll,COLUMN(Emp!$B$4),0))","v":"Brown JT"},{"$f":"IF(ISNA(VLOOKUP($C180,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C180,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C180,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C180,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC180),MONTH($AC180)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C180,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC180),MONTH($AC180),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F180<>\"Active\",0,IF(COUNTIFS(OverEmp,$C180,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMIFS(OverValue,OverEmp,$C180,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1)),IF(AND($AC180>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C180)>0),SUMIFS(EmpIncrease,EmpCode,$C180),SUMIFS(EmpSalary,EmpCode,$C180))))","v":10000},{"$f":"IF($F180<>\"Active\",0,IF(COUNTIFS(OverEmp,$C180,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMIFS(OverValue,OverEmp,$C180,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1)),0))","v":0},{"$f":"IF($F180<>\"Active\",0,IF(COUNTIFS(OverEmp,$C180,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMIFS(OverValue,OverEmp,$C180,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1)),IF(MONTH(B180)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C180),0)))","v":0},{"$f":"IF($F180<>\"Active\",0,IF(COUNTIFS(OverEmp,$C180,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMIFS(OverValue,OverEmp,$C180,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1)),0))","v":0},{"$f":"IF($F180<>\"Active\",0,IF(COUNTIFS(OverEmp,$C180,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMIFS(OverValue,OverEmp,$C180,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C180,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMIFS(OverValue,OverEmp,$C180,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1)),(($BA180/12*$AA180)+(BB180*IF(1-$BC180=0,0,BD180/(1-$BC180))))-IF($F180=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC180,PayEmp,$C180)))","v":363.75000000000136},{"$f":"IF($F180=\"Terminated\",0,IF($AA180=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C180,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMIFS(OverValue,OverEmp,$C180,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA180)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA180,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180))))))","v":100},{"$f":"IF($F180=\"Terminated\",0,IF($AA180=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C180,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMIFS(OverValue,OverEmp,$C180,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA180)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA180,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180))))))","v":0},{"$f":"IF($F180=\"Terminated\",0,IF($AA180=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C180,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMIFS(OverValue,OverEmp,$C180,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA180)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA180,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180))))))","v":0},{"$f":"IF($F180=\"Terminated\",0,IF($AA180=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C180,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMIFS(OverValue,OverEmp,$C180,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA180)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA180,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180))))))","v":0},463.75000000000136,9536.25,{"$f":"IF($F180=\"Terminated\",0,IF($AA180=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C180,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMIFS(OverValue,OverEmp,$C180,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA180)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA180,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180)))))))","v":100},{"$f":"IF($F180=\"Terminated\",0,IF($AA180=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C180,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMIFS(OverValue,OverEmp,$C180,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA180)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA180,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180)))))))","v":100},{"$f":"IF($F180=\"Terminated\",0,IF($AA180=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C180,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMIFS(OverValue,OverEmp,$C180,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA180)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA180,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180)))))))","v":0},{"$f":"IF($F180=\"Terminated\",0,IF($AA180=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C180,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMIFS(OverValue,OverEmp,$C180,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA180)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA180,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC180,PayEmp,$C180)))))))","v":0},200,10200,663.75,{"$f":"IF(OR($B180<=Setup!$E$12,$B180>=Setup!$D$12+1),0,IF($F180<>\"Active\",0,IF($AE180=\"Yes\",$AB180,((YEAR($AC180)*12)+MONTH($AC180))-((YEAR($AD180)*12)+MONTH($AD180)-1))))","v":12},{"$f":"IF(OR($B180<=Setup!$E$12,$B180>=Setup!$D$12+1),0,((YEAR($AC180)*12)+MONTH($AC180))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45347,{"$f":"IF(ISNA(VLOOKUP($C180,EmpAll,COLUMN(Emp!$E$4),0)),$AC180,IF(VLOOKUP($C180,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C180,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C180,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C180,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C180,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A180=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C180,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMIFS(OverValue,OverEmp,$C180,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1)),IF(ISNA(VLOOKUP($C180,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG180,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C180,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C180,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C180,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C180,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C180,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},119000,{"$f":"-IF($F180=\"Terminated\",0,IF($AA180=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C180,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA180*12)+(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB180/3,0))*4)+(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB180/6,0))*2)+(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F180=\"Terminated\",0,IF($AA180=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C180,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA180*12)+(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB180/3,0))*4)+(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB180/6,0))*2)+(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F180=\"Terminated\",0,IF($AA180=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C180,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA180*12)+(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB180/3,0))*4)+(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB180/6,0))*2)+(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F180=\"Terminated\",0,IF($AA180=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C180,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA180*12)+(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB180/3,0))*4)+(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB180/6,0))*2)+(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},119000,110000,{"$f":"-IF($F180=\"Terminated\",0,IF($AA180=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C180,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA180*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F180=\"Terminated\",0,IF($AA180=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C180,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA180*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F180=\"Terminated\",0,IF($AA180=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C180,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA180*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F180=\"Terminated\",0,IF($AA180=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C180,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC180),MONTH($AC180)+1,1),OverEnd,\">=\"&DATE(YEAR($AC180),MONTH($AC180),1))>0,SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA180*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C180)*(PayDate<=$AC180)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA180*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C180,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C180,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},110000,9000,{"$f":"IF(ISNUMBER($AL180),($AR180*$AL180)-$AI180-$AK180,MAX(0,IF($AL180=\"B\",IF($AR180<Setup!$C$32,($AR180*Setup!$D$32)-$AI180-$AK180,(($AR180-VLOOKUP($AR180,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR180,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR180,TaxBracket2,1),0,1,1)-$AI180-$AK180),IF($AR180<Setup!$C$21,($AR180*Setup!$D$21)-$AI180-$AK180,(($AR180-VLOOKUP($AR180,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR180,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR180,TaxBracket1,1),0,1,1)-$AI180-$AK180))))","v":4185},{"$f":"IF(ISNUMBER($AL180),($AX180*$AL180)-$AI180-$AK180,MAX(0,IF($AL180=\"B\",IF($AX180<Setup!$C$32,($AX180*Setup!$D$32)-$AI180-$AK180,(($AX180-VLOOKUP($AX180,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX180,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX180,TaxBracket2,1),0,1,1)-$AI180-$AK180),IF($AX180<Setup!$C$21,($AX180*Setup!$D$21)-$AI180-$AK180,(($AX180-VLOOKUP($AX180,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX180,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX180,TaxBracket1,1),0,1,1)-$AI180-$AK180))))","v":2565},1620,0.92436974789915971,7.5630252100840331E-2,119000]
[{"$f":"IF(ROW($A181)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B181,\"yyyy\")&TEXT($B181,\"mm\")&\"-\"&$C181)","v":"202402-EXS010"},{"$f":"IF(ROW($A181)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A181)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A181)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A181)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45347},{"$f":"IF(ROW($A181)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A181)-ROW($A$6)-IF(ROW($A181)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A181)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS010"},{"$f":"IF(ISNA(VLOOKUP($C181,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C181,EmpAll,COLUMN(Emp!$B$4),0))","v":"Lewis I"},{"$f":"IF(ISNA(VLOOKUP($C181,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C181,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C181,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C181,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC181),MONTH($AC181)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C181,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC181),MONTH($AC181),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F181<>\"Active\",0,IF(COUNTIFS(OverEmp,$C181,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMIFS(OverValue,OverEmp,$C181,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1)),IF(AND($AC181>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C181)>0),SUMIFS(EmpIncrease,EmpCode,$C181),SUMIFS(EmpSalary,EmpCode,$C181))))","v":10000},{"$f":"IF($F181<>\"Active\",0,IF(COUNTIFS(OverEmp,$C181,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMIFS(OverValue,OverEmp,$C181,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1)),0))","v":0},{"$f":"IF($F181<>\"Active\",0,IF(COUNTIFS(OverEmp,$C181,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMIFS(OverValue,OverEmp,$C181,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1)),IF(MONTH(B181)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C181),0)))","v":0},{"$f":"IF($F181<>\"Active\",0,IF(COUNTIFS(OverEmp,$C181,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMIFS(OverValue,OverEmp,$C181,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1)),0))","v":0},{"$f":"IF($F181<>\"Active\",0,IF(COUNTIFS(OverEmp,$C181,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMIFS(OverValue,OverEmp,$C181,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1)),0))","v":0},10000,{"$f":"IF(COUNTIFS(OverEmp,$C181,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMIFS(OverValue,OverEmp,$C181,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1)),(($BA181/12*$AA181)+(BB181*IF(1-$BC181=0,0,BD181/(1-$BC181))))-IF($F181=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC181,PayEmp,$C181)))","v":363.75000000000136},{"$f":"IF($F181=\"Terminated\",0,IF($AA181=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C181,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMIFS(OverValue,OverEmp,$C181,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA181)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA181,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181))))))","v":100},{"$f":"IF($F181=\"Terminated\",0,IF($AA181=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C181,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMIFS(OverValue,OverEmp,$C181,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA181)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA181,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181))))))","v":0},{"$f":"IF($F181=\"Terminated\",0,IF($AA181=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C181,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMIFS(OverValue,OverEmp,$C181,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA181)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA181,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181))))))","v":0},{"$f":"IF($F181=\"Terminated\",0,IF($AA181=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C181,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMIFS(OverValue,OverEmp,$C181,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA181)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA181,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181))))))","v":0},463.75000000000136,9536.25,{"$f":"IF($F181=\"Terminated\",0,IF($AA181=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C181,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMIFS(OverValue,OverEmp,$C181,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA181)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA181,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181)))))))","v":100},{"$f":"IF($F181=\"Terminated\",0,IF($AA181=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C181,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMIFS(OverValue,OverEmp,$C181,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA181)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA181,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181)))))))","v":100},{"$f":"IF($F181=\"Terminated\",0,IF($AA181=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C181,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMIFS(OverValue,OverEmp,$C181,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA181)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA181,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181)))))))","v":0},{"$f":"IF($F181=\"Terminated\",0,IF($AA181=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C181,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMIFS(OverValue,OverEmp,$C181,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA181)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA181,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC181,PayEmp,$C181)))))))","v":0},200,10200,663.75,{"$f":"IF(OR($B181<=Setup!$E$12,$B181>=Setup!$D$12+1),0,IF($F181<>\"Active\",0,IF($AE181=\"Yes\",$AB181,((YEAR($AC181)*12)+MONTH($AC181))-((YEAR($AD181)*12)+MONTH($AD181)-1))))","v":12},{"$f":"IF(OR($B181<=Setup!$E$12,$B181>=Setup!$D$12+1),0,((YEAR($AC181)*12)+MONTH($AC181))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45347,{"$f":"IF(ISNA(VLOOKUP($C181,EmpAll,COLUMN(Emp!$E$4),0)),$AC181,IF(VLOOKUP($C181,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C181,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C181,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C181,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C181,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A181=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C181,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMIFS(OverValue,OverEmp,$C181,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1)),IF(ISNA(VLOOKUP($C181,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG181,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C181,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C181,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C181,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C181,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C181,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},119000,{"$f":"-IF($F181=\"Terminated\",0,IF($AA181=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C181,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA181*12)+(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB181/3,0))*4)+(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB181/6,0))*2)+(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F181=\"Terminated\",0,IF($AA181=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C181,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA181*12)+(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB181/3,0))*4)+(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB181/6,0))*2)+(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F181=\"Terminated\",0,IF($AA181=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C181,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA181*12)+(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB181/3,0))*4)+(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB181/6,0))*2)+(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F181=\"Terminated\",0,IF($AA181=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C181,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA181*12)+(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB181/3,0))*4)+(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB181/6,0))*2)+(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},119000,110000,{"$f":"-IF($F181=\"Terminated\",0,IF($AA181=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C181,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA181*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F181=\"Terminated\",0,IF($AA181=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C181,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA181*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F181=\"Terminated\",0,IF($AA181=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C181,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA181*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F181=\"Terminated\",0,IF($AA181=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C181,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC181),MONTH($AC181)+1,1),OverEnd,\">=\"&DATE(YEAR($AC181),MONTH($AC181),1))>0,SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA181*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C181)*(PayDate<=$AC181)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA181*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C181,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C181,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},110000,9000,{"$f":"IF(ISNUMBER($AL181),($AR181*$AL181)-$AI181-$AK181,MAX(0,IF($AL181=\"B\",IF($AR181<Setup!$C$32,($AR181*Setup!$D$32)-$AI181-$AK181,(($AR181-VLOOKUP($AR181,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR181,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR181,TaxBracket2,1),0,1,1)-$AI181-$AK181),IF($AR181<Setup!$C$21,($AR181*Setup!$D$21)-$AI181-$AK181,(($AR181-VLOOKUP($AR181,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR181,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR181,TaxBracket1,1),0,1,1)-$AI181-$AK181))))","v":4185},{"$f":"IF(ISNUMBER($AL181),($AX181*$AL181)-$AI181-$AK181,MAX(0,IF($AL181=\"B\",IF($AX181<Setup!$C$32,($AX181*Setup!$D$32)-$AI181-$AK181,(($AX181-VLOOKUP($AX181,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX181,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX181,TaxBracket2,1),0,1,1)-$AI181-$AK181),IF($AX181<Setup!$C$21,($AX181*Setup!$D$21)-$AI181-$AK181,(($AX181-VLOOKUP($AX181,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX181,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX181,TaxBracket1,1),0,1,1)-$AI181-$AK181))))","v":2565},1620,0.92436974789915971,7.5630252100840331E-2,119000]
[{"$f":"IF(ROW($A182)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B182,\"yyyy\")&TEXT($B182,\"mm\")&\"-\"&$C182)","v":"202402-EXS011"},{"$f":"IF(ROW($A182)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A182)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A182)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A182)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45347},{"$f":"IF(ROW($A182)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A182)-ROW($A$6)-IF(ROW($A182)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A182)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS011"},{"$f":"IF(ISNA(VLOOKUP($C182,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C182,EmpAll,COLUMN(Emp!$B$4),0))","v":"Newport GD"},{"$f":"IF(ISNA(VLOOKUP($C182,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C182,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C182,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C182,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC182),MONTH($AC182)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C182,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC182),MONTH($AC182),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F182<>\"Active\",0,IF(COUNTIFS(OverEmp,$C182,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMIFS(OverValue,OverEmp,$C182,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1)),IF(AND($AC182>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C182)>0),SUMIFS(EmpIncrease,EmpCode,$C182),SUMIFS(EmpSalary,EmpCode,$C182))))","v":6000},{"$f":"IF($F182<>\"Active\",0,IF(COUNTIFS(OverEmp,$C182,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMIFS(OverValue,OverEmp,$C182,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1)),0))","v":0},{"$f":"IF($F182<>\"Active\",0,IF(COUNTIFS(OverEmp,$C182,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMIFS(OverValue,OverEmp,$C182,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1)),IF(MONTH(B182)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C182),0)))","v":0},{"$f":"IF($F182<>\"Active\",0,IF(COUNTIFS(OverEmp,$C182,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMIFS(OverValue,OverEmp,$C182,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1)),0))","v":0},{"$f":"IF($F182<>\"Active\",0,IF(COUNTIFS(OverEmp,$C182,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMIFS(OverValue,OverEmp,$C182,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1)),0))","v":0},6000,{"$f":"IF(COUNTIFS(OverEmp,$C182,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMIFS(OverValue,OverEmp,$C182,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1)),(($BA182/12*$AA182)+(BB182*IF(1-$BC182=0,0,BD182/(1-$BC182))))-IF($F182=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC182,PayEmp,$C182)))","v":0},{"$f":"IF($F182=\"Terminated\",0,IF($AA182=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C182,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMIFS(OverValue,OverEmp,$C182,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA182)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA182,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182))))))","v":60},{"$f":"IF($F182=\"Terminated\",0,IF($AA182=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C182,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMIFS(OverValue,OverEmp,$C182,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA182)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA182,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182))))))","v":0},{"$f":"IF($F182=\"Terminated\",0,IF($AA182=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C182,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMIFS(OverValue,OverEmp,$C182,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA182)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA182,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182))))))","v":0},{"$f":"IF($F182=\"Terminated\",0,IF($AA182=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C182,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMIFS(OverValue,OverEmp,$C182,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA182)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA182,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182))))))","v":0},60,5940,{"$f":"IF($F182=\"Terminated\",0,IF($AA182=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C182,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMIFS(OverValue,OverEmp,$C182,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA182)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA182,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182)))))))","v":60},{"$f":"IF($F182=\"Terminated\",0,IF($AA182=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C182,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMIFS(OverValue,OverEmp,$C182,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA182)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA182,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182)))))))","v":60},{"$f":"IF($F182=\"Terminated\",0,IF($AA182=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C182,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMIFS(OverValue,OverEmp,$C182,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA182)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA182,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182)))))))","v":0},{"$f":"IF($F182=\"Terminated\",0,IF($AA182=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C182,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMIFS(OverValue,OverEmp,$C182,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA182)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA182,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC182,PayEmp,$C182)))))))","v":0},120,6120,180,{"$f":"IF(OR($B182<=Setup!$E$12,$B182>=Setup!$D$12+1),0,IF($F182<>\"Active\",0,IF($AE182=\"Yes\",$AB182,((YEAR($AC182)*12)+MONTH($AC182))-((YEAR($AD182)*12)+MONTH($AD182)-1))))","v":12},{"$f":"IF(OR($B182<=Setup!$E$12,$B182>=Setup!$D$12+1),0,((YEAR($AC182)*12)+MONTH($AC182))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45347,{"$f":"IF(ISNA(VLOOKUP($C182,EmpAll,COLUMN(Emp!$E$4),0)),$AC182,IF(VLOOKUP($C182,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C182,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C182,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C182,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C182,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A182=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C182,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMIFS(OverValue,OverEmp,$C182,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1)),IF(ISNA(VLOOKUP($C182,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG182,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C182,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C182,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C182,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C182,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C182,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},67000,{"$f":"-IF($F182=\"Terminated\",0,IF($AA182=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C182,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA182*12)+(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB182/3,0))*4)+(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB182/6,0))*2)+(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F182=\"Terminated\",0,IF($AA182=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C182,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA182*12)+(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB182/3,0))*4)+(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB182/6,0))*2)+(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F182=\"Terminated\",0,IF($AA182=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C182,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA182*12)+(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB182/3,0))*4)+(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB182/6,0))*2)+(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F182=\"Terminated\",0,IF($AA182=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C182,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA182*12)+(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB182/3,0))*4)+(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB182/6,0))*2)+(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},67000,62000,{"$f":"-IF($F182=\"Terminated\",0,IF($AA182=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C182,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA182*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F182=\"Terminated\",0,IF($AA182=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C182,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA182*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F182=\"Terminated\",0,IF($AA182=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C182,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA182*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F182=\"Terminated\",0,IF($AA182=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C182,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC182),MONTH($AC182)+1,1),OverEnd,\">=\"&DATE(YEAR($AC182),MONTH($AC182),1))>0,SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA182*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C182)*(PayDate<=$AC182)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA182*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C182,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C182,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},62000,5000,{"$f":"IF(ISNUMBER($AL182),($AR182*$AL182)-$AI182-$AK182,MAX(0,IF($AL182=\"B\",IF($AR182<Setup!$C$32,($AR182*Setup!$D$32)-$AI182-$AK182,(($AR182-VLOOKUP($AR182,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR182,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR182,TaxBracket2,1),0,1,1)-$AI182-$AK182),IF($AR182<Setup!$C$21,($AR182*Setup!$D$21)-$AI182-$AK182,(($AR182-VLOOKUP($AR182,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR182,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR182,TaxBracket1,1),0,1,1)-$AI182-$AK182))))","v":0},{"$f":"IF(ISNUMBER($AL182),($AX182*$AL182)-$AI182-$AK182,MAX(0,IF($AL182=\"B\",IF($AX182<Setup!$C$32,($AX182*Setup!$D$32)-$AI182-$AK182,(($AX182-VLOOKUP($AX182,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX182,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX182,TaxBracket2,1),0,1,1)-$AI182-$AK182),IF($AX182<Setup!$C$21,($AX182*Setup!$D$21)-$AI182-$AK182,(($AX182-VLOOKUP($AX182,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX182,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX182,TaxBracket1,1),0,1,1)-$AI182-$AK182))))","v":0},0,0.92537313432835822,7.4626865671641784E-2,67000]
[{"$f":"IF(ROW($A183)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B183,\"yyyy\")&TEXT($B183,\"mm\")&\"-\"&$C183)","v":"202402-EXS012"},{"$f":"IF(ROW($A183)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A183)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A183)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A183)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45347},{"$f":"IF(ROW($A183)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A183)-ROW($A$6)-IF(ROW($A183)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A183)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS012"},{"$f":"IF(ISNA(VLOOKUP($C183,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C183,EmpAll,COLUMN(Emp!$B$4),0))","v":"Williams VS"},{"$f":"IF(ISNA(VLOOKUP($C183,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C183,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C183,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C183,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC183),MONTH($AC183)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C183,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC183),MONTH($AC183),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F183<>\"Active\",0,IF(COUNTIFS(OverEmp,$C183,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMIFS(OverValue,OverEmp,$C183,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1)),IF(AND($AC183>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C183)>0),SUMIFS(EmpIncrease,EmpCode,$C183),SUMIFS(EmpSalary,EmpCode,$C183))))","v":6000},{"$f":"IF($F183<>\"Active\",0,IF(COUNTIFS(OverEmp,$C183,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMIFS(OverValue,OverEmp,$C183,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1)),0))","v":0},{"$f":"IF($F183<>\"Active\",0,IF(COUNTIFS(OverEmp,$C183,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMIFS(OverValue,OverEmp,$C183,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1)),IF(MONTH(B183)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C183),0)))","v":0},{"$f":"IF($F183<>\"Active\",0,IF(COUNTIFS(OverEmp,$C183,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMIFS(OverValue,OverEmp,$C183,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1)),0))","v":0},{"$f":"IF($F183<>\"Active\",0,IF(COUNTIFS(OverEmp,$C183,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMIFS(OverValue,OverEmp,$C183,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1)),0))","v":0},6000,{"$f":"IF(COUNTIFS(OverEmp,$C183,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMIFS(OverValue,OverEmp,$C183,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1)),(($BA183/12*$AA183)+(BB183*IF(1-$BC183=0,0,BD183/(1-$BC183))))-IF($F183=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC183,PayEmp,$C183)))","v":0},{"$f":"IF($F183=\"Terminated\",0,IF($AA183=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C183,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMIFS(OverValue,OverEmp,$C183,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA183)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA183,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183))))))","v":60},{"$f":"IF($F183=\"Terminated\",0,IF($AA183=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C183,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMIFS(OverValue,OverEmp,$C183,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA183)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA183,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183))))))","v":0},{"$f":"IF($F183=\"Terminated\",0,IF($AA183=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C183,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMIFS(OverValue,OverEmp,$C183,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA183)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA183,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183))))))","v":0},{"$f":"IF($F183=\"Terminated\",0,IF($AA183=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C183,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMIFS(OverValue,OverEmp,$C183,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA183)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA183,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183))))))","v":0},60,5940,{"$f":"IF($F183=\"Terminated\",0,IF($AA183=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C183,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMIFS(OverValue,OverEmp,$C183,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA183)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA183,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183)))))))","v":60},{"$f":"IF($F183=\"Terminated\",0,IF($AA183=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C183,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMIFS(OverValue,OverEmp,$C183,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA183)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA183,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183)))))))","v":60},{"$f":"IF($F183=\"Terminated\",0,IF($AA183=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C183,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMIFS(OverValue,OverEmp,$C183,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA183)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA183,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183)))))))","v":0},{"$f":"IF($F183=\"Terminated\",0,IF($AA183=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C183,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMIFS(OverValue,OverEmp,$C183,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA183)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA183,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC183,PayEmp,$C183)))))))","v":0},120,6120,180,{"$f":"IF(OR($B183<=Setup!$E$12,$B183>=Setup!$D$12+1),0,IF($F183<>\"Active\",0,IF($AE183=\"Yes\",$AB183,((YEAR($AC183)*12)+MONTH($AC183))-((YEAR($AD183)*12)+MONTH($AD183)-1))))","v":12},{"$f":"IF(OR($B183<=Setup!$E$12,$B183>=Setup!$D$12+1),0,((YEAR($AC183)*12)+MONTH($AC183))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45347,{"$f":"IF(ISNA(VLOOKUP($C183,EmpAll,COLUMN(Emp!$E$4),0)),$AC183,IF(VLOOKUP($C183,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C183,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C183,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C183,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C183,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A183=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C183,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMIFS(OverValue,OverEmp,$C183,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1)),IF(ISNA(VLOOKUP($C183,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG183,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C183,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C183,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C183,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C183,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C183,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},67000,{"$f":"-IF($F183=\"Terminated\",0,IF($AA183=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C183,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA183*12)+(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB183/3,0))*4)+(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB183/6,0))*2)+(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F183=\"Terminated\",0,IF($AA183=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C183,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA183*12)+(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB183/3,0))*4)+(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB183/6,0))*2)+(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F183=\"Terminated\",0,IF($AA183=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C183,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA183*12)+(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB183/3,0))*4)+(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB183/6,0))*2)+(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F183=\"Terminated\",0,IF($AA183=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C183,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA183*12)+(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB183/3,0))*4)+(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB183/6,0))*2)+(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},67000,62000,{"$f":"-IF($F183=\"Terminated\",0,IF($AA183=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C183,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA183*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F183=\"Terminated\",0,IF($AA183=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C183,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA183*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F183=\"Terminated\",0,IF($AA183=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C183,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA183*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F183=\"Terminated\",0,IF($AA183=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C183,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC183),MONTH($AC183)+1,1),OverEnd,\">=\"&DATE(YEAR($AC183),MONTH($AC183),1))>0,SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA183*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C183)*(PayDate<=$AC183)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA183*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C183,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C183,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},62000,5000,{"$f":"IF(ISNUMBER($AL183),($AR183*$AL183)-$AI183-$AK183,MAX(0,IF($AL183=\"B\",IF($AR183<Setup!$C$32,($AR183*Setup!$D$32)-$AI183-$AK183,(($AR183-VLOOKUP($AR183,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR183,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR183,TaxBracket2,1),0,1,1)-$AI183-$AK183),IF($AR183<Setup!$C$21,($AR183*Setup!$D$21)-$AI183-$AK183,(($AR183-VLOOKUP($AR183,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR183,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR183,TaxBracket1,1),0,1,1)-$AI183-$AK183))))","v":0},{"$f":"IF(ISNUMBER($AL183),($AX183*$AL183)-$AI183-$AK183,MAX(0,IF($AL183=\"B\",IF($AX183<Setup!$C$32,($AX183*Setup!$D$32)-$AI183-$AK183,(($AX183-VLOOKUP($AX183,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX183,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX183,TaxBracket2,1),0,1,1)-$AI183-$AK183),IF($AX183<Setup!$C$21,($AX183*Setup!$D$21)-$AI183-$AK183,(($AX183-VLOOKUP($AX183,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX183,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX183,TaxBracket1,1),0,1,1)-$AI183-$AK183))))","v":0},0,0.92537313432835822,7.4626865671641784E-2,67000]
[{"$f":"IF(ROW($A184)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B184,\"yyyy\")&TEXT($B184,\"mm\")&\"-\"&$C184)","v":"202402-EXS013"},{"$f":"IF(ROW($A184)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A184)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A184)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A184)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45347},{"$f":"IF(ROW($A184)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A184)-ROW($A$6)-IF(ROW($A184)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A184)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS013"},{"$f":"IF(ISNA(VLOOKUP($C184,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C184,EmpAll,COLUMN(Emp!$B$4),0))","v":"East WD"},{"$f":"IF(ISNA(VLOOKUP($C184,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C184,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C184,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C184,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC184),MONTH($AC184)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C184,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC184),MONTH($AC184),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F184<>\"Active\",0,IF(COUNTIFS(OverEmp,$C184,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMIFS(OverValue,OverEmp,$C184,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1)),IF(AND($AC184>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C184)>0),SUMIFS(EmpIncrease,EmpCode,$C184),SUMIFS(EmpSalary,EmpCode,$C184))))","v":6000},{"$f":"IF($F184<>\"Active\",0,IF(COUNTIFS(OverEmp,$C184,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMIFS(OverValue,OverEmp,$C184,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1)),0))","v":0},{"$f":"IF($F184<>\"Active\",0,IF(COUNTIFS(OverEmp,$C184,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMIFS(OverValue,OverEmp,$C184,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1)),IF(MONTH(B184)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C184),0)))","v":0},{"$f":"IF($F184<>\"Active\",0,IF(COUNTIFS(OverEmp,$C184,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMIFS(OverValue,OverEmp,$C184,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1)),0))","v":0},{"$f":"IF($F184<>\"Active\",0,IF(COUNTIFS(OverEmp,$C184,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMIFS(OverValue,OverEmp,$C184,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1)),0))","v":0},6000,{"$f":"IF(COUNTIFS(OverEmp,$C184,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMIFS(OverValue,OverEmp,$C184,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1)),(($BA184/12*$AA184)+(BB184*IF(1-$BC184=0,0,BD184/(1-$BC184))))-IF($F184=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC184,PayEmp,$C184)))","v":0},{"$f":"IF($F184=\"Terminated\",0,IF($AA184=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C184,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMIFS(OverValue,OverEmp,$C184,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA184)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA184,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184))))))","v":60},{"$f":"IF($F184=\"Terminated\",0,IF($AA184=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C184,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMIFS(OverValue,OverEmp,$C184,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA184)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA184,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184))))))","v":0},{"$f":"IF($F184=\"Terminated\",0,IF($AA184=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C184,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMIFS(OverValue,OverEmp,$C184,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA184)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA184,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184))))))","v":0},{"$f":"IF($F184=\"Terminated\",0,IF($AA184=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C184,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMIFS(OverValue,OverEmp,$C184,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA184)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA184,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184))))))","v":0},60,5940,{"$f":"IF($F184=\"Terminated\",0,IF($AA184=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C184,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMIFS(OverValue,OverEmp,$C184,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA184)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA184,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184)))))))","v":60},{"$f":"IF($F184=\"Terminated\",0,IF($AA184=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C184,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMIFS(OverValue,OverEmp,$C184,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA184)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA184,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184)))))))","v":60},{"$f":"IF($F184=\"Terminated\",0,IF($AA184=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C184,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMIFS(OverValue,OverEmp,$C184,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA184)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA184,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184)))))))","v":0},{"$f":"IF($F184=\"Terminated\",0,IF($AA184=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C184,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMIFS(OverValue,OverEmp,$C184,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA184)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA184,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC184,PayEmp,$C184)))))))","v":0},120,6120,180,{"$f":"IF(OR($B184<=Setup!$E$12,$B184>=Setup!$D$12+1),0,IF($F184<>\"Active\",0,IF($AE184=\"Yes\",$AB184,((YEAR($AC184)*12)+MONTH($AC184))-((YEAR($AD184)*12)+MONTH($AD184)-1))))","v":12},{"$f":"IF(OR($B184<=Setup!$E$12,$B184>=Setup!$D$12+1),0,((YEAR($AC184)*12)+MONTH($AC184))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45347,{"$f":"IF(ISNA(VLOOKUP($C184,EmpAll,COLUMN(Emp!$E$4),0)),$AC184,IF(VLOOKUP($C184,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C184,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-03-01"},{"$f":"IF(ISNA(VLOOKUP($C184,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C184,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C184,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A184=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C184,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMIFS(OverValue,OverEmp,$C184,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1)),IF(ISNA(VLOOKUP($C184,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG184,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C184,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C184,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C184,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C184,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C184,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},67000,{"$f":"-IF($F184=\"Terminated\",0,IF($AA184=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C184,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA184*12)+(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB184/3,0))*4)+(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB184/6,0))*2)+(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F184=\"Terminated\",0,IF($AA184=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C184,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA184*12)+(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB184/3,0))*4)+(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB184/6,0))*2)+(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F184=\"Terminated\",0,IF($AA184=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C184,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA184*12)+(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB184/3,0))*4)+(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB184/6,0))*2)+(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F184=\"Terminated\",0,IF($AA184=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C184,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA184*12)+(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB184/3,0))*4)+(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB184/6,0))*2)+(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},67000,62000,{"$f":"-IF($F184=\"Terminated\",0,IF($AA184=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C184,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA184*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F184=\"Terminated\",0,IF($AA184=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C184,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA184*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F184=\"Terminated\",0,IF($AA184=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C184,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA184*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F184=\"Terminated\",0,IF($AA184=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C184,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC184),MONTH($AC184)+1,1),OverEnd,\">=\"&DATE(YEAR($AC184),MONTH($AC184),1))>0,SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA184*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C184)*(PayDate<=$AC184)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA184*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C184,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C184,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},62000,5000,{"$f":"IF(ISNUMBER($AL184),($AR184*$AL184)-$AI184-$AK184,MAX(0,IF($AL184=\"B\",IF($AR184<Setup!$C$32,($AR184*Setup!$D$32)-$AI184-$AK184,(($AR184-VLOOKUP($AR184,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR184,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR184,TaxBracket2,1),0,1,1)-$AI184-$AK184),IF($AR184<Setup!$C$21,($AR184*Setup!$D$21)-$AI184-$AK184,(($AR184-VLOOKUP($AR184,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR184,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR184,TaxBracket1,1),0,1,1)-$AI184-$AK184))))","v":0},{"$f":"IF(ISNUMBER($AL184),($AX184*$AL184)-$AI184-$AK184,MAX(0,IF($AL184=\"B\",IF($AX184<Setup!$C$32,($AX184*Setup!$D$32)-$AI184-$AK184,(($AX184-VLOOKUP($AX184,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX184,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX184,TaxBracket2,1),0,1,1)-$AI184-$AK184),IF($AX184<Setup!$C$21,($AX184*Setup!$D$21)-$AI184-$AK184,(($AX184-VLOOKUP($AX184,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX184,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX184,TaxBracket1,1),0,1,1)-$AI184-$AK184))))","v":0},0,0.92537313432835822,7.4626865671641784E-2,67000]
[{"$f":"IF(ROW($A185)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B185,\"yyyy\")&TEXT($B185,\"mm\")&\"-\"&$C185)","v":"202402-EXS014"},{"$f":"IF(ROW($A185)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A185)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A185)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A185)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45347},{"$f":"IF(ROW($A185)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A185)-ROW($A$6)-IF(ROW($A185)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A185)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS014"},{"$f":"IF(ISNA(VLOOKUP($C185,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C185,EmpAll,COLUMN(Emp!$B$4),0))","v":"Ross Q"},{"$f":"IF(ISNA(VLOOKUP($C185,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C185,EmpAll,COLUMN(Emp!$C$4),0))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($C185,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C185,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC185),MONTH($AC185)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C185,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC185),MONTH($AC185),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F185<>\"Active\",0,IF(COUNTIFS(OverEmp,$C185,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMIFS(OverValue,OverEmp,$C185,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1)),IF(AND($AC185>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C185)>0),SUMIFS(EmpIncrease,EmpCode,$C185),SUMIFS(EmpSalary,EmpCode,$C185))))","v":31000},{"$f":"IF($F185<>\"Active\",0,IF(COUNTIFS(OverEmp,$C185,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMIFS(OverValue,OverEmp,$C185,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1)),0))","v":0},{"$f":"IF($F185<>\"Active\",0,IF(COUNTIFS(OverEmp,$C185,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMIFS(OverValue,OverEmp,$C185,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1)),IF(MONTH(B185)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C185),0)))","v":0},{"$f":"IF($F185<>\"Active\",0,IF(COUNTIFS(OverEmp,$C185,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMIFS(OverValue,OverEmp,$C185,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1)),0))","v":0},{"$f":"IF($F185<>\"Active\",0,IF(COUNTIFS(OverEmp,$C185,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMIFS(OverValue,OverEmp,$C185,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1)),0))","v":0},31000,{"$f":"IF(COUNTIFS(OverEmp,$C185,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMIFS(OverValue,OverEmp,$C185,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1)),(($BA185/12*$AA185)+(BB185*IF(1-$BC185=0,0,BD185/(1-$BC185))))-IF($F185=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC185,PayEmp,$C185)))","v":5043.0833333333285},{"$f":"IF($F185=\"Terminated\",0,IF($AA185=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C185,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMIFS(OverValue,OverEmp,$C185,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA185)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA185,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185))))))","v":177.11999999999989},{"$f":"IF($F185=\"Terminated\",0,IF($AA185=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C185,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMIFS(OverValue,OverEmp,$C185,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA185)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA185,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185))))))","v":0},{"$f":"IF($F185=\"Terminated\",0,IF($AA185=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C185,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMIFS(OverValue,OverEmp,$C185,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA185)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA185,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185))))))","v":0},{"$f":"IF($F185=\"Terminated\",0,IF($AA185=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C185,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMIFS(OverValue,OverEmp,$C185,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA185)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA185,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185))))))","v":0},5220.2033333333284,25779.8,{"$f":"IF($F185=\"Terminated\",0,IF($AA185=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C185,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMIFS(OverValue,OverEmp,$C185,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA185)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA185,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185)))))))","v":177.11999999999989},{"$f":"IF($F185=\"Terminated\",0,IF($AA185=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C185,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMIFS(OverValue,OverEmp,$C185,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA185)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA185,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185)))))))","v":310},{"$f":"IF($F185=\"Terminated\",0,IF($AA185=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C185,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMIFS(OverValue,OverEmp,$C185,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA185)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA185,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185)))))))","v":0},{"$f":"IF($F185=\"Terminated\",0,IF($AA185=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C185,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMIFS(OverValue,OverEmp,$C185,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA185)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA185,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC185,PayEmp,$C185)))))))","v":0},487.11999999999989,31487.119999999999,5707.32,{"$f":"IF(OR($B185<=Setup!$E$12,$B185>=Setup!$D$12+1),0,IF($F185<>\"Active\",0,IF($AE185=\"Yes\",$AB185,((YEAR($AC185)*12)+MONTH($AC185))-((YEAR($AD185)*12)+MONTH($AD185)-1))))","v":9},{"$f":"IF(OR($B185<=Setup!$E$12,$B185>=Setup!$D$12+1),0,((YEAR($AC185)*12)+MONTH($AC185))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45347,{"$f":"IF(ISNA(VLOOKUP($C185,EmpAll,COLUMN(Emp!$E$4),0)),$AC185,IF(VLOOKUP($C185,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C185,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2023-06-25"},{"$f":"IF(ISNA(VLOOKUP($C185,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C185,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C185,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A185=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C185,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMIFS(OverValue,OverEmp,$C185,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1)),IF(ISNA(VLOOKUP($C185,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG185,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C185,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C185,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C185,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C185,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C185,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},354733.33333333331,{"$f":"-IF($F185=\"Terminated\",0,IF($AA185=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C185,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA185*12)+(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB185/3,0))*4)+(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB185/6,0))*2)+(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F185=\"Terminated\",0,IF($AA185=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C185,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA185*12)+(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB185/3,0))*4)+(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB185/6,0))*2)+(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F185=\"Terminated\",0,IF($AA185=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C185,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA185*12)+(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB185/3,0))*4)+(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB185/6,0))*2)+(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F185=\"Terminated\",0,IF($AA185=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C185,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA185*12)+(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB185/3,0))*4)+(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB185/6,0))*2)+(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},354733.33333333331,354733.33333333331,{"$f":"-IF($F185=\"Terminated\",0,IF($AA185=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C185,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA185*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F185=\"Terminated\",0,IF($AA185=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C185,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA185*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F185=\"Terminated\",0,IF($AA185=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C185,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA185*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F185=\"Terminated\",0,IF($AA185=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C185,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC185),MONTH($AC185)+1,1),OverEnd,\">=\"&DATE(YEAR($AC185),MONTH($AC185),1))>0,SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA185*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C185)*(PayDate<=$AC185)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA185*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C185,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C185,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},354733.33333333331,0,{"$f":"IF(ISNUMBER($AL185),($AR185*$AL185)-$AI185-$AK185,MAX(0,IF($AL185=\"B\",IF($AR185<Setup!$C$32,($AR185*Setup!$D$32)-$AI185-$AK185,(($AR185-VLOOKUP($AR185,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR185,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR185,TaxBracket2,1),0,1,1)-$AI185-$AK185),IF($AR185<Setup!$C$21,($AR185*Setup!$D$21)-$AI185-$AK185,(($AR185-VLOOKUP($AR185,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR185,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR185,TaxBracket1,1),0,1,1)-$AI185-$AK185))))","v":56027.666666666657},{"$f":"IF(ISNUMBER($AL185),($AX185*$AL185)-$AI185-$AK185,MAX(0,IF($AL185=\"B\",IF($AX185<Setup!$C$32,($AX185*Setup!$D$32)-$AI185-$AK185,(($AX185-VLOOKUP($AX185,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX185,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX185,TaxBracket2,1),0,1,1)-$AI185-$AK185),IF($AX185<Setup!$C$21,($AX185*Setup!$D$21)-$AI185-$AK185,(($AX185-VLOOKUP($AX185,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX185,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX185,TaxBracket1,1),0,1,1)-$AI185-$AK185))))","v":56027.666666666657},0,1,0,354733.33333333331]
[{"$f":"IF(ROW($A186)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B186,\"yyyy\")&TEXT($B186,\"mm\")&\"-\"&$C186)","v":"202402-EXS015"},{"$f":"IF(ROW($A186)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A186)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A186)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A186)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45347},{"$f":"IF(ROW($A186)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A186)-ROW($A$6)-IF(ROW($A186)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A186)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"EXS015"},{"$f":"IF(ISNA(VLOOKUP($C186,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C186,EmpAll,COLUMN(Emp!$B$4),0))","v":"Graham L"},{"$f":"IF(ISNA(VLOOKUP($C186,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C186,EmpAll,COLUMN(Emp!$C$4),0))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($C186,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C186,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC186),MONTH($AC186)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C186,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC186),MONTH($AC186),0)),\"Terminated\",\"Active\")))","v":"Active"},{"$f":"IF($F186<>\"Active\",0,IF(COUNTIFS(OverEmp,$C186,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMIFS(OverValue,OverEmp,$C186,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1)),IF(AND($AC186>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C186)>0),SUMIFS(EmpIncrease,EmpCode,$C186),SUMIFS(EmpSalary,EmpCode,$C186))))","v":10500},{"$f":"IF($F186<>\"Active\",0,IF(COUNTIFS(OverEmp,$C186,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMIFS(OverValue,OverEmp,$C186,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1)),0))","v":0},{"$f":"IF($F186<>\"Active\",0,IF(COUNTIFS(OverEmp,$C186,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMIFS(OverValue,OverEmp,$C186,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1)),IF(MONTH(B186)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C186),0)))","v":0},{"$f":"IF($F186<>\"Active\",0,IF(COUNTIFS(OverEmp,$C186,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMIFS(OverValue,OverEmp,$C186,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1)),0))","v":0},{"$f":"IF($F186<>\"Active\",0,IF(COUNTIFS(OverEmp,$C186,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMIFS(OverValue,OverEmp,$C186,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1)),0))","v":0},10500,{"$f":"IF(COUNTIFS(OverEmp,$C186,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMIFS(OverValue,OverEmp,$C186,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1)),(($BA186/12*$AA186)+(BB186*IF(1-$BC186=0,0,BD186/(1-$BC186))))-IF($F186=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC186,PayEmp,$C186)))","v":0},{"$f":"IF($F186=\"Terminated\",0,IF($AA186=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C186,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMIFS(OverValue,OverEmp,$C186,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA186)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA186,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186))))))","v":105},{"$f":"IF($F186=\"Terminated\",0,IF($AA186=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C186,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMIFS(OverValue,OverEmp,$C186,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA186)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA186,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186))))))","v":0},{"$f":"IF($F186=\"Terminated\",0,IF($AA186=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C186,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMIFS(OverValue,OverEmp,$C186,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA186)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA186,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186))))))","v":0},{"$f":"IF($F186=\"Terminated\",0,IF($AA186=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C186,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMIFS(OverValue,OverEmp,$C186,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA186)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA186,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186))))))","v":0},105,10395,{"$f":"IF($F186=\"Terminated\",0,IF($AA186=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C186,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMIFS(OverValue,OverEmp,$C186,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA186)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA186,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186)))))))","v":105},{"$f":"IF($F186=\"Terminated\",0,IF($AA186=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C186,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMIFS(OverValue,OverEmp,$C186,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA186)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA186,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186)))))))","v":105},{"$f":"IF($F186=\"Terminated\",0,IF($AA186=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C186,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMIFS(OverValue,OverEmp,$C186,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA186)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA186,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186)))))))","v":0},{"$f":"IF($F186=\"Terminated\",0,IF($AA186=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C186,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMIFS(OverValue,OverEmp,$C186,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA186)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA186,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC186,PayEmp,$C186)))))))","v":0},210,10710,315,{"$f":"IF(OR($B186<=Setup!$E$12,$B186>=Setup!$D$12+1),0,IF($F186<>\"Active\",0,IF($AE186=\"Yes\",$AB186,((YEAR($AC186)*12)+MONTH($AC186))-((YEAR($AD186)*12)+MONTH($AD186)-1))))","v":2},{"$f":"IF(OR($B186<=Setup!$E$12,$B186>=Setup!$D$12+1),0,((YEAR($AC186)*12)+MONTH($AC186))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45347,{"$f":"IF(ISNA(VLOOKUP($C186,EmpAll,COLUMN(Emp!$E$4),0)),$AC186,IF(VLOOKUP($C186,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C186,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-01-25"},{"$f":"IF(ISNA(VLOOKUP($C186,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C186,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C186,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A186=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C186,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMIFS(OverValue,OverEmp,$C186,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1)),IF(ISNA(VLOOKUP($C186,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$N$4),0)))","v":1},{"$f":"VLOOKUP($AG186,MedList,COLUMN(Setup!$C$49),1)","v":364},8008,{"$f":"IF(ISNA(VLOOKUP($C186,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C186,EmpAll,COLUMN(Emp!$L$4),0))","v":"A"},17235,{"$f":"IF(ISNA(VLOOKUP($C186,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C186,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C186,Employees[],COLUMN(Emp!$M$4),0)))","v":"A"},126000,{"$f":"-IF($F186=\"Terminated\",0,IF($AA186=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C186,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA186*12)+(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB186/3,0))*4)+(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB186/6,0))*2)+(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F186=\"Terminated\",0,IF($AA186=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C186,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA186*12)+(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB186/3,0))*4)+(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB186/6,0))*2)+(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F186=\"Terminated\",0,IF($AA186=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C186,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA186*12)+(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB186/3,0))*4)+(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB186/6,0))*2)+(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F186=\"Terminated\",0,IF($AA186=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C186,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA186*12)+(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB186/3,0))*4)+(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB186/6,0))*2)+(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},126000,126000,{"$f":"-IF($F186=\"Terminated\",0,IF($AA186=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C186,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA186*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F186=\"Terminated\",0,IF($AA186=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C186,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA186*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F186=\"Terminated\",0,IF($AA186=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C186,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA186*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F186=\"Terminated\",0,IF($AA186=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C186,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC186),MONTH($AC186)+1,1),OverEnd,\">=\"&DATE(YEAR($AC186),MONTH($AC186),1))>0,SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA186*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C186)*(PayDate<=$AC186)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA186*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C186,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C186,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},126000,0,{"$f":"IF(ISNUMBER($AL186),($AR186*$AL186)-$AI186-$AK186,MAX(0,IF($AL186=\"B\",IF($AR186<Setup!$C$32,($AR186*Setup!$D$32)-$AI186-$AK186,(($AR186-VLOOKUP($AR186,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR186,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR186,TaxBracket2,1),0,1,1)-$AI186-$AK186),IF($AR186<Setup!$C$21,($AR186*Setup!$D$21)-$AI186-$AK186,(($AR186-VLOOKUP($AR186,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR186,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR186,TaxBracket1,1),0,1,1)-$AI186-$AK186))))","v":0},{"$f":"IF(ISNUMBER($AL186),($AX186*$AL186)-$AI186-$AK186,MAX(0,IF($AL186=\"B\",IF($AX186<Setup!$C$32,($AX186*Setup!$D$32)-$AI186-$AK186,(($AX186-VLOOKUP($AX186,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX186,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX186,TaxBracket2,1),0,1,1)-$AI186-$AK186),IF($AX186<Setup!$C$21,($AX186*Setup!$D$21)-$AI186-$AK186,(($AX186-VLOOKUP($AX186,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX186,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX186,TaxBracket1,1),0,1,1)-$AI186-$AK186))))","v":0},0,1,0,126000]
[{"$f":"IF(ROW($A187)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B187,\"yyyy\")&TEXT($B187,\"mm\")&\"-\"&$C187)","v":"-"},{"$f":"IF(ROW($A187)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A187)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A187)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A187)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A187)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A187)-ROW($A$6)-IF(ROW($A187)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A187)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C187,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C187,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C187,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C187,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C187,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C187,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC187),MONTH($AC187)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C187,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC187),MONTH($AC187),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F187<>\"Active\",0,IF(COUNTIFS(OverEmp,$C187,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMIFS(OverValue,OverEmp,$C187,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1)),IF(AND($AC187>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C187)>0),SUMIFS(EmpIncrease,EmpCode,$C187),SUMIFS(EmpSalary,EmpCode,$C187))))","v":0},{"$f":"IF($F187<>\"Active\",0,IF(COUNTIFS(OverEmp,$C187,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMIFS(OverValue,OverEmp,$C187,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1)),0))","v":0},{"$f":"IF($F187<>\"Active\",0,IF(COUNTIFS(OverEmp,$C187,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMIFS(OverValue,OverEmp,$C187,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1)),IF(MONTH(B187)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C187),0)))","v":0},{"$f":"IF($F187<>\"Active\",0,IF(COUNTIFS(OverEmp,$C187,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMIFS(OverValue,OverEmp,$C187,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1)),0))","v":0},{"$f":"IF($F187<>\"Active\",0,IF(COUNTIFS(OverEmp,$C187,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMIFS(OverValue,OverEmp,$C187,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C187,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMIFS(OverValue,OverEmp,$C187,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1)),(($BA187/12*$AA187)+(BB187*IF(1-$BC187=0,0,BD187/(1-$BC187))))-IF($F187=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC187,PayEmp,$C187)))","v":0},{"$f":"IF($F187=\"Terminated\",0,IF($AA187=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C187,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMIFS(OverValue,OverEmp,$C187,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA187)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA187,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187))))))","v":0},{"$f":"IF($F187=\"Terminated\",0,IF($AA187=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C187,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMIFS(OverValue,OverEmp,$C187,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA187)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA187,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187))))))","v":0},{"$f":"IF($F187=\"Terminated\",0,IF($AA187=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C187,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMIFS(OverValue,OverEmp,$C187,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA187)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA187,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187))))))","v":0},{"$f":"IF($F187=\"Terminated\",0,IF($AA187=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C187,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMIFS(OverValue,OverEmp,$C187,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA187)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA187,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187))))))","v":0},0,0,{"$f":"IF($F187=\"Terminated\",0,IF($AA187=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C187,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMIFS(OverValue,OverEmp,$C187,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA187)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA187,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187)))))))","v":0},{"$f":"IF($F187=\"Terminated\",0,IF($AA187=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C187,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMIFS(OverValue,OverEmp,$C187,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA187)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA187,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187)))))))","v":0},{"$f":"IF($F187=\"Terminated\",0,IF($AA187=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C187,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMIFS(OverValue,OverEmp,$C187,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA187)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA187,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187)))))))","v":0},{"$f":"IF($F187=\"Terminated\",0,IF($AA187=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C187,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMIFS(OverValue,OverEmp,$C187,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA187)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA187,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC187,PayEmp,$C187)))))))","v":0},{"$f":"SUM(OFFSET($T187,0,0,1,COLUMN($X$6)-COLUMN($T$7)))","v":0},0,{"$f":"ROUND(SUM(R187,X187),2)","v":0},{"$f":"IF(OR($B187<=Setup!$E$12,$B187>=Setup!$D$12+1),0,IF($F187<>\"Active\",0,IF($AE187=\"Yes\",$AB187,((YEAR($AC187)*12)+MONTH($AC187))-((YEAR($AD187)*12)+MONTH($AD187)-1))))","v":0},{"$f":"IF(OR($B187<=Setup!$E$12,$B187>=Setup!$D$12+1),0,((YEAR($AC187)*12)+MONTH($AC187))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},{"$f":"DATE(YEAR($B187),MONTH($B187),DAY($B187))","v":45351},{"$f":"IF(ISNA(VLOOKUP($C187,EmpAll,COLUMN(Emp!$E$4),0)),$AC187,IF(VLOOKUP($C187,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C187,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C187,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C187,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C187,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A187=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C187,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMIFS(OverValue,OverEmp,$C187,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1)),IF(ISNA(VLOOKUP($C187,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG187,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C187,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C187,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C187,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C187,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C187,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F187=\"Terminated\",0,IF($AA187=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C187,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA187*12)+(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB187/3,0))*4)+(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB187/6,0))*2)+(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F187=\"Terminated\",0,IF($AA187=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C187,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA187*12)+(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB187/3,0))*4)+(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB187/6,0))*2)+(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F187=\"Terminated\",0,IF($AA187=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C187,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA187*12)+(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB187/3,0))*4)+(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB187/6,0))*2)+(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F187=\"Terminated\",0,IF($AA187=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C187,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA187*12)+(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB187/3,0))*4)+(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB187/6,0))*2)+(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},{"$f":"$AM187+SUM(OFFSET($AM187,0,1,1,COLUMN($AR$2)-COLUMN($AM$2)-1))","v":0},0,{"$f":"-IF($F187=\"Terminated\",0,IF($AA187=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C187,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA187*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F187=\"Terminated\",0,IF($AA187=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C187,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA187*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F187=\"Terminated\",0,IF($AA187=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C187,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA187*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F187=\"Terminated\",0,IF($AA187=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C187,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC187),MONTH($AC187)+1,1),OverEnd,\">=\"&DATE(YEAR($AC187),MONTH($AC187),1))>0,SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA187*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C187)*(PayDate<=$AC187)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA187*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C187,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C187,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL187),($AR187*$AL187)-$AI187-$AK187,MAX(0,IF($AL187=\"B\",IF($AR187<Setup!$C$32,($AR187*Setup!$D$32)-$AI187-$AK187,(($AR187-VLOOKUP($AR187,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR187,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR187,TaxBracket2,1),0,1,1)-$AI187-$AK187),IF($AR187<Setup!$C$21,($AR187*Setup!$D$21)-$AI187-$AK187,(($AR187-VLOOKUP($AR187,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR187,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR187,TaxBracket1,1),0,1,1)-$AI187-$AK187))))","v":0},{"$f":"IF(ISNUMBER($AL187),($AX187*$AL187)-$AI187-$AK187,MAX(0,IF($AL187=\"B\",IF($AX187<Setup!$C$32,($AX187*Setup!$D$32)-$AI187-$AK187,(($AX187-VLOOKUP($AX187,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX187,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX187,TaxBracket2,1),0,1,1)-$AI187-$AK187),IF($AX187<Setup!$C$21,($AX187*Setup!$D$21)-$AI187-$AK187,(($AX187-VLOOKUP($AX187,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX187,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX187,TaxBracket1,1),0,1,1)-$AI187-$AK187))))","v":0},{"$f":"AZ187-BA187","v":0},0,0,0]
[{"$f":"IF(ROW($A188)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B188,\"yyyy\")&TEXT($B188,\"mm\")&\"-\"&$C188)","v":"-"},{"$f":"IF(ROW($A188)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A188)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A188)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A188)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A188)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A188)-ROW($A$6)-IF(ROW($A188)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A188)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C188,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C188,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C188,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C188,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C188,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C188,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC188),MONTH($AC188)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C188,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC188),MONTH($AC188),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F188<>\"Active\",0,IF(COUNTIFS(OverEmp,$C188,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMIFS(OverValue,OverEmp,$C188,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1)),IF(AND($AC188>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C188)>0),SUMIFS(EmpIncrease,EmpCode,$C188),SUMIFS(EmpSalary,EmpCode,$C188))))","v":0},{"$f":"IF($F188<>\"Active\",0,IF(COUNTIFS(OverEmp,$C188,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMIFS(OverValue,OverEmp,$C188,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1)),0))","v":0},{"$f":"IF($F188<>\"Active\",0,IF(COUNTIFS(OverEmp,$C188,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMIFS(OverValue,OverEmp,$C188,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1)),IF(MONTH(B188)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C188),0)))","v":0},{"$f":"IF($F188<>\"Active\",0,IF(COUNTIFS(OverEmp,$C188,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMIFS(OverValue,OverEmp,$C188,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1)),0))","v":0},{"$f":"IF($F188<>\"Active\",0,IF(COUNTIFS(OverEmp,$C188,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMIFS(OverValue,OverEmp,$C188,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C188,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMIFS(OverValue,OverEmp,$C188,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1)),(($BA188/12*$AA188)+(BB188*IF(1-$BC188=0,0,BD188/(1-$BC188))))-IF($F188=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC188,PayEmp,$C188)))","v":0},{"$f":"IF($F188=\"Terminated\",0,IF($AA188=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C188,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMIFS(OverValue,OverEmp,$C188,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA188)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA188,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188))))))","v":0},{"$f":"IF($F188=\"Terminated\",0,IF($AA188=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C188,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMIFS(OverValue,OverEmp,$C188,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA188)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA188,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188))))))","v":0},{"$f":"IF($F188=\"Terminated\",0,IF($AA188=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C188,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMIFS(OverValue,OverEmp,$C188,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA188)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA188,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188))))))","v":0},{"$f":"IF($F188=\"Terminated\",0,IF($AA188=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C188,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMIFS(OverValue,OverEmp,$C188,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA188)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA188,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188))))))","v":0},0,0,{"$f":"IF($F188=\"Terminated\",0,IF($AA188=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C188,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMIFS(OverValue,OverEmp,$C188,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA188)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA188,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188)))))))","v":0},{"$f":"IF($F188=\"Terminated\",0,IF($AA188=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C188,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMIFS(OverValue,OverEmp,$C188,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA188)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA188,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188)))))))","v":0},{"$f":"IF($F188=\"Terminated\",0,IF($AA188=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C188,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMIFS(OverValue,OverEmp,$C188,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA188)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA188,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188)))))))","v":0},{"$f":"IF($F188=\"Terminated\",0,IF($AA188=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C188,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMIFS(OverValue,OverEmp,$C188,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA188)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA188,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC188,PayEmp,$C188)))))))","v":0},0,0,0,{"$f":"IF(OR($B188<=Setup!$E$12,$B188>=Setup!$D$12+1),0,IF($F188<>\"Active\",0,IF($AE188=\"Yes\",$AB188,((YEAR($AC188)*12)+MONTH($AC188))-((YEAR($AD188)*12)+MONTH($AD188)-1))))","v":0},{"$f":"IF(OR($B188<=Setup!$E$12,$B188>=Setup!$D$12+1),0,((YEAR($AC188)*12)+MONTH($AC188))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C188,EmpAll,COLUMN(Emp!$E$4),0)),$AC188,IF(VLOOKUP($C188,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C188,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C188,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C188,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C188,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A188=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C188,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMIFS(OverValue,OverEmp,$C188,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1)),IF(ISNA(VLOOKUP($C188,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG188,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C188,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C188,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C188,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C188,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C188,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F188=\"Terminated\",0,IF($AA188=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C188,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA188*12)+(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB188/3,0))*4)+(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB188/6,0))*2)+(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F188=\"Terminated\",0,IF($AA188=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C188,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA188*12)+(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB188/3,0))*4)+(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB188/6,0))*2)+(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F188=\"Terminated\",0,IF($AA188=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C188,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA188*12)+(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB188/3,0))*4)+(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB188/6,0))*2)+(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F188=\"Terminated\",0,IF($AA188=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C188,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA188*12)+(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB188/3,0))*4)+(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB188/6,0))*2)+(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F188=\"Terminated\",0,IF($AA188=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C188,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA188*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F188=\"Terminated\",0,IF($AA188=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C188,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA188*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F188=\"Terminated\",0,IF($AA188=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C188,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA188*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F188=\"Terminated\",0,IF($AA188=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C188,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC188),MONTH($AC188)+1,1),OverEnd,\">=\"&DATE(YEAR($AC188),MONTH($AC188),1))>0,SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA188*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C188)*(PayDate<=$AC188)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA188*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C188,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C188,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL188),($AR188*$AL188)-$AI188-$AK188,MAX(0,IF($AL188=\"B\",IF($AR188<Setup!$C$32,($AR188*Setup!$D$32)-$AI188-$AK188,(($AR188-VLOOKUP($AR188,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR188,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR188,TaxBracket2,1),0,1,1)-$AI188-$AK188),IF($AR188<Setup!$C$21,($AR188*Setup!$D$21)-$AI188-$AK188,(($AR188-VLOOKUP($AR188,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR188,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR188,TaxBracket1,1),0,1,1)-$AI188-$AK188))))","v":0},{"$f":"IF(ISNUMBER($AL188),($AX188*$AL188)-$AI188-$AK188,MAX(0,IF($AL188=\"B\",IF($AX188<Setup!$C$32,($AX188*Setup!$D$32)-$AI188-$AK188,(($AX188-VLOOKUP($AX188,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX188,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX188,TaxBracket2,1),0,1,1)-$AI188-$AK188),IF($AX188<Setup!$C$21,($AX188*Setup!$D$21)-$AI188-$AK188,(($AX188-VLOOKUP($AX188,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX188,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX188,TaxBracket1,1),0,1,1)-$AI188-$AK188))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A189)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B189,\"yyyy\")&TEXT($B189,\"mm\")&\"-\"&$C189)","v":"-"},{"$f":"IF(ROW($A189)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A189)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A189)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A189)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A189)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A189)-ROW($A$6)-IF(ROW($A189)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A189)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C189,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C189,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C189,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C189,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C189,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C189,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC189),MONTH($AC189)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C189,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC189),MONTH($AC189),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F189<>\"Active\",0,IF(COUNTIFS(OverEmp,$C189,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMIFS(OverValue,OverEmp,$C189,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1)),IF(AND($AC189>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C189)>0),SUMIFS(EmpIncrease,EmpCode,$C189),SUMIFS(EmpSalary,EmpCode,$C189))))","v":0},{"$f":"IF($F189<>\"Active\",0,IF(COUNTIFS(OverEmp,$C189,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMIFS(OverValue,OverEmp,$C189,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1)),0))","v":0},{"$f":"IF($F189<>\"Active\",0,IF(COUNTIFS(OverEmp,$C189,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMIFS(OverValue,OverEmp,$C189,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1)),IF(MONTH(B189)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C189),0)))","v":0},{"$f":"IF($F189<>\"Active\",0,IF(COUNTIFS(OverEmp,$C189,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMIFS(OverValue,OverEmp,$C189,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1)),0))","v":0},{"$f":"IF($F189<>\"Active\",0,IF(COUNTIFS(OverEmp,$C189,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMIFS(OverValue,OverEmp,$C189,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C189,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMIFS(OverValue,OverEmp,$C189,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1)),(($BA189/12*$AA189)+(BB189*IF(1-$BC189=0,0,BD189/(1-$BC189))))-IF($F189=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC189,PayEmp,$C189)))","v":0},{"$f":"IF($F189=\"Terminated\",0,IF($AA189=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C189,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMIFS(OverValue,OverEmp,$C189,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA189)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA189,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189))))))","v":0},{"$f":"IF($F189=\"Terminated\",0,IF($AA189=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C189,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMIFS(OverValue,OverEmp,$C189,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA189)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA189,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189))))))","v":0},{"$f":"IF($F189=\"Terminated\",0,IF($AA189=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C189,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMIFS(OverValue,OverEmp,$C189,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA189)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA189,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189))))))","v":0},{"$f":"IF($F189=\"Terminated\",0,IF($AA189=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C189,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMIFS(OverValue,OverEmp,$C189,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA189)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA189,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189))))))","v":0},0,0,{"$f":"IF($F189=\"Terminated\",0,IF($AA189=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C189,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMIFS(OverValue,OverEmp,$C189,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA189)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA189,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189)))))))","v":0},{"$f":"IF($F189=\"Terminated\",0,IF($AA189=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C189,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMIFS(OverValue,OverEmp,$C189,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA189)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA189,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189)))))))","v":0},{"$f":"IF($F189=\"Terminated\",0,IF($AA189=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C189,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMIFS(OverValue,OverEmp,$C189,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA189)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA189,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189)))))))","v":0},{"$f":"IF($F189=\"Terminated\",0,IF($AA189=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C189,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMIFS(OverValue,OverEmp,$C189,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA189)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA189,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC189,PayEmp,$C189)))))))","v":0},0,0,0,{"$f":"IF(OR($B189<=Setup!$E$12,$B189>=Setup!$D$12+1),0,IF($F189<>\"Active\",0,IF($AE189=\"Yes\",$AB189,((YEAR($AC189)*12)+MONTH($AC189))-((YEAR($AD189)*12)+MONTH($AD189)-1))))","v":0},{"$f":"IF(OR($B189<=Setup!$E$12,$B189>=Setup!$D$12+1),0,((YEAR($AC189)*12)+MONTH($AC189))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C189,EmpAll,COLUMN(Emp!$E$4),0)),$AC189,IF(VLOOKUP($C189,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C189,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C189,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C189,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C189,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A189=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C189,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMIFS(OverValue,OverEmp,$C189,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1)),IF(ISNA(VLOOKUP($C189,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG189,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C189,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C189,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C189,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C189,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C189,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F189=\"Terminated\",0,IF($AA189=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C189,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA189*12)+(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB189/3,0))*4)+(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB189/6,0))*2)+(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F189=\"Terminated\",0,IF($AA189=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C189,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA189*12)+(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB189/3,0))*4)+(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB189/6,0))*2)+(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F189=\"Terminated\",0,IF($AA189=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C189,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA189*12)+(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB189/3,0))*4)+(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB189/6,0))*2)+(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F189=\"Terminated\",0,IF($AA189=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C189,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA189*12)+(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB189/3,0))*4)+(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB189/6,0))*2)+(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F189=\"Terminated\",0,IF($AA189=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C189,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA189*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F189=\"Terminated\",0,IF($AA189=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C189,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA189*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F189=\"Terminated\",0,IF($AA189=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C189,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA189*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F189=\"Terminated\",0,IF($AA189=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C189,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC189),MONTH($AC189)+1,1),OverEnd,\">=\"&DATE(YEAR($AC189),MONTH($AC189),1))>0,SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA189*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C189)*(PayDate<=$AC189)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA189*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C189,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C189,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL189),($AR189*$AL189)-$AI189-$AK189,MAX(0,IF($AL189=\"B\",IF($AR189<Setup!$C$32,($AR189*Setup!$D$32)-$AI189-$AK189,(($AR189-VLOOKUP($AR189,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR189,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR189,TaxBracket2,1),0,1,1)-$AI189-$AK189),IF($AR189<Setup!$C$21,($AR189*Setup!$D$21)-$AI189-$AK189,(($AR189-VLOOKUP($AR189,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR189,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR189,TaxBracket1,1),0,1,1)-$AI189-$AK189))))","v":0},{"$f":"IF(ISNUMBER($AL189),($AX189*$AL189)-$AI189-$AK189,MAX(0,IF($AL189=\"B\",IF($AX189<Setup!$C$32,($AX189*Setup!$D$32)-$AI189-$AK189,(($AX189-VLOOKUP($AX189,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX189,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX189,TaxBracket2,1),0,1,1)-$AI189-$AK189),IF($AX189<Setup!$C$21,($AX189*Setup!$D$21)-$AI189-$AK189,(($AX189-VLOOKUP($AX189,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX189,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX189,TaxBracket1,1),0,1,1)-$AI189-$AK189))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A190)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B190,\"yyyy\")&TEXT($B190,\"mm\")&\"-\"&$C190)","v":"-"},{"$f":"IF(ROW($A190)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A190)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A190)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A190)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A190)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A190)-ROW($A$6)-IF(ROW($A190)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A190)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C190,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C190,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C190,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C190,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C190,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C190,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC190),MONTH($AC190)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C190,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC190),MONTH($AC190),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F190<>\"Active\",0,IF(COUNTIFS(OverEmp,$C190,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMIFS(OverValue,OverEmp,$C190,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1)),IF(AND($AC190>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C190)>0),SUMIFS(EmpIncrease,EmpCode,$C190),SUMIFS(EmpSalary,EmpCode,$C190))))","v":0},{"$f":"IF($F190<>\"Active\",0,IF(COUNTIFS(OverEmp,$C190,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMIFS(OverValue,OverEmp,$C190,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1)),0))","v":0},{"$f":"IF($F190<>\"Active\",0,IF(COUNTIFS(OverEmp,$C190,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMIFS(OverValue,OverEmp,$C190,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1)),IF(MONTH(B190)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C190),0)))","v":0},{"$f":"IF($F190<>\"Active\",0,IF(COUNTIFS(OverEmp,$C190,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMIFS(OverValue,OverEmp,$C190,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1)),0))","v":0},{"$f":"IF($F190<>\"Active\",0,IF(COUNTIFS(OverEmp,$C190,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMIFS(OverValue,OverEmp,$C190,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C190,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMIFS(OverValue,OverEmp,$C190,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1)),(($BA190/12*$AA190)+(BB190*IF(1-$BC190=0,0,BD190/(1-$BC190))))-IF($F190=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC190,PayEmp,$C190)))","v":0},{"$f":"IF($F190=\"Terminated\",0,IF($AA190=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C190,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMIFS(OverValue,OverEmp,$C190,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA190)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA190,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190))))))","v":0},{"$f":"IF($F190=\"Terminated\",0,IF($AA190=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C190,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMIFS(OverValue,OverEmp,$C190,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA190)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA190,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190))))))","v":0},{"$f":"IF($F190=\"Terminated\",0,IF($AA190=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C190,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMIFS(OverValue,OverEmp,$C190,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA190)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA190,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190))))))","v":0},{"$f":"IF($F190=\"Terminated\",0,IF($AA190=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C190,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMIFS(OverValue,OverEmp,$C190,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA190)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA190,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190))))))","v":0},0,0,{"$f":"IF($F190=\"Terminated\",0,IF($AA190=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C190,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMIFS(OverValue,OverEmp,$C190,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA190)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA190,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190)))))))","v":0},{"$f":"IF($F190=\"Terminated\",0,IF($AA190=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C190,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMIFS(OverValue,OverEmp,$C190,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA190)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA190,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190)))))))","v":0},{"$f":"IF($F190=\"Terminated\",0,IF($AA190=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C190,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMIFS(OverValue,OverEmp,$C190,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA190)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA190,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190)))))))","v":0},{"$f":"IF($F190=\"Terminated\",0,IF($AA190=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C190,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMIFS(OverValue,OverEmp,$C190,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA190)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA190,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC190,PayEmp,$C190)))))))","v":0},0,0,0,{"$f":"IF(OR($B190<=Setup!$E$12,$B190>=Setup!$D$12+1),0,IF($F190<>\"Active\",0,IF($AE190=\"Yes\",$AB190,((YEAR($AC190)*12)+MONTH($AC190))-((YEAR($AD190)*12)+MONTH($AD190)-1))))","v":0},{"$f":"IF(OR($B190<=Setup!$E$12,$B190>=Setup!$D$12+1),0,((YEAR($AC190)*12)+MONTH($AC190))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C190,EmpAll,COLUMN(Emp!$E$4),0)),$AC190,IF(VLOOKUP($C190,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C190,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C190,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C190,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C190,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A190=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C190,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMIFS(OverValue,OverEmp,$C190,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1)),IF(ISNA(VLOOKUP($C190,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG190,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C190,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C190,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C190,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C190,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C190,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F190=\"Terminated\",0,IF($AA190=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C190,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA190*12)+(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB190/3,0))*4)+(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB190/6,0))*2)+(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F190=\"Terminated\",0,IF($AA190=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C190,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA190*12)+(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB190/3,0))*4)+(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB190/6,0))*2)+(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F190=\"Terminated\",0,IF($AA190=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C190,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA190*12)+(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB190/3,0))*4)+(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB190/6,0))*2)+(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F190=\"Terminated\",0,IF($AA190=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C190,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA190*12)+(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB190/3,0))*4)+(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB190/6,0))*2)+(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F190=\"Terminated\",0,IF($AA190=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C190,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA190*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F190=\"Terminated\",0,IF($AA190=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C190,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA190*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F190=\"Terminated\",0,IF($AA190=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C190,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA190*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F190=\"Terminated\",0,IF($AA190=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C190,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC190),MONTH($AC190)+1,1),OverEnd,\">=\"&DATE(YEAR($AC190),MONTH($AC190),1))>0,SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA190*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C190)*(PayDate<=$AC190)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA190*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C190,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C190,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL190),($AR190*$AL190)-$AI190-$AK190,MAX(0,IF($AL190=\"B\",IF($AR190<Setup!$C$32,($AR190*Setup!$D$32)-$AI190-$AK190,(($AR190-VLOOKUP($AR190,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR190,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR190,TaxBracket2,1),0,1,1)-$AI190-$AK190),IF($AR190<Setup!$C$21,($AR190*Setup!$D$21)-$AI190-$AK190,(($AR190-VLOOKUP($AR190,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR190,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR190,TaxBracket1,1),0,1,1)-$AI190-$AK190))))","v":0},{"$f":"IF(ISNUMBER($AL190),($AX190*$AL190)-$AI190-$AK190,MAX(0,IF($AL190=\"B\",IF($AX190<Setup!$C$32,($AX190*Setup!$D$32)-$AI190-$AK190,(($AX190-VLOOKUP($AX190,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX190,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX190,TaxBracket2,1),0,1,1)-$AI190-$AK190),IF($AX190<Setup!$C$21,($AX190*Setup!$D$21)-$AI190-$AK190,(($AX190-VLOOKUP($AX190,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX190,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX190,TaxBracket1,1),0,1,1)-$AI190-$AK190))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A191)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B191,\"yyyy\")&TEXT($B191,\"mm\")&\"-\"&$C191)","v":"-"},{"$f":"IF(ROW($A191)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A191)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A191)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A191)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A191)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A191)-ROW($A$6)-IF(ROW($A191)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A191)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C191,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C191,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C191,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C191,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C191,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C191,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC191),MONTH($AC191)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C191,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC191),MONTH($AC191),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F191<>\"Active\",0,IF(COUNTIFS(OverEmp,$C191,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMIFS(OverValue,OverEmp,$C191,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1)),IF(AND($AC191>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C191)>0),SUMIFS(EmpIncrease,EmpCode,$C191),SUMIFS(EmpSalary,EmpCode,$C191))))","v":0},{"$f":"IF($F191<>\"Active\",0,IF(COUNTIFS(OverEmp,$C191,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMIFS(OverValue,OverEmp,$C191,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1)),0))","v":0},{"$f":"IF($F191<>\"Active\",0,IF(COUNTIFS(OverEmp,$C191,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMIFS(OverValue,OverEmp,$C191,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1)),IF(MONTH(B191)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C191),0)))","v":0},{"$f":"IF($F191<>\"Active\",0,IF(COUNTIFS(OverEmp,$C191,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMIFS(OverValue,OverEmp,$C191,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1)),0))","v":0},{"$f":"IF($F191<>\"Active\",0,IF(COUNTIFS(OverEmp,$C191,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMIFS(OverValue,OverEmp,$C191,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C191,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMIFS(OverValue,OverEmp,$C191,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1)),(($BA191/12*$AA191)+(BB191*IF(1-$BC191=0,0,BD191/(1-$BC191))))-IF($F191=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC191,PayEmp,$C191)))","v":0},{"$f":"IF($F191=\"Terminated\",0,IF($AA191=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C191,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMIFS(OverValue,OverEmp,$C191,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA191)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA191,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191))))))","v":0},{"$f":"IF($F191=\"Terminated\",0,IF($AA191=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C191,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMIFS(OverValue,OverEmp,$C191,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA191)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA191,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191))))))","v":0},{"$f":"IF($F191=\"Terminated\",0,IF($AA191=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C191,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMIFS(OverValue,OverEmp,$C191,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA191)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA191,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191))))))","v":0},{"$f":"IF($F191=\"Terminated\",0,IF($AA191=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C191,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMIFS(OverValue,OverEmp,$C191,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA191)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA191,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191))))))","v":0},0,0,{"$f":"IF($F191=\"Terminated\",0,IF($AA191=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C191,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMIFS(OverValue,OverEmp,$C191,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA191)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA191,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191)))))))","v":0},{"$f":"IF($F191=\"Terminated\",0,IF($AA191=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C191,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMIFS(OverValue,OverEmp,$C191,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA191)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA191,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191)))))))","v":0},{"$f":"IF($F191=\"Terminated\",0,IF($AA191=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C191,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMIFS(OverValue,OverEmp,$C191,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA191)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA191,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191)))))))","v":0},{"$f":"IF($F191=\"Terminated\",0,IF($AA191=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C191,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMIFS(OverValue,OverEmp,$C191,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA191)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA191,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC191,PayEmp,$C191)))))))","v":0},0,0,0,{"$f":"IF(OR($B191<=Setup!$E$12,$B191>=Setup!$D$12+1),0,IF($F191<>\"Active\",0,IF($AE191=\"Yes\",$AB191,((YEAR($AC191)*12)+MONTH($AC191))-((YEAR($AD191)*12)+MONTH($AD191)-1))))","v":0},{"$f":"IF(OR($B191<=Setup!$E$12,$B191>=Setup!$D$12+1),0,((YEAR($AC191)*12)+MONTH($AC191))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C191,EmpAll,COLUMN(Emp!$E$4),0)),$AC191,IF(VLOOKUP($C191,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C191,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C191,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C191,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C191,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A191=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C191,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMIFS(OverValue,OverEmp,$C191,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1)),IF(ISNA(VLOOKUP($C191,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG191,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C191,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C191,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C191,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C191,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C191,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F191=\"Terminated\",0,IF($AA191=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C191,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA191*12)+(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB191/3,0))*4)+(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB191/6,0))*2)+(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F191=\"Terminated\",0,IF($AA191=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C191,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA191*12)+(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB191/3,0))*4)+(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB191/6,0))*2)+(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F191=\"Terminated\",0,IF($AA191=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C191,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA191*12)+(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB191/3,0))*4)+(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB191/6,0))*2)+(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F191=\"Terminated\",0,IF($AA191=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C191,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA191*12)+(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB191/3,0))*4)+(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB191/6,0))*2)+(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F191=\"Terminated\",0,IF($AA191=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C191,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA191*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F191=\"Terminated\",0,IF($AA191=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C191,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA191*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F191=\"Terminated\",0,IF($AA191=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C191,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA191*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F191=\"Terminated\",0,IF($AA191=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C191,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC191),MONTH($AC191)+1,1),OverEnd,\">=\"&DATE(YEAR($AC191),MONTH($AC191),1))>0,SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA191*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C191)*(PayDate<=$AC191)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA191*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C191,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C191,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL191),($AR191*$AL191)-$AI191-$AK191,MAX(0,IF($AL191=\"B\",IF($AR191<Setup!$C$32,($AR191*Setup!$D$32)-$AI191-$AK191,(($AR191-VLOOKUP($AR191,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR191,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR191,TaxBracket2,1),0,1,1)-$AI191-$AK191),IF($AR191<Setup!$C$21,($AR191*Setup!$D$21)-$AI191-$AK191,(($AR191-VLOOKUP($AR191,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR191,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR191,TaxBracket1,1),0,1,1)-$AI191-$AK191))))","v":0},{"$f":"IF(ISNUMBER($AL191),($AX191*$AL191)-$AI191-$AK191,MAX(0,IF($AL191=\"B\",IF($AX191<Setup!$C$32,($AX191*Setup!$D$32)-$AI191-$AK191,(($AX191-VLOOKUP($AX191,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX191,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX191,TaxBracket2,1),0,1,1)-$AI191-$AK191),IF($AX191<Setup!$C$21,($AX191*Setup!$D$21)-$AI191-$AK191,(($AX191-VLOOKUP($AX191,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX191,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX191,TaxBracket1,1),0,1,1)-$AI191-$AK191))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A192)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B192,\"yyyy\")&TEXT($B192,\"mm\")&\"-\"&$C192)","v":"-"},{"$f":"IF(ROW($A192)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A192)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A192)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A192)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A192)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A192)-ROW($A$6)-IF(ROW($A192)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A192)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C192,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C192,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C192,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C192,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C192,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C192,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC192),MONTH($AC192)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C192,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC192),MONTH($AC192),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F192<>\"Active\",0,IF(COUNTIFS(OverEmp,$C192,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMIFS(OverValue,OverEmp,$C192,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1)),IF(AND($AC192>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C192)>0),SUMIFS(EmpIncrease,EmpCode,$C192),SUMIFS(EmpSalary,EmpCode,$C192))))","v":0},{"$f":"IF($F192<>\"Active\",0,IF(COUNTIFS(OverEmp,$C192,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMIFS(OverValue,OverEmp,$C192,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1)),0))","v":0},{"$f":"IF($F192<>\"Active\",0,IF(COUNTIFS(OverEmp,$C192,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMIFS(OverValue,OverEmp,$C192,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1)),IF(MONTH(B192)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C192),0)))","v":0},{"$f":"IF($F192<>\"Active\",0,IF(COUNTIFS(OverEmp,$C192,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMIFS(OverValue,OverEmp,$C192,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1)),0))","v":0},{"$f":"IF($F192<>\"Active\",0,IF(COUNTIFS(OverEmp,$C192,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMIFS(OverValue,OverEmp,$C192,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C192,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMIFS(OverValue,OverEmp,$C192,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1)),(($BA192/12*$AA192)+(BB192*IF(1-$BC192=0,0,BD192/(1-$BC192))))-IF($F192=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC192,PayEmp,$C192)))","v":0},{"$f":"IF($F192=\"Terminated\",0,IF($AA192=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C192,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMIFS(OverValue,OverEmp,$C192,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA192)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA192,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192))))))","v":0},{"$f":"IF($F192=\"Terminated\",0,IF($AA192=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C192,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMIFS(OverValue,OverEmp,$C192,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA192)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA192,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192))))))","v":0},{"$f":"IF($F192=\"Terminated\",0,IF($AA192=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C192,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMIFS(OverValue,OverEmp,$C192,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA192)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA192,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192))))))","v":0},{"$f":"IF($F192=\"Terminated\",0,IF($AA192=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C192,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMIFS(OverValue,OverEmp,$C192,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA192)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA192,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192))))))","v":0},0,0,{"$f":"IF($F192=\"Terminated\",0,IF($AA192=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C192,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMIFS(OverValue,OverEmp,$C192,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA192)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA192,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192)))))))","v":0},{"$f":"IF($F192=\"Terminated\",0,IF($AA192=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C192,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMIFS(OverValue,OverEmp,$C192,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA192)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA192,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192)))))))","v":0},{"$f":"IF($F192=\"Terminated\",0,IF($AA192=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C192,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMIFS(OverValue,OverEmp,$C192,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA192)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA192,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192)))))))","v":0},{"$f":"IF($F192=\"Terminated\",0,IF($AA192=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C192,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMIFS(OverValue,OverEmp,$C192,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA192)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA192,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC192,PayEmp,$C192)))))))","v":0},0,0,0,{"$f":"IF(OR($B192<=Setup!$E$12,$B192>=Setup!$D$12+1),0,IF($F192<>\"Active\",0,IF($AE192=\"Yes\",$AB192,((YEAR($AC192)*12)+MONTH($AC192))-((YEAR($AD192)*12)+MONTH($AD192)-1))))","v":0},{"$f":"IF(OR($B192<=Setup!$E$12,$B192>=Setup!$D$12+1),0,((YEAR($AC192)*12)+MONTH($AC192))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C192,EmpAll,COLUMN(Emp!$E$4),0)),$AC192,IF(VLOOKUP($C192,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C192,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C192,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C192,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C192,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A192=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C192,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMIFS(OverValue,OverEmp,$C192,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1)),IF(ISNA(VLOOKUP($C192,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG192,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C192,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C192,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C192,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C192,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C192,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F192=\"Terminated\",0,IF($AA192=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C192,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA192*12)+(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB192/3,0))*4)+(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB192/6,0))*2)+(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F192=\"Terminated\",0,IF($AA192=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C192,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA192*12)+(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB192/3,0))*4)+(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB192/6,0))*2)+(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F192=\"Terminated\",0,IF($AA192=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C192,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA192*12)+(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB192/3,0))*4)+(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB192/6,0))*2)+(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F192=\"Terminated\",0,IF($AA192=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C192,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA192*12)+(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB192/3,0))*4)+(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB192/6,0))*2)+(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F192=\"Terminated\",0,IF($AA192=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C192,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA192*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F192=\"Terminated\",0,IF($AA192=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C192,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA192*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F192=\"Terminated\",0,IF($AA192=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C192,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA192*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F192=\"Terminated\",0,IF($AA192=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C192,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC192),MONTH($AC192)+1,1),OverEnd,\">=\"&DATE(YEAR($AC192),MONTH($AC192),1))>0,SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA192*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C192)*(PayDate<=$AC192)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA192*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C192,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C192,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL192),($AR192*$AL192)-$AI192-$AK192,MAX(0,IF($AL192=\"B\",IF($AR192<Setup!$C$32,($AR192*Setup!$D$32)-$AI192-$AK192,(($AR192-VLOOKUP($AR192,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR192,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR192,TaxBracket2,1),0,1,1)-$AI192-$AK192),IF($AR192<Setup!$C$21,($AR192*Setup!$D$21)-$AI192-$AK192,(($AR192-VLOOKUP($AR192,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR192,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR192,TaxBracket1,1),0,1,1)-$AI192-$AK192))))","v":0},{"$f":"IF(ISNUMBER($AL192),($AX192*$AL192)-$AI192-$AK192,MAX(0,IF($AL192=\"B\",IF($AX192<Setup!$C$32,($AX192*Setup!$D$32)-$AI192-$AK192,(($AX192-VLOOKUP($AX192,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX192,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX192,TaxBracket2,1),0,1,1)-$AI192-$AK192),IF($AX192<Setup!$C$21,($AX192*Setup!$D$21)-$AI192-$AK192,(($AX192-VLOOKUP($AX192,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX192,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX192,TaxBracket1,1),0,1,1)-$AI192-$AK192))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A193)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B193,\"yyyy\")&TEXT($B193,\"mm\")&\"-\"&$C193)","v":"-"},{"$f":"IF(ROW($A193)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A193)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A193)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A193)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A193)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A193)-ROW($A$6)-IF(ROW($A193)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A193)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C193,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C193,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C193,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C193,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C193,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C193,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC193),MONTH($AC193)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C193,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC193),MONTH($AC193),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F193<>\"Active\",0,IF(COUNTIFS(OverEmp,$C193,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMIFS(OverValue,OverEmp,$C193,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1)),IF(AND($AC193>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C193)>0),SUMIFS(EmpIncrease,EmpCode,$C193),SUMIFS(EmpSalary,EmpCode,$C193))))","v":0},{"$f":"IF($F193<>\"Active\",0,IF(COUNTIFS(OverEmp,$C193,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMIFS(OverValue,OverEmp,$C193,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1)),0))","v":0},{"$f":"IF($F193<>\"Active\",0,IF(COUNTIFS(OverEmp,$C193,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMIFS(OverValue,OverEmp,$C193,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1)),IF(MONTH(B193)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C193),0)))","v":0},{"$f":"IF($F193<>\"Active\",0,IF(COUNTIFS(OverEmp,$C193,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMIFS(OverValue,OverEmp,$C193,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1)),0))","v":0},{"$f":"IF($F193<>\"Active\",0,IF(COUNTIFS(OverEmp,$C193,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMIFS(OverValue,OverEmp,$C193,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C193,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMIFS(OverValue,OverEmp,$C193,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1)),(($BA193/12*$AA193)+(BB193*IF(1-$BC193=0,0,BD193/(1-$BC193))))-IF($F193=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC193,PayEmp,$C193)))","v":0},{"$f":"IF($F193=\"Terminated\",0,IF($AA193=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C193,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMIFS(OverValue,OverEmp,$C193,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA193)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA193,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193))))))","v":0},{"$f":"IF($F193=\"Terminated\",0,IF($AA193=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C193,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMIFS(OverValue,OverEmp,$C193,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA193)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA193,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193))))))","v":0},{"$f":"IF($F193=\"Terminated\",0,IF($AA193=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C193,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMIFS(OverValue,OverEmp,$C193,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA193)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA193,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193))))))","v":0},{"$f":"IF($F193=\"Terminated\",0,IF($AA193=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C193,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMIFS(OverValue,OverEmp,$C193,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA193)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA193,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193))))))","v":0},0,0,{"$f":"IF($F193=\"Terminated\",0,IF($AA193=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C193,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMIFS(OverValue,OverEmp,$C193,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA193)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA193,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193)))))))","v":0},{"$f":"IF($F193=\"Terminated\",0,IF($AA193=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C193,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMIFS(OverValue,OverEmp,$C193,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA193)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA193,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193)))))))","v":0},{"$f":"IF($F193=\"Terminated\",0,IF($AA193=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C193,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMIFS(OverValue,OverEmp,$C193,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA193)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA193,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193)))))))","v":0},{"$f":"IF($F193=\"Terminated\",0,IF($AA193=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C193,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMIFS(OverValue,OverEmp,$C193,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA193)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA193,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC193,PayEmp,$C193)))))))","v":0},0,0,0,{"$f":"IF(OR($B193<=Setup!$E$12,$B193>=Setup!$D$12+1),0,IF($F193<>\"Active\",0,IF($AE193=\"Yes\",$AB193,((YEAR($AC193)*12)+MONTH($AC193))-((YEAR($AD193)*12)+MONTH($AD193)-1))))","v":0},{"$f":"IF(OR($B193<=Setup!$E$12,$B193>=Setup!$D$12+1),0,((YEAR($AC193)*12)+MONTH($AC193))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C193,EmpAll,COLUMN(Emp!$E$4),0)),$AC193,IF(VLOOKUP($C193,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C193,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C193,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C193,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C193,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A193=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C193,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMIFS(OverValue,OverEmp,$C193,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1)),IF(ISNA(VLOOKUP($C193,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG193,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C193,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C193,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C193,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C193,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C193,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F193=\"Terminated\",0,IF($AA193=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C193,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA193*12)+(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB193/3,0))*4)+(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB193/6,0))*2)+(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F193=\"Terminated\",0,IF($AA193=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C193,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA193*12)+(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB193/3,0))*4)+(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB193/6,0))*2)+(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F193=\"Terminated\",0,IF($AA193=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C193,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA193*12)+(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB193/3,0))*4)+(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB193/6,0))*2)+(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F193=\"Terminated\",0,IF($AA193=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C193,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA193*12)+(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB193/3,0))*4)+(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB193/6,0))*2)+(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F193=\"Terminated\",0,IF($AA193=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C193,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA193*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F193=\"Terminated\",0,IF($AA193=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C193,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA193*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F193=\"Terminated\",0,IF($AA193=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C193,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA193*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F193=\"Terminated\",0,IF($AA193=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C193,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC193),MONTH($AC193)+1,1),OverEnd,\">=\"&DATE(YEAR($AC193),MONTH($AC193),1))>0,SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA193*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C193)*(PayDate<=$AC193)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA193*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C193,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C193,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL193),($AR193*$AL193)-$AI193-$AK193,MAX(0,IF($AL193=\"B\",IF($AR193<Setup!$C$32,($AR193*Setup!$D$32)-$AI193-$AK193,(($AR193-VLOOKUP($AR193,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR193,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR193,TaxBracket2,1),0,1,1)-$AI193-$AK193),IF($AR193<Setup!$C$21,($AR193*Setup!$D$21)-$AI193-$AK193,(($AR193-VLOOKUP($AR193,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR193,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR193,TaxBracket1,1),0,1,1)-$AI193-$AK193))))","v":0},{"$f":"IF(ISNUMBER($AL193),($AX193*$AL193)-$AI193-$AK193,MAX(0,IF($AL193=\"B\",IF($AX193<Setup!$C$32,($AX193*Setup!$D$32)-$AI193-$AK193,(($AX193-VLOOKUP($AX193,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX193,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX193,TaxBracket2,1),0,1,1)-$AI193-$AK193),IF($AX193<Setup!$C$21,($AX193*Setup!$D$21)-$AI193-$AK193,(($AX193-VLOOKUP($AX193,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX193,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX193,TaxBracket1,1),0,1,1)-$AI193-$AK193))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A194)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B194,\"yyyy\")&TEXT($B194,\"mm\")&\"-\"&$C194)","v":"-"},{"$f":"IF(ROW($A194)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A194)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A194)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A194)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A194)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A194)-ROW($A$6)-IF(ROW($A194)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A194)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C194,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C194,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C194,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C194,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C194,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C194,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC194),MONTH($AC194)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C194,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC194),MONTH($AC194),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F194<>\"Active\",0,IF(COUNTIFS(OverEmp,$C194,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMIFS(OverValue,OverEmp,$C194,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1)),IF(AND($AC194>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C194)>0),SUMIFS(EmpIncrease,EmpCode,$C194),SUMIFS(EmpSalary,EmpCode,$C194))))","v":0},{"$f":"IF($F194<>\"Active\",0,IF(COUNTIFS(OverEmp,$C194,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMIFS(OverValue,OverEmp,$C194,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1)),0))","v":0},{"$f":"IF($F194<>\"Active\",0,IF(COUNTIFS(OverEmp,$C194,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMIFS(OverValue,OverEmp,$C194,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1)),IF(MONTH(B194)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C194),0)))","v":0},{"$f":"IF($F194<>\"Active\",0,IF(COUNTIFS(OverEmp,$C194,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMIFS(OverValue,OverEmp,$C194,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1)),0))","v":0},{"$f":"IF($F194<>\"Active\",0,IF(COUNTIFS(OverEmp,$C194,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMIFS(OverValue,OverEmp,$C194,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C194,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMIFS(OverValue,OverEmp,$C194,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1)),(($BA194/12*$AA194)+(BB194*IF(1-$BC194=0,0,BD194/(1-$BC194))))-IF($F194=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC194,PayEmp,$C194)))","v":0},{"$f":"IF($F194=\"Terminated\",0,IF($AA194=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C194,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMIFS(OverValue,OverEmp,$C194,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA194)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA194,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194))))))","v":0},{"$f":"IF($F194=\"Terminated\",0,IF($AA194=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C194,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMIFS(OverValue,OverEmp,$C194,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA194)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA194,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194))))))","v":0},{"$f":"IF($F194=\"Terminated\",0,IF($AA194=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C194,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMIFS(OverValue,OverEmp,$C194,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA194)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA194,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194))))))","v":0},{"$f":"IF($F194=\"Terminated\",0,IF($AA194=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C194,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMIFS(OverValue,OverEmp,$C194,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA194)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA194,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194))))))","v":0},0,0,{"$f":"IF($F194=\"Terminated\",0,IF($AA194=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C194,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMIFS(OverValue,OverEmp,$C194,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA194)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA194,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194)))))))","v":0},{"$f":"IF($F194=\"Terminated\",0,IF($AA194=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C194,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMIFS(OverValue,OverEmp,$C194,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA194)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA194,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194)))))))","v":0},{"$f":"IF($F194=\"Terminated\",0,IF($AA194=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C194,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMIFS(OverValue,OverEmp,$C194,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA194)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA194,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194)))))))","v":0},{"$f":"IF($F194=\"Terminated\",0,IF($AA194=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C194,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMIFS(OverValue,OverEmp,$C194,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA194)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA194,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC194,PayEmp,$C194)))))))","v":0},0,0,0,{"$f":"IF(OR($B194<=Setup!$E$12,$B194>=Setup!$D$12+1),0,IF($F194<>\"Active\",0,IF($AE194=\"Yes\",$AB194,((YEAR($AC194)*12)+MONTH($AC194))-((YEAR($AD194)*12)+MONTH($AD194)-1))))","v":0},{"$f":"IF(OR($B194<=Setup!$E$12,$B194>=Setup!$D$12+1),0,((YEAR($AC194)*12)+MONTH($AC194))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C194,EmpAll,COLUMN(Emp!$E$4),0)),$AC194,IF(VLOOKUP($C194,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C194,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C194,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C194,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C194,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A194=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C194,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMIFS(OverValue,OverEmp,$C194,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1)),IF(ISNA(VLOOKUP($C194,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG194,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C194,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C194,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C194,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C194,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C194,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F194=\"Terminated\",0,IF($AA194=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C194,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA194*12)+(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB194/3,0))*4)+(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB194/6,0))*2)+(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F194=\"Terminated\",0,IF($AA194=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C194,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA194*12)+(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB194/3,0))*4)+(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB194/6,0))*2)+(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F194=\"Terminated\",0,IF($AA194=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C194,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA194*12)+(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB194/3,0))*4)+(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB194/6,0))*2)+(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F194=\"Terminated\",0,IF($AA194=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C194,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA194*12)+(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB194/3,0))*4)+(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB194/6,0))*2)+(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F194=\"Terminated\",0,IF($AA194=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C194,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA194*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F194=\"Terminated\",0,IF($AA194=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C194,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA194*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F194=\"Terminated\",0,IF($AA194=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C194,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA194*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F194=\"Terminated\",0,IF($AA194=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C194,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC194),MONTH($AC194)+1,1),OverEnd,\">=\"&DATE(YEAR($AC194),MONTH($AC194),1))>0,SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA194*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C194)*(PayDate<=$AC194)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA194*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C194,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C194,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL194),($AR194*$AL194)-$AI194-$AK194,MAX(0,IF($AL194=\"B\",IF($AR194<Setup!$C$32,($AR194*Setup!$D$32)-$AI194-$AK194,(($AR194-VLOOKUP($AR194,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR194,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR194,TaxBracket2,1),0,1,1)-$AI194-$AK194),IF($AR194<Setup!$C$21,($AR194*Setup!$D$21)-$AI194-$AK194,(($AR194-VLOOKUP($AR194,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR194,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR194,TaxBracket1,1),0,1,1)-$AI194-$AK194))))","v":0},{"$f":"IF(ISNUMBER($AL194),($AX194*$AL194)-$AI194-$AK194,MAX(0,IF($AL194=\"B\",IF($AX194<Setup!$C$32,($AX194*Setup!$D$32)-$AI194-$AK194,(($AX194-VLOOKUP($AX194,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX194,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX194,TaxBracket2,1),0,1,1)-$AI194-$AK194),IF($AX194<Setup!$C$21,($AX194*Setup!$D$21)-$AI194-$AK194,(($AX194-VLOOKUP($AX194,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX194,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX194,TaxBracket1,1),0,1,1)-$AI194-$AK194))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A195)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B195,\"yyyy\")&TEXT($B195,\"mm\")&\"-\"&$C195)","v":"-"},{"$f":"IF(ROW($A195)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A195)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A195)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A195)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A195)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A195)-ROW($A$6)-IF(ROW($A195)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A195)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C195,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C195,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C195,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C195,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C195,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C195,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC195),MONTH($AC195)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C195,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC195),MONTH($AC195),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F195<>\"Active\",0,IF(COUNTIFS(OverEmp,$C195,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMIFS(OverValue,OverEmp,$C195,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1)),IF(AND($AC195>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C195)>0),SUMIFS(EmpIncrease,EmpCode,$C195),SUMIFS(EmpSalary,EmpCode,$C195))))","v":0},{"$f":"IF($F195<>\"Active\",0,IF(COUNTIFS(OverEmp,$C195,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMIFS(OverValue,OverEmp,$C195,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1)),0))","v":0},{"$f":"IF($F195<>\"Active\",0,IF(COUNTIFS(OverEmp,$C195,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMIFS(OverValue,OverEmp,$C195,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1)),IF(MONTH(B195)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C195),0)))","v":0},{"$f":"IF($F195<>\"Active\",0,IF(COUNTIFS(OverEmp,$C195,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMIFS(OverValue,OverEmp,$C195,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1)),0))","v":0},{"$f":"IF($F195<>\"Active\",0,IF(COUNTIFS(OverEmp,$C195,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMIFS(OverValue,OverEmp,$C195,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1)),0))","v":0},{"$f":"IF($AA195=0,0,SUM(OFFSET($G195,0,0,1,COLUMN($L$6)-COLUMN($G$6))))","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C195,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMIFS(OverValue,OverEmp,$C195,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1)),(($BA195/12*$AA195)+(BB195*IF(1-$BC195=0,0,BD195/(1-$BC195))))-IF($F195=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC195,PayEmp,$C195)))","v":0},{"$f":"IF($F195=\"Terminated\",0,IF($AA195=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C195,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMIFS(OverValue,OverEmp,$C195,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA195)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA195,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195))))))","v":0},{"$f":"IF($F195=\"Terminated\",0,IF($AA195=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C195,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMIFS(OverValue,OverEmp,$C195,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA195)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA195,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195))))))","v":0},{"$f":"IF($F195=\"Terminated\",0,IF($AA195=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C195,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMIFS(OverValue,OverEmp,$C195,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA195)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA195,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195))))))","v":0},{"$f":"IF($F195=\"Terminated\",0,IF($AA195=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C195,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMIFS(OverValue,OverEmp,$C195,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA195)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA195,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195))))))","v":0},{"$f":"SUM(OFFSET(M195,0,0,1,COLUMN($R$6)-COLUMN($M$6)))","v":0},{"$f":"ROUND(SUM(L195,-R195),2)","v":0},{"$f":"IF($F195=\"Terminated\",0,IF($AA195=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C195,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMIFS(OverValue,OverEmp,$C195,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA195)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA195,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195)))))))","v":0},{"$f":"IF($F195=\"Terminated\",0,IF($AA195=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C195,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMIFS(OverValue,OverEmp,$C195,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA195)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA195,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195)))))))","v":0},{"$f":"IF($F195=\"Terminated\",0,IF($AA195=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C195,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMIFS(OverValue,OverEmp,$C195,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA195)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA195,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195)))))))","v":0},{"$f":"IF($F195=\"Terminated\",0,IF($AA195=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C195,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMIFS(OverValue,OverEmp,$C195,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA195)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA195,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC195,PayEmp,$C195)))))))","v":0},{"$f":"SUM(OFFSET($T195,0,0,1,COLUMN($X$6)-COLUMN($T$7)))","v":0},{"$f":"L195+X195","v":0},{"$f":"ROUND(SUM(R195,X195),2)","v":0},{"$f":"IF(OR($B195<=Setup!$E$12,$B195>=Setup!$D$12+1),0,IF($F195<>\"Active\",0,IF($AE195=\"Yes\",$AB195,((YEAR($AC195)*12)+MONTH($AC195))-((YEAR($AD195)*12)+MONTH($AD195)-1))))","v":0},{"$f":"IF(OR($B195<=Setup!$E$12,$B195>=Setup!$D$12+1),0,((YEAR($AC195)*12)+MONTH($AC195))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},{"$f":"DATE(YEAR($B195),MONTH($B195),DAY($B195))","v":45351},{"$f":"IF(ISNA(VLOOKUP($C195,EmpAll,COLUMN(Emp!$E$4),0)),$AC195,IF(VLOOKUP($C195,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C195,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C195,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C195,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C195,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A195=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C195,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMIFS(OverValue,OverEmp,$C195,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1)),IF(ISNA(VLOOKUP($C195,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG195,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C195,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C195,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},{"$f":"IF(ISNA(VLOOKUP($AJ195,RebateList,4,0)),VLOOKUP(\"A\",RebateList,3,0),VLOOKUP($AJ195,RebateList,4,0))","v":17235},{"$f":"IF(ISNA(VLOOKUP($C195,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C195,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C195,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F195=\"Terminated\",0,IF($AA195=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C195,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA195*12)+(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB195/3,0))*4)+(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB195/6,0))*2)+(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F195=\"Terminated\",0,IF($AA195=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C195,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA195*12)+(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB195/3,0))*4)+(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB195/6,0))*2)+(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F195=\"Terminated\",0,IF($AA195=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C195,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA195*12)+(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB195/3,0))*4)+(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB195/6,0))*2)+(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F195=\"Terminated\",0,IF($AA195=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C195,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA195*12)+(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB195/3,0))*4)+(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB195/6,0))*2)+(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},{"$f":"$AM195+SUM(OFFSET($AM195,0,1,1,COLUMN($AR$2)-COLUMN($AM$2)-1))","v":0},0,{"$f":"-IF($F195=\"Terminated\",0,IF($AA195=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C195,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA195*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F195=\"Terminated\",0,IF($AA195=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C195,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA195*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F195=\"Terminated\",0,IF($AA195=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C195,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA195*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F195=\"Terminated\",0,IF($AA195=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C195,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC195),MONTH($AC195)+1,1),OverEnd,\">=\"&DATE(YEAR($AC195),MONTH($AC195),1))>0,SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA195*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C195)*(PayDate<=$AC195)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA195*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C195,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C195,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},{"$f":"$AS195+SUM(OFFSET($AT195,0,0,1,COLUMN($AX$2)-COLUMN($AT$2)))","v":0},{"$f":"AR195-AX195","v":0},{"$f":"IF(ISNUMBER($AL195),($AR195*$AL195)-$AI195-$AK195,MAX(0,IF($AL195=\"B\",IF($AR195<Setup!$C$32,($AR195*Setup!$D$32)-$AI195-$AK195,(($AR195-VLOOKUP($AR195,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR195,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR195,TaxBracket2,1),0,1,1)-$AI195-$AK195),IF($AR195<Setup!$C$21,($AR195*Setup!$D$21)-$AI195-$AK195,(($AR195-VLOOKUP($AR195,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR195,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR195,TaxBracket1,1),0,1,1)-$AI195-$AK195))))","v":0},{"$f":"IF(ISNUMBER($AL195),($AX195*$AL195)-$AI195-$AK195,MAX(0,IF($AL195=\"B\",IF($AX195<Setup!$C$32,($AX195*Setup!$D$32)-$AI195-$AK195,(($AX195-VLOOKUP($AX195,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX195,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX195,TaxBracket2,1),0,1,1)-$AI195-$AK195),IF($AX195<Setup!$C$21,($AX195*Setup!$D$21)-$AI195-$AK195,(($AX195-VLOOKUP($AX195,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX195,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX195,TaxBracket1,1),0,1,1)-$AI195-$AK195))))","v":0},{"$f":"AZ195-BA195","v":0},0,0,0]
[{"$f":"IF(ROW($A196)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B196,\"yyyy\")&TEXT($B196,\"mm\")&\"-\"&$C196)","v":"-"},{"$f":"IF(ROW($A196)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A196)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A196)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A196)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A196)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A196)-ROW($A$6)-IF(ROW($A196)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A196)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C196,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C196,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C196,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C196,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C196,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C196,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC196),MONTH($AC196)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C196,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC196),MONTH($AC196),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F196<>\"Active\",0,IF(COUNTIFS(OverEmp,$C196,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMIFS(OverValue,OverEmp,$C196,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1)),IF(AND($AC196>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C196)>0),SUMIFS(EmpIncrease,EmpCode,$C196),SUMIFS(EmpSalary,EmpCode,$C196))))","v":0},{"$f":"IF($F196<>\"Active\",0,IF(COUNTIFS(OverEmp,$C196,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMIFS(OverValue,OverEmp,$C196,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1)),0))","v":0},{"$f":"IF($F196<>\"Active\",0,IF(COUNTIFS(OverEmp,$C196,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMIFS(OverValue,OverEmp,$C196,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1)),IF(MONTH(B196)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C196),0)))","v":0},{"$f":"IF($F196<>\"Active\",0,IF(COUNTIFS(OverEmp,$C196,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMIFS(OverValue,OverEmp,$C196,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1)),0))","v":0},{"$f":"IF($F196<>\"Active\",0,IF(COUNTIFS(OverEmp,$C196,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMIFS(OverValue,OverEmp,$C196,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C196,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMIFS(OverValue,OverEmp,$C196,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1)),(($BA196/12*$AA196)+(BB196*IF(1-$BC196=0,0,BD196/(1-$BC196))))-IF($F196=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC196,PayEmp,$C196)))","v":0},{"$f":"IF($F196=\"Terminated\",0,IF($AA196=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C196,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMIFS(OverValue,OverEmp,$C196,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA196)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA196,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196))))))","v":0},{"$f":"IF($F196=\"Terminated\",0,IF($AA196=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C196,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMIFS(OverValue,OverEmp,$C196,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA196)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA196,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196))))))","v":0},{"$f":"IF($F196=\"Terminated\",0,IF($AA196=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C196,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMIFS(OverValue,OverEmp,$C196,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA196)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA196,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196))))))","v":0},{"$f":"IF($F196=\"Terminated\",0,IF($AA196=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C196,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMIFS(OverValue,OverEmp,$C196,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA196)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA196,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196))))))","v":0},0,0,{"$f":"IF($F196=\"Terminated\",0,IF($AA196=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C196,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMIFS(OverValue,OverEmp,$C196,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA196)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA196,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196)))))))","v":0},{"$f":"IF($F196=\"Terminated\",0,IF($AA196=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C196,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMIFS(OverValue,OverEmp,$C196,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA196)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA196,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196)))))))","v":0},{"$f":"IF($F196=\"Terminated\",0,IF($AA196=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C196,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMIFS(OverValue,OverEmp,$C196,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA196)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA196,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196)))))))","v":0},{"$f":"IF($F196=\"Terminated\",0,IF($AA196=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C196,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMIFS(OverValue,OverEmp,$C196,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA196)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA196,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC196,PayEmp,$C196)))))))","v":0},0,0,0,{"$f":"IF(OR($B196<=Setup!$E$12,$B196>=Setup!$D$12+1),0,IF($F196<>\"Active\",0,IF($AE196=\"Yes\",$AB196,((YEAR($AC196)*12)+MONTH($AC196))-((YEAR($AD196)*12)+MONTH($AD196)-1))))","v":0},{"$f":"IF(OR($B196<=Setup!$E$12,$B196>=Setup!$D$12+1),0,((YEAR($AC196)*12)+MONTH($AC196))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C196,EmpAll,COLUMN(Emp!$E$4),0)),$AC196,IF(VLOOKUP($C196,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C196,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C196,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C196,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C196,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A196=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C196,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMIFS(OverValue,OverEmp,$C196,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1)),IF(ISNA(VLOOKUP($C196,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG196,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C196,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C196,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C196,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C196,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C196,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F196=\"Terminated\",0,IF($AA196=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C196,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA196*12)+(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB196/3,0))*4)+(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB196/6,0))*2)+(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F196=\"Terminated\",0,IF($AA196=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C196,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA196*12)+(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB196/3,0))*4)+(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB196/6,0))*2)+(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F196=\"Terminated\",0,IF($AA196=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C196,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA196*12)+(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB196/3,0))*4)+(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB196/6,0))*2)+(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F196=\"Terminated\",0,IF($AA196=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C196,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA196*12)+(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB196/3,0))*4)+(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB196/6,0))*2)+(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F196=\"Terminated\",0,IF($AA196=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C196,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA196*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F196=\"Terminated\",0,IF($AA196=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C196,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA196*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F196=\"Terminated\",0,IF($AA196=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C196,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA196*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F196=\"Terminated\",0,IF($AA196=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C196,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC196),MONTH($AC196)+1,1),OverEnd,\">=\"&DATE(YEAR($AC196),MONTH($AC196),1))>0,SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA196*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C196)*(PayDate<=$AC196)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA196*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C196,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C196,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL196),($AR196*$AL196)-$AI196-$AK196,MAX(0,IF($AL196=\"B\",IF($AR196<Setup!$C$32,($AR196*Setup!$D$32)-$AI196-$AK196,(($AR196-VLOOKUP($AR196,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR196,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR196,TaxBracket2,1),0,1,1)-$AI196-$AK196),IF($AR196<Setup!$C$21,($AR196*Setup!$D$21)-$AI196-$AK196,(($AR196-VLOOKUP($AR196,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR196,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR196,TaxBracket1,1),0,1,1)-$AI196-$AK196))))","v":0},{"$f":"IF(ISNUMBER($AL196),($AX196*$AL196)-$AI196-$AK196,MAX(0,IF($AL196=\"B\",IF($AX196<Setup!$C$32,($AX196*Setup!$D$32)-$AI196-$AK196,(($AX196-VLOOKUP($AX196,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX196,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX196,TaxBracket2,1),0,1,1)-$AI196-$AK196),IF($AX196<Setup!$C$21,($AX196*Setup!$D$21)-$AI196-$AK196,(($AX196-VLOOKUP($AX196,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX196,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX196,TaxBracket1,1),0,1,1)-$AI196-$AK196))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A197)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B197,\"yyyy\")&TEXT($B197,\"mm\")&\"-\"&$C197)","v":"-"},{"$f":"IF(ROW($A197)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A197)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A197)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A197)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A197)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A197)-ROW($A$6)-IF(ROW($A197)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A197)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C197,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C197,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C197,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C197,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C197,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C197,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC197),MONTH($AC197)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C197,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC197),MONTH($AC197),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F197<>\"Active\",0,IF(COUNTIFS(OverEmp,$C197,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMIFS(OverValue,OverEmp,$C197,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1)),IF(AND($AC197>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C197)>0),SUMIFS(EmpIncrease,EmpCode,$C197),SUMIFS(EmpSalary,EmpCode,$C197))))","v":0},{"$f":"IF($F197<>\"Active\",0,IF(COUNTIFS(OverEmp,$C197,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMIFS(OverValue,OverEmp,$C197,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1)),0))","v":0},{"$f":"IF($F197<>\"Active\",0,IF(COUNTIFS(OverEmp,$C197,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMIFS(OverValue,OverEmp,$C197,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1)),IF(MONTH(B197)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C197),0)))","v":0},{"$f":"IF($F197<>\"Active\",0,IF(COUNTIFS(OverEmp,$C197,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMIFS(OverValue,OverEmp,$C197,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1)),0))","v":0},{"$f":"IF($F197<>\"Active\",0,IF(COUNTIFS(OverEmp,$C197,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMIFS(OverValue,OverEmp,$C197,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C197,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMIFS(OverValue,OverEmp,$C197,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1)),(($BA197/12*$AA197)+(BB197*IF(1-$BC197=0,0,BD197/(1-$BC197))))-IF($F197=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC197,PayEmp,$C197)))","v":0},{"$f":"IF($F197=\"Terminated\",0,IF($AA197=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C197,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMIFS(OverValue,OverEmp,$C197,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA197)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA197,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197))))))","v":0},{"$f":"IF($F197=\"Terminated\",0,IF($AA197=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C197,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMIFS(OverValue,OverEmp,$C197,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA197)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA197,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197))))))","v":0},{"$f":"IF($F197=\"Terminated\",0,IF($AA197=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C197,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMIFS(OverValue,OverEmp,$C197,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA197)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA197,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197))))))","v":0},{"$f":"IF($F197=\"Terminated\",0,IF($AA197=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C197,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMIFS(OverValue,OverEmp,$C197,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA197)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA197,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197))))))","v":0},0,0,{"$f":"IF($F197=\"Terminated\",0,IF($AA197=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C197,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMIFS(OverValue,OverEmp,$C197,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA197)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA197,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197)))))))","v":0},{"$f":"IF($F197=\"Terminated\",0,IF($AA197=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C197,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMIFS(OverValue,OverEmp,$C197,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA197)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA197,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197)))))))","v":0},{"$f":"IF($F197=\"Terminated\",0,IF($AA197=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C197,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMIFS(OverValue,OverEmp,$C197,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA197)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA197,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197)))))))","v":0},{"$f":"IF($F197=\"Terminated\",0,IF($AA197=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C197,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMIFS(OverValue,OverEmp,$C197,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA197)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA197,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC197,PayEmp,$C197)))))))","v":0},0,0,0,{"$f":"IF(OR($B197<=Setup!$E$12,$B197>=Setup!$D$12+1),0,IF($F197<>\"Active\",0,IF($AE197=\"Yes\",$AB197,((YEAR($AC197)*12)+MONTH($AC197))-((YEAR($AD197)*12)+MONTH($AD197)-1))))","v":0},{"$f":"IF(OR($B197<=Setup!$E$12,$B197>=Setup!$D$12+1),0,((YEAR($AC197)*12)+MONTH($AC197))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C197,EmpAll,COLUMN(Emp!$E$4),0)),$AC197,IF(VLOOKUP($C197,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C197,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C197,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C197,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C197,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A197=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C197,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMIFS(OverValue,OverEmp,$C197,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1)),IF(ISNA(VLOOKUP($C197,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG197,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C197,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C197,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C197,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C197,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C197,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F197=\"Terminated\",0,IF($AA197=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C197,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA197*12)+(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB197/3,0))*4)+(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB197/6,0))*2)+(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F197=\"Terminated\",0,IF($AA197=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C197,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA197*12)+(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB197/3,0))*4)+(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB197/6,0))*2)+(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F197=\"Terminated\",0,IF($AA197=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C197,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA197*12)+(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB197/3,0))*4)+(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB197/6,0))*2)+(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F197=\"Terminated\",0,IF($AA197=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C197,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA197*12)+(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB197/3,0))*4)+(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB197/6,0))*2)+(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F197=\"Terminated\",0,IF($AA197=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C197,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA197*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F197=\"Terminated\",0,IF($AA197=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C197,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA197*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F197=\"Terminated\",0,IF($AA197=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C197,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA197*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F197=\"Terminated\",0,IF($AA197=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C197,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC197),MONTH($AC197)+1,1),OverEnd,\">=\"&DATE(YEAR($AC197),MONTH($AC197),1))>0,SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA197*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C197)*(PayDate<=$AC197)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA197*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C197,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C197,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL197),($AR197*$AL197)-$AI197-$AK197,MAX(0,IF($AL197=\"B\",IF($AR197<Setup!$C$32,($AR197*Setup!$D$32)-$AI197-$AK197,(($AR197-VLOOKUP($AR197,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR197,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR197,TaxBracket2,1),0,1,1)-$AI197-$AK197),IF($AR197<Setup!$C$21,($AR197*Setup!$D$21)-$AI197-$AK197,(($AR197-VLOOKUP($AR197,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR197,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR197,TaxBracket1,1),0,1,1)-$AI197-$AK197))))","v":0},{"$f":"IF(ISNUMBER($AL197),($AX197*$AL197)-$AI197-$AK197,MAX(0,IF($AL197=\"B\",IF($AX197<Setup!$C$32,($AX197*Setup!$D$32)-$AI197-$AK197,(($AX197-VLOOKUP($AX197,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX197,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX197,TaxBracket2,1),0,1,1)-$AI197-$AK197),IF($AX197<Setup!$C$21,($AX197*Setup!$D$21)-$AI197-$AK197,(($AX197-VLOOKUP($AX197,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX197,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX197,TaxBracket1,1),0,1,1)-$AI197-$AK197))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A198)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B198,\"yyyy\")&TEXT($B198,\"mm\")&\"-\"&$C198)","v":"-"},{"$f":"IF(ROW($A198)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A198)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A198)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A198)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A198)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A198)-ROW($A$6)-IF(ROW($A198)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A198)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C198,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C198,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C198,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C198,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C198,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C198,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC198),MONTH($AC198)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C198,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC198),MONTH($AC198),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F198<>\"Active\",0,IF(COUNTIFS(OverEmp,$C198,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMIFS(OverValue,OverEmp,$C198,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1)),IF(AND($AC198>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C198)>0),SUMIFS(EmpIncrease,EmpCode,$C198),SUMIFS(EmpSalary,EmpCode,$C198))))","v":0},{"$f":"IF($F198<>\"Active\",0,IF(COUNTIFS(OverEmp,$C198,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMIFS(OverValue,OverEmp,$C198,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1)),0))","v":0},{"$f":"IF($F198<>\"Active\",0,IF(COUNTIFS(OverEmp,$C198,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMIFS(OverValue,OverEmp,$C198,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1)),IF(MONTH(B198)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C198),0)))","v":0},{"$f":"IF($F198<>\"Active\",0,IF(COUNTIFS(OverEmp,$C198,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMIFS(OverValue,OverEmp,$C198,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1)),0))","v":0},{"$f":"IF($F198<>\"Active\",0,IF(COUNTIFS(OverEmp,$C198,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMIFS(OverValue,OverEmp,$C198,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1)),0))","v":0},{"$f":"IF($AA198=0,0,SUM(OFFSET($G198,0,0,1,COLUMN($L$6)-COLUMN($G$6))))","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C198,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMIFS(OverValue,OverEmp,$C198,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1)),(($BA198/12*$AA198)+(BB198*IF(1-$BC198=0,0,BD198/(1-$BC198))))-IF($F198=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC198,PayEmp,$C198)))","v":0},{"$f":"IF($F198=\"Terminated\",0,IF($AA198=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C198,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMIFS(OverValue,OverEmp,$C198,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA198)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA198,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198))))))","v":0},{"$f":"IF($F198=\"Terminated\",0,IF($AA198=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C198,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMIFS(OverValue,OverEmp,$C198,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA198)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA198,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198))))))","v":0},{"$f":"IF($F198=\"Terminated\",0,IF($AA198=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C198,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMIFS(OverValue,OverEmp,$C198,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA198)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA198,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198))))))","v":0},{"$f":"IF($F198=\"Terminated\",0,IF($AA198=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C198,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMIFS(OverValue,OverEmp,$C198,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA198)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA198,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198))))))","v":0},{"$f":"SUM(OFFSET(M198,0,0,1,COLUMN($R$6)-COLUMN($M$6)))","v":0},{"$f":"ROUND(SUM(L198,-R198),2)","v":0},{"$f":"IF($F198=\"Terminated\",0,IF($AA198=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C198,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMIFS(OverValue,OverEmp,$C198,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA198)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA198,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198)))))))","v":0},{"$f":"IF($F198=\"Terminated\",0,IF($AA198=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C198,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMIFS(OverValue,OverEmp,$C198,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA198)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA198,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198)))))))","v":0},{"$f":"IF($F198=\"Terminated\",0,IF($AA198=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C198,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMIFS(OverValue,OverEmp,$C198,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA198)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA198,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198)))))))","v":0},{"$f":"IF($F198=\"Terminated\",0,IF($AA198=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C198,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMIFS(OverValue,OverEmp,$C198,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA198)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA198,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC198,PayEmp,$C198)))))))","v":0},{"$f":"SUM(OFFSET($T198,0,0,1,COLUMN($X$6)-COLUMN($T$7)))","v":0},{"$f":"L198+X198","v":0},{"$f":"ROUND(SUM(R198,X198),2)","v":0},{"$f":"IF(OR($B198<=Setup!$E$12,$B198>=Setup!$D$12+1),0,IF($F198<>\"Active\",0,IF($AE198=\"Yes\",$AB198,((YEAR($AC198)*12)+MONTH($AC198))-((YEAR($AD198)*12)+MONTH($AD198)-1))))","v":0},{"$f":"IF(OR($B198<=Setup!$E$12,$B198>=Setup!$D$12+1),0,((YEAR($AC198)*12)+MONTH($AC198))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},{"$f":"DATE(YEAR($B198),MONTH($B198),DAY($B198))","v":45351},{"$f":"IF(ISNA(VLOOKUP($C198,EmpAll,COLUMN(Emp!$E$4),0)),$AC198,IF(VLOOKUP($C198,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C198,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C198,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C198,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C198,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A198=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C198,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMIFS(OverValue,OverEmp,$C198,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1)),IF(ISNA(VLOOKUP($C198,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG198,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C198,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C198,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C198,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C198,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C198,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F198=\"Terminated\",0,IF($AA198=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C198,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA198*12)+(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB198/3,0))*4)+(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB198/6,0))*2)+(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F198=\"Terminated\",0,IF($AA198=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C198,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA198*12)+(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB198/3,0))*4)+(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB198/6,0))*2)+(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F198=\"Terminated\",0,IF($AA198=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C198,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA198*12)+(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB198/3,0))*4)+(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB198/6,0))*2)+(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F198=\"Terminated\",0,IF($AA198=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C198,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA198*12)+(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB198/3,0))*4)+(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB198/6,0))*2)+(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},{"$f":"$AM198+SUM(OFFSET($AM198,0,1,1,COLUMN($AR$2)-COLUMN($AM$2)-1))","v":0},0,{"$f":"-IF($F198=\"Terminated\",0,IF($AA198=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C198,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA198*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F198=\"Terminated\",0,IF($AA198=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C198,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA198*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F198=\"Terminated\",0,IF($AA198=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C198,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA198*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F198=\"Terminated\",0,IF($AA198=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C198,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC198),MONTH($AC198)+1,1),OverEnd,\">=\"&DATE(YEAR($AC198),MONTH($AC198),1))>0,SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA198*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C198)*(PayDate<=$AC198)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA198*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C198,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C198,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},{"$f":"$AS198+SUM(OFFSET($AT198,0,0,1,COLUMN($AX$2)-COLUMN($AT$2)))","v":0},{"$f":"AR198-AX198","v":0},{"$f":"IF(ISNUMBER($AL198),($AR198*$AL198)-$AI198-$AK198,MAX(0,IF($AL198=\"B\",IF($AR198<Setup!$C$32,($AR198*Setup!$D$32)-$AI198-$AK198,(($AR198-VLOOKUP($AR198,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR198,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR198,TaxBracket2,1),0,1,1)-$AI198-$AK198),IF($AR198<Setup!$C$21,($AR198*Setup!$D$21)-$AI198-$AK198,(($AR198-VLOOKUP($AR198,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR198,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR198,TaxBracket1,1),0,1,1)-$AI198-$AK198))))","v":0},{"$f":"IF(ISNUMBER($AL198),($AX198*$AL198)-$AI198-$AK198,MAX(0,IF($AL198=\"B\",IF($AX198<Setup!$C$32,($AX198*Setup!$D$32)-$AI198-$AK198,(($AX198-VLOOKUP($AX198,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX198,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX198,TaxBracket2,1),0,1,1)-$AI198-$AK198),IF($AX198<Setup!$C$21,($AX198*Setup!$D$21)-$AI198-$AK198,(($AX198-VLOOKUP($AX198,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX198,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX198,TaxBracket1,1),0,1,1)-$AI198-$AK198))))","v":0},{"$f":"AZ198-BA198","v":0},0,0,0]
[{"$f":"IF(ROW($A199)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B199,\"yyyy\")&TEXT($B199,\"mm\")&\"-\"&$C199)","v":"-"},{"$f":"IF(ROW($A199)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A199)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A199)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A199)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A199)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A199)-ROW($A$6)-IF(ROW($A199)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A199)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C199,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C199,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C199,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C199,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C199,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C199,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC199),MONTH($AC199)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C199,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC199),MONTH($AC199),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F199<>\"Active\",0,IF(COUNTIFS(OverEmp,$C199,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMIFS(OverValue,OverEmp,$C199,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1)),IF(AND($AC199>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C199)>0),SUMIFS(EmpIncrease,EmpCode,$C199),SUMIFS(EmpSalary,EmpCode,$C199))))","v":0},{"$f":"IF($F199<>\"Active\",0,IF(COUNTIFS(OverEmp,$C199,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMIFS(OverValue,OverEmp,$C199,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1)),0))","v":0},{"$f":"IF($F199<>\"Active\",0,IF(COUNTIFS(OverEmp,$C199,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMIFS(OverValue,OverEmp,$C199,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1)),IF(MONTH(B199)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C199),0)))","v":0},{"$f":"IF($F199<>\"Active\",0,IF(COUNTIFS(OverEmp,$C199,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMIFS(OverValue,OverEmp,$C199,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1)),0))","v":0},{"$f":"IF($F199<>\"Active\",0,IF(COUNTIFS(OverEmp,$C199,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMIFS(OverValue,OverEmp,$C199,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1)),0))","v":0},{"$f":"IF($AA199=0,0,SUM(OFFSET($G199,0,0,1,COLUMN($L$6)-COLUMN($G$6))))","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C199,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMIFS(OverValue,OverEmp,$C199,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1)),(($BA199/12*$AA199)+(BB199*IF(1-$BC199=0,0,BD199/(1-$BC199))))-IF($F199=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC199,PayEmp,$C199)))","v":0},{"$f":"IF($F199=\"Terminated\",0,IF($AA199=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C199,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMIFS(OverValue,OverEmp,$C199,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA199)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA199,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199))))))","v":0},{"$f":"IF($F199=\"Terminated\",0,IF($AA199=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C199,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMIFS(OverValue,OverEmp,$C199,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA199)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA199,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199))))))","v":0},{"$f":"IF($F199=\"Terminated\",0,IF($AA199=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C199,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMIFS(OverValue,OverEmp,$C199,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA199)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA199,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199))))))","v":0},{"$f":"IF($F199=\"Terminated\",0,IF($AA199=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C199,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMIFS(OverValue,OverEmp,$C199,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA199)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA199,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199))))))","v":0},{"$f":"SUM(OFFSET(M199,0,0,1,COLUMN($R$6)-COLUMN($M$6)))","v":0},{"$f":"ROUND(SUM(L199,-R199),2)","v":0},{"$f":"IF($F199=\"Terminated\",0,IF($AA199=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C199,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMIFS(OverValue,OverEmp,$C199,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA199)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA199,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199)))))))","v":0},{"$f":"IF($F199=\"Terminated\",0,IF($AA199=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C199,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMIFS(OverValue,OverEmp,$C199,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA199)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA199,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199)))))))","v":0},{"$f":"IF($F199=\"Terminated\",0,IF($AA199=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C199,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMIFS(OverValue,OverEmp,$C199,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA199)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA199,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199)))))))","v":0},{"$f":"IF($F199=\"Terminated\",0,IF($AA199=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C199,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMIFS(OverValue,OverEmp,$C199,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA199)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA199,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC199,PayEmp,$C199)))))))","v":0},{"$f":"SUM(OFFSET($T199,0,0,1,COLUMN($X$6)-COLUMN($T$7)))","v":0},{"$f":"L199+X199","v":0},{"$f":"ROUND(SUM(R199,X199),2)","v":0},{"$f":"IF(OR($B199<=Setup!$E$12,$B199>=Setup!$D$12+1),0,IF($F199<>\"Active\",0,IF($AE199=\"Yes\",$AB199,((YEAR($AC199)*12)+MONTH($AC199))-((YEAR($AD199)*12)+MONTH($AD199)-1))))","v":0},{"$f":"IF(OR($B199<=Setup!$E$12,$B199>=Setup!$D$12+1),0,((YEAR($AC199)*12)+MONTH($AC199))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},{"$f":"DATE(YEAR($B199),MONTH($B199),DAY($B199))","v":45351},{"$f":"IF(ISNA(VLOOKUP($C199,EmpAll,COLUMN(Emp!$E$4),0)),$AC199,IF(VLOOKUP($C199,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C199,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C199,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C199,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C199,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A199=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C199,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMIFS(OverValue,OverEmp,$C199,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1)),IF(ISNA(VLOOKUP($C199,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG199,MedList,COLUMN(Setup!$C$49),1)","v":0},{"$f":"SUMIFS(PayMedDeduct,PayDate,\"<\"&$AC199,PayEmp,$C199)+$AH199+($AH199*(12-$AA199))","v":0},{"$f":"IF(ISNA(VLOOKUP($C199,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C199,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C199,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C199,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C199,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},{"$f":"IF($AA199=0,0,((SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(PayEarnType=\"Monthly\")*(PayEarnTax)*(PayEarnValues))/$AA199*12)+(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(PayEarnType=\"Quarterly\")*(PayEarnTax)*(PayEarnValues))/MAX(1,ROUNDDOWN($AB199/3,0))*4)+(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(PayEarnType=\"Bi-Annual\")*(PayEarnTax)*(PayEarnValues))/MAX(1,ROUNDDOWN($AB199/6,0))*2)+(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(PayEarnType=\"Annual\")*(PayEarnTax)*(PayEarnValues)))))","v":0},{"$f":"-IF($F199=\"Terminated\",0,IF($AA199=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C199,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA199*12)+(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB199/3,0))*4)+(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB199/6,0))*2)+(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F199=\"Terminated\",0,IF($AA199=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C199,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA199*12)+(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB199/3,0))*4)+(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB199/6,0))*2)+(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F199=\"Terminated\",0,IF($AA199=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C199,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA199*12)+(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB199/3,0))*4)+(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB199/6,0))*2)+(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F199=\"Terminated\",0,IF($AA199=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C199,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA199*12)+(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB199/3,0))*4)+(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB199/6,0))*2)+(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},{"$f":"$AM199+SUM(OFFSET($AM199,0,1,1,COLUMN($AR$2)-COLUMN($AM$2)-1))","v":0},{"$f":"IF($AA199=0,0,(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(PayEarnType=\"Monthly\")*(PayEarnTax)*(PayEarnValues))/$AA199*12))","v":0},{"$f":"-IF($F199=\"Terminated\",0,IF($AA199=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C199,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA199*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F199=\"Terminated\",0,IF($AA199=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C199,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA199*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F199=\"Terminated\",0,IF($AA199=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C199,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA199*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F199=\"Terminated\",0,IF($AA199=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C199,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC199),MONTH($AC199)+1,1),OverEnd,\">=\"&DATE(YEAR($AC199),MONTH($AC199),1))>0,SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA199*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA199*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C199,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C199,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},{"$f":"$AS199+SUM(OFFSET($AT199,0,0,1,COLUMN($AX$2)-COLUMN($AT$2)))","v":0},{"$f":"AR199-AX199","v":0},{"$f":"IF(ISNUMBER($AL199),($AR199*$AL199)-$AI199-$AK199,MAX(0,IF($AL199=\"B\",IF($AR199<Setup!$C$32,($AR199*Setup!$D$32)-$AI199-$AK199,(($AR199-VLOOKUP($AR199,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR199,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR199,TaxBracket2,1),0,1,1)-$AI199-$AK199),IF($AR199<Setup!$C$21,($AR199*Setup!$D$21)-$AI199-$AK199,(($AR199-VLOOKUP($AR199,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR199,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR199,TaxBracket1,1),0,1,1)-$AI199-$AK199))))","v":0},{"$f":"IF(ISNUMBER($AL199),($AX199*$AL199)-$AI199-$AK199,MAX(0,IF($AL199=\"B\",IF($AX199<Setup!$C$32,($AX199*Setup!$D$32)-$AI199-$AK199,(($AX199-VLOOKUP($AX199,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX199,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX199,TaxBracket2,1),0,1,1)-$AI199-$AK199),IF($AX199<Setup!$C$21,($AX199*Setup!$D$21)-$AI199-$AK199,(($AX199-VLOOKUP($AX199,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX199,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX199,TaxBracket1,1),0,1,1)-$AI199-$AK199))))","v":0},{"$f":"AZ199-BA199","v":0},{"$f":"IF($AA199=0,0,IF($BE199=0,0,(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA199*12)/$BE199))","v":0},{"$f":"IF($BE199=0,0,(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnType=\"Annual\")*(PayEarnValues)))/$BE199)","v":0},{"$f":"IF($AA199=0,0,((SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA199*12)+(SUMPRODUCT((PayEmp=$C199)*(PayDate<=$AC199)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnType=\"Annual\")*(PayEarnValues)))))","v":0}]
[{"$f":"IF(ROW($A200)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B200,\"yyyy\")&TEXT($B200,\"mm\")&\"-\"&$C200)","v":"-"},{"$f":"IF(ROW($A200)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A200)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A200)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A200)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A200)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A200)-ROW($A$6)-IF(ROW($A200)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A200)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C200,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C200,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C200,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C200,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C200,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C200,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC200),MONTH($AC200)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C200,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC200),MONTH($AC200),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F200<>\"Active\",0,IF(COUNTIFS(OverEmp,$C200,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMIFS(OverValue,OverEmp,$C200,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1)),IF(AND($AC200>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C200)>0),SUMIFS(EmpIncrease,EmpCode,$C200),SUMIFS(EmpSalary,EmpCode,$C200))))","v":0},{"$f":"IF($F200<>\"Active\",0,IF(COUNTIFS(OverEmp,$C200,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMIFS(OverValue,OverEmp,$C200,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1)),0))","v":0},{"$f":"IF($F200<>\"Active\",0,IF(COUNTIFS(OverEmp,$C200,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMIFS(OverValue,OverEmp,$C200,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1)),IF(MONTH(B200)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C200),0)))","v":0},{"$f":"IF($F200<>\"Active\",0,IF(COUNTIFS(OverEmp,$C200,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMIFS(OverValue,OverEmp,$C200,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1)),0))","v":0},{"$f":"IF($F200<>\"Active\",0,IF(COUNTIFS(OverEmp,$C200,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMIFS(OverValue,OverEmp,$C200,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1)),0))","v":0},{"$f":"IF($AA200=0,0,SUM(OFFSET($G200,0,0,1,COLUMN($L$6)-COLUMN($G$6))))","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C200,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMIFS(OverValue,OverEmp,$C200,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1)),(($BA200/12*$AA200)+(BB200*IF(1-$BC200=0,0,BD200/(1-$BC200))))-IF($F200=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC200,PayEmp,$C200)))","v":0},{"$f":"IF($F200=\"Terminated\",0,IF($AA200=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C200,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMIFS(OverValue,OverEmp,$C200,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA200)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA200,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200))))))","v":0},{"$f":"IF($F200=\"Terminated\",0,IF($AA200=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C200,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMIFS(OverValue,OverEmp,$C200,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA200)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA200,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200))))))","v":0},{"$f":"IF($F200=\"Terminated\",0,IF($AA200=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C200,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMIFS(OverValue,OverEmp,$C200,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA200)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA200,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200))))))","v":0},{"$f":"IF($F200=\"Terminated\",0,IF($AA200=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C200,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMIFS(OverValue,OverEmp,$C200,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA200)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA200,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200))))))","v":0},{"$f":"SUM(OFFSET(M200,0,0,1,COLUMN($R$6)-COLUMN($M$6)))","v":0},{"$f":"ROUND(SUM(L200,-R200),2)","v":0},{"$f":"IF($F200=\"Terminated\",0,IF($AA200=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C200,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMIFS(OverValue,OverEmp,$C200,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA200)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA200,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200)))))))","v":0},{"$f":"IF($F200=\"Terminated\",0,IF($AA200=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C200,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMIFS(OverValue,OverEmp,$C200,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA200)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA200,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200)))))))","v":0},{"$f":"IF($F200=\"Terminated\",0,IF($AA200=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C200,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMIFS(OverValue,OverEmp,$C200,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA200)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA200,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200)))))))","v":0},{"$f":"IF($F200=\"Terminated\",0,IF($AA200=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C200,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMIFS(OverValue,OverEmp,$C200,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA200)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA200,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC200,PayEmp,$C200)))))))","v":0},{"$f":"SUM(OFFSET($T200,0,0,1,COLUMN($X$6)-COLUMN($T$7)))","v":0},{"$f":"L200+X200","v":0},{"$f":"ROUND(SUM(R200,X200),2)","v":0},{"$f":"IF(OR($B200<=Setup!$E$12,$B200>=Setup!$D$12+1),0,IF($F200<>\"Active\",0,IF($AE200=\"Yes\",$AB200,((YEAR($AC200)*12)+MONTH($AC200))-((YEAR($AD200)*12)+MONTH($AD200)-1))))","v":0},{"$f":"IF(OR($B200<=Setup!$E$12,$B200>=Setup!$D$12+1),0,((YEAR($AC200)*12)+MONTH($AC200))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},{"$f":"DATE(YEAR($B200),MONTH($B200),DAY($B200))","v":45351},{"$f":"IF(ISNA(VLOOKUP($C200,EmpAll,COLUMN(Emp!$E$4),0)),$AC200,IF(VLOOKUP($C200,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C200,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C200,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C200,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C200,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A200=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C200,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMIFS(OverValue,OverEmp,$C200,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1)),IF(ISNA(VLOOKUP($C200,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG200,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C200,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C200,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C200,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C200,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C200,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F200=\"Terminated\",0,IF($AA200=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C200,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA200*12)+(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB200/3,0))*4)+(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB200/6,0))*2)+(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F200=\"Terminated\",0,IF($AA200=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C200,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA200*12)+(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB200/3,0))*4)+(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB200/6,0))*2)+(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F200=\"Terminated\",0,IF($AA200=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C200,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA200*12)+(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB200/3,0))*4)+(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB200/6,0))*2)+(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F200=\"Terminated\",0,IF($AA200=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C200,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA200*12)+(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB200/3,0))*4)+(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB200/6,0))*2)+(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},{"$f":"$AM200+SUM(OFFSET($AM200,0,1,1,COLUMN($AR$2)-COLUMN($AM$2)-1))","v":0},0,{"$f":"-IF($F200=\"Terminated\",0,IF($AA200=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C200,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA200*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F200=\"Terminated\",0,IF($AA200=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C200,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA200*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F200=\"Terminated\",0,IF($AA200=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C200,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA200*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F200=\"Terminated\",0,IF($AA200=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C200,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC200),MONTH($AC200)+1,1),OverEnd,\">=\"&DATE(YEAR($AC200),MONTH($AC200),1))>0,SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA200*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C200)*(PayDate<=$AC200)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA200*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C200,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C200,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},{"$f":"$AS200+SUM(OFFSET($AT200,0,0,1,COLUMN($AX$2)-COLUMN($AT$2)))","v":0},{"$f":"AR200-AX200","v":0},{"$f":"IF(ISNUMBER($AL200),($AR200*$AL200)-$AI200-$AK200,MAX(0,IF($AL200=\"B\",IF($AR200<Setup!$C$32,($AR200*Setup!$D$32)-$AI200-$AK200,(($AR200-VLOOKUP($AR200,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR200,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR200,TaxBracket2,1),0,1,1)-$AI200-$AK200),IF($AR200<Setup!$C$21,($AR200*Setup!$D$21)-$AI200-$AK200,(($AR200-VLOOKUP($AR200,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR200,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR200,TaxBracket1,1),0,1,1)-$AI200-$AK200))))","v":0},{"$f":"IF(ISNUMBER($AL200),($AX200*$AL200)-$AI200-$AK200,MAX(0,IF($AL200=\"B\",IF($AX200<Setup!$C$32,($AX200*Setup!$D$32)-$AI200-$AK200,(($AX200-VLOOKUP($AX200,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX200,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX200,TaxBracket2,1),0,1,1)-$AI200-$AK200),IF($AX200<Setup!$C$21,($AX200*Setup!$D$21)-$AI200-$AK200,(($AX200-VLOOKUP($AX200,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX200,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX200,TaxBracket1,1),0,1,1)-$AI200-$AK200))))","v":0},{"$f":"AZ200-BA200","v":0},0,0,0]
[{"$f":"IF(ROW($A201)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B201,\"yyyy\")&TEXT($B201,\"mm\")&\"-\"&$C201)","v":"-"},{"$f":"IF(ROW($A201)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A201)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A201)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A201)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A201)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A201)-ROW($A$6)-IF(ROW($A201)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A201)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C201,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C201,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C201,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C201,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C201,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C201,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC201),MONTH($AC201)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C201,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC201),MONTH($AC201),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F201<>\"Active\",0,IF(COUNTIFS(OverEmp,$C201,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMIFS(OverValue,OverEmp,$C201,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1)),IF(AND($AC201>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C201)>0),SUMIFS(EmpIncrease,EmpCode,$C201),SUMIFS(EmpSalary,EmpCode,$C201))))","v":0},{"$f":"IF($F201<>\"Active\",0,IF(COUNTIFS(OverEmp,$C201,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMIFS(OverValue,OverEmp,$C201,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1)),0))","v":0},{"$f":"IF($F201<>\"Active\",0,IF(COUNTIFS(OverEmp,$C201,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMIFS(OverValue,OverEmp,$C201,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1)),IF(MONTH(B201)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C201),0)))","v":0},{"$f":"IF($F201<>\"Active\",0,IF(COUNTIFS(OverEmp,$C201,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMIFS(OverValue,OverEmp,$C201,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1)),0))","v":0},{"$f":"IF($F201<>\"Active\",0,IF(COUNTIFS(OverEmp,$C201,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMIFS(OverValue,OverEmp,$C201,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1)),0))","v":0},{"$f":"IF($AA201=0,0,SUM(OFFSET($G201,0,0,1,COLUMN($L$6)-COLUMN($G$6))))","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C201,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMIFS(OverValue,OverEmp,$C201,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1)),(($BA201/12*$AA201)+(BB201*IF(1-$BC201=0,0,BD201/(1-$BC201))))-IF($F201=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC201,PayEmp,$C201)))","v":0},{"$f":"IF($F201=\"Terminated\",0,IF($AA201=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C201,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMIFS(OverValue,OverEmp,$C201,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA201)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA201,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201))))))","v":0},{"$f":"IF($F201=\"Terminated\",0,IF($AA201=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C201,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMIFS(OverValue,OverEmp,$C201,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA201)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA201,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201))))))","v":0},{"$f":"IF($F201=\"Terminated\",0,IF($AA201=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C201,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMIFS(OverValue,OverEmp,$C201,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA201)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA201,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201))))))","v":0},{"$f":"IF($F201=\"Terminated\",0,IF($AA201=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C201,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMIFS(OverValue,OverEmp,$C201,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA201)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA201,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201))))))","v":0},{"$f":"SUM(OFFSET(M201,0,0,1,COLUMN($R$6)-COLUMN($M$6)))","v":0},{"$f":"ROUND(SUM(L201,-R201),2)","v":0},{"$f":"IF($F201=\"Terminated\",0,IF($AA201=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C201,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMIFS(OverValue,OverEmp,$C201,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA201)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA201,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201)))))))","v":0},{"$f":"IF($F201=\"Terminated\",0,IF($AA201=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C201,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMIFS(OverValue,OverEmp,$C201,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA201)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA201,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201)))))))","v":0},{"$f":"IF($F201=\"Terminated\",0,IF($AA201=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C201,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMIFS(OverValue,OverEmp,$C201,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA201)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA201,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201)))))))","v":0},{"$f":"IF($F201=\"Terminated\",0,IF($AA201=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C201,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMIFS(OverValue,OverEmp,$C201,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA201)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA201,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC201,PayEmp,$C201)))))))","v":0},{"$f":"SUM(OFFSET($T201,0,0,1,COLUMN($X$6)-COLUMN($T$7)))","v":0},{"$f":"L201+X201","v":0},{"$f":"ROUND(SUM(R201,X201),2)","v":0},{"$f":"IF(OR($B201<=Setup!$E$12,$B201>=Setup!$D$12+1),0,IF($F201<>\"Active\",0,IF($AE201=\"Yes\",$AB201,((YEAR($AC201)*12)+MONTH($AC201))-((YEAR($AD201)*12)+MONTH($AD201)-1))))","v":0},{"$f":"IF(OR($B201<=Setup!$E$12,$B201>=Setup!$D$12+1),0,((YEAR($AC201)*12)+MONTH($AC201))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},{"$f":"DATE(YEAR($B201),MONTH($B201),DAY($B201))","v":45351},{"$f":"IF(ISNA(VLOOKUP($C201,EmpAll,COLUMN(Emp!$E$4),0)),$AC201,IF(VLOOKUP($C201,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C201,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C201,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C201,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C201,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A201=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C201,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMIFS(OverValue,OverEmp,$C201,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1)),IF(ISNA(VLOOKUP($C201,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG201,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C201,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C201,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C201,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C201,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C201,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F201=\"Terminated\",0,IF($AA201=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C201,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA201*12)+(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB201/3,0))*4)+(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB201/6,0))*2)+(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F201=\"Terminated\",0,IF($AA201=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C201,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA201*12)+(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB201/3,0))*4)+(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB201/6,0))*2)+(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F201=\"Terminated\",0,IF($AA201=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C201,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA201*12)+(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB201/3,0))*4)+(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB201/6,0))*2)+(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F201=\"Terminated\",0,IF($AA201=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C201,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA201*12)+(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB201/3,0))*4)+(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB201/6,0))*2)+(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},{"$f":"$AM201+SUM(OFFSET($AM201,0,1,1,COLUMN($AR$2)-COLUMN($AM$2)-1))","v":0},0,{"$f":"-IF($F201=\"Terminated\",0,IF($AA201=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C201,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA201*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F201=\"Terminated\",0,IF($AA201=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C201,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA201*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F201=\"Terminated\",0,IF($AA201=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C201,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA201*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F201=\"Terminated\",0,IF($AA201=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C201,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC201),MONTH($AC201)+1,1),OverEnd,\">=\"&DATE(YEAR($AC201),MONTH($AC201),1))>0,SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA201*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C201)*(PayDate<=$AC201)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA201*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C201,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C201,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},{"$f":"$AS201+SUM(OFFSET($AT201,0,0,1,COLUMN($AX$2)-COLUMN($AT$2)))","v":0},{"$f":"AR201-AX201","v":0},{"$f":"IF(ISNUMBER($AL201),($AR201*$AL201)-$AI201-$AK201,MAX(0,IF($AL201=\"B\",IF($AR201<Setup!$C$32,($AR201*Setup!$D$32)-$AI201-$AK201,(($AR201-VLOOKUP($AR201,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR201,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR201,TaxBracket2,1),0,1,1)-$AI201-$AK201),IF($AR201<Setup!$C$21,($AR201*Setup!$D$21)-$AI201-$AK201,(($AR201-VLOOKUP($AR201,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR201,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR201,TaxBracket1,1),0,1,1)-$AI201-$AK201))))","v":0},{"$f":"IF(ISNUMBER($AL201),($AX201*$AL201)-$AI201-$AK201,MAX(0,IF($AL201=\"B\",IF($AX201<Setup!$C$32,($AX201*Setup!$D$32)-$AI201-$AK201,(($AX201-VLOOKUP($AX201,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX201,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX201,TaxBracket2,1),0,1,1)-$AI201-$AK201),IF($AX201<Setup!$C$21,($AX201*Setup!$D$21)-$AI201-$AK201,(($AX201-VLOOKUP($AX201,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX201,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX201,TaxBracket1,1),0,1,1)-$AI201-$AK201))))","v":0},{"$f":"AZ201-BA201","v":0},0,0,0]
[{"$f":"IF(ROW($A202)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B202,\"yyyy\")&TEXT($B202,\"mm\")&\"-\"&$C202)","v":"-"},{"$f":"IF(ROW($A202)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A202)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A202)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A202)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A202)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A202)-ROW($A$6)-IF(ROW($A202)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A202)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C202,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C202,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C202,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C202,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C202,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C202,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC202),MONTH($AC202)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C202,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC202),MONTH($AC202),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F202<>\"Active\",0,IF(COUNTIFS(OverEmp,$C202,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMIFS(OverValue,OverEmp,$C202,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1)),IF(AND($AC202>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C202)>0),SUMIFS(EmpIncrease,EmpCode,$C202),SUMIFS(EmpSalary,EmpCode,$C202))))","v":0},{"$f":"IF($F202<>\"Active\",0,IF(COUNTIFS(OverEmp,$C202,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMIFS(OverValue,OverEmp,$C202,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1)),0))","v":0},{"$f":"IF($F202<>\"Active\",0,IF(COUNTIFS(OverEmp,$C202,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMIFS(OverValue,OverEmp,$C202,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1)),IF(MONTH(B202)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C202),0)))","v":0},{"$f":"IF($F202<>\"Active\",0,IF(COUNTIFS(OverEmp,$C202,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMIFS(OverValue,OverEmp,$C202,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1)),0))","v":0},{"$f":"IF($F202<>\"Active\",0,IF(COUNTIFS(OverEmp,$C202,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMIFS(OverValue,OverEmp,$C202,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C202,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMIFS(OverValue,OverEmp,$C202,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1)),(($BA202/12*$AA202)+(BB202*IF(1-$BC202=0,0,BD202/(1-$BC202))))-IF($F202=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC202,PayEmp,$C202)))","v":0},{"$f":"IF($F202=\"Terminated\",0,IF($AA202=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C202,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMIFS(OverValue,OverEmp,$C202,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA202)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA202,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202))))))","v":0},{"$f":"IF($F202=\"Terminated\",0,IF($AA202=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C202,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMIFS(OverValue,OverEmp,$C202,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA202)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA202,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202))))))","v":0},{"$f":"IF($F202=\"Terminated\",0,IF($AA202=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C202,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMIFS(OverValue,OverEmp,$C202,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA202)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA202,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202))))))","v":0},{"$f":"IF($F202=\"Terminated\",0,IF($AA202=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C202,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMIFS(OverValue,OverEmp,$C202,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA202)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA202,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202))))))","v":0},0,0,{"$f":"IF($F202=\"Terminated\",0,IF($AA202=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C202,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMIFS(OverValue,OverEmp,$C202,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA202)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA202,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202)))))))","v":0},{"$f":"IF($F202=\"Terminated\",0,IF($AA202=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C202,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMIFS(OverValue,OverEmp,$C202,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA202)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA202,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202)))))))","v":0},{"$f":"IF($F202=\"Terminated\",0,IF($AA202=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C202,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMIFS(OverValue,OverEmp,$C202,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA202)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA202,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202)))))))","v":0},{"$f":"IF($F202=\"Terminated\",0,IF($AA202=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C202,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMIFS(OverValue,OverEmp,$C202,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA202)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA202,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC202,PayEmp,$C202)))))))","v":0},0,0,0,{"$f":"IF(OR($B202<=Setup!$E$12,$B202>=Setup!$D$12+1),0,IF($F202<>\"Active\",0,IF($AE202=\"Yes\",$AB202,((YEAR($AC202)*12)+MONTH($AC202))-((YEAR($AD202)*12)+MONTH($AD202)-1))))","v":0},{"$f":"IF(OR($B202<=Setup!$E$12,$B202>=Setup!$D$12+1),0,((YEAR($AC202)*12)+MONTH($AC202))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C202,EmpAll,COLUMN(Emp!$E$4),0)),$AC202,IF(VLOOKUP($C202,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C202,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C202,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C202,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C202,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A202=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C202,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMIFS(OverValue,OverEmp,$C202,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1)),IF(ISNA(VLOOKUP($C202,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG202,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C202,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C202,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C202,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C202,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C202,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F202=\"Terminated\",0,IF($AA202=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C202,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA202*12)+(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB202/3,0))*4)+(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB202/6,0))*2)+(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F202=\"Terminated\",0,IF($AA202=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C202,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA202*12)+(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB202/3,0))*4)+(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB202/6,0))*2)+(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F202=\"Terminated\",0,IF($AA202=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C202,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA202*12)+(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB202/3,0))*4)+(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB202/6,0))*2)+(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F202=\"Terminated\",0,IF($AA202=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C202,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA202*12)+(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB202/3,0))*4)+(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB202/6,0))*2)+(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F202=\"Terminated\",0,IF($AA202=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C202,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA202*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F202=\"Terminated\",0,IF($AA202=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C202,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA202*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F202=\"Terminated\",0,IF($AA202=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C202,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA202*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F202=\"Terminated\",0,IF($AA202=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C202,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC202),MONTH($AC202)+1,1),OverEnd,\">=\"&DATE(YEAR($AC202),MONTH($AC202),1))>0,SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA202*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C202)*(PayDate<=$AC202)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA202*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C202,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C202,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL202),($AR202*$AL202)-$AI202-$AK202,MAX(0,IF($AL202=\"B\",IF($AR202<Setup!$C$32,($AR202*Setup!$D$32)-$AI202-$AK202,(($AR202-VLOOKUP($AR202,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR202,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR202,TaxBracket2,1),0,1,1)-$AI202-$AK202),IF($AR202<Setup!$C$21,($AR202*Setup!$D$21)-$AI202-$AK202,(($AR202-VLOOKUP($AR202,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR202,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR202,TaxBracket1,1),0,1,1)-$AI202-$AK202))))","v":0},{"$f":"IF(ISNUMBER($AL202),($AX202*$AL202)-$AI202-$AK202,MAX(0,IF($AL202=\"B\",IF($AX202<Setup!$C$32,($AX202*Setup!$D$32)-$AI202-$AK202,(($AX202-VLOOKUP($AX202,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX202,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX202,TaxBracket2,1),0,1,1)-$AI202-$AK202),IF($AX202<Setup!$C$21,($AX202*Setup!$D$21)-$AI202-$AK202,(($AX202-VLOOKUP($AX202,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX202,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX202,TaxBracket1,1),0,1,1)-$AI202-$AK202))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A203)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B203,\"yyyy\")&TEXT($B203,\"mm\")&\"-\"&$C203)","v":"-"},{"$f":"IF(ROW($A203)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A203)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A203)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A203)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A203)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A203)-ROW($A$6)-IF(ROW($A203)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A203)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C203,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C203,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C203,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C203,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C203,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C203,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC203),MONTH($AC203)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C203,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC203),MONTH($AC203),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F203<>\"Active\",0,IF(COUNTIFS(OverEmp,$C203,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMIFS(OverValue,OverEmp,$C203,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1)),IF(AND($AC203>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C203)>0),SUMIFS(EmpIncrease,EmpCode,$C203),SUMIFS(EmpSalary,EmpCode,$C203))))","v":0},{"$f":"IF($F203<>\"Active\",0,IF(COUNTIFS(OverEmp,$C203,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMIFS(OverValue,OverEmp,$C203,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1)),0))","v":0},{"$f":"IF($F203<>\"Active\",0,IF(COUNTIFS(OverEmp,$C203,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMIFS(OverValue,OverEmp,$C203,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1)),IF(MONTH(B203)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C203),0)))","v":0},{"$f":"IF($F203<>\"Active\",0,IF(COUNTIFS(OverEmp,$C203,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMIFS(OverValue,OverEmp,$C203,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1)),0))","v":0},{"$f":"IF($F203<>\"Active\",0,IF(COUNTIFS(OverEmp,$C203,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMIFS(OverValue,OverEmp,$C203,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C203,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMIFS(OverValue,OverEmp,$C203,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1)),(($BA203/12*$AA203)+(BB203*IF(1-$BC203=0,0,BD203/(1-$BC203))))-IF($F203=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC203,PayEmp,$C203)))","v":0},{"$f":"IF($F203=\"Terminated\",0,IF($AA203=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C203,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMIFS(OverValue,OverEmp,$C203,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA203)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA203,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203))))))","v":0},{"$f":"IF($F203=\"Terminated\",0,IF($AA203=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C203,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMIFS(OverValue,OverEmp,$C203,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA203)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA203,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203))))))","v":0},{"$f":"IF($F203=\"Terminated\",0,IF($AA203=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C203,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMIFS(OverValue,OverEmp,$C203,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA203)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA203,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203))))))","v":0},{"$f":"IF($F203=\"Terminated\",0,IF($AA203=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C203,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMIFS(OverValue,OverEmp,$C203,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA203)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA203,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203))))))","v":0},0,0,{"$f":"IF($F203=\"Terminated\",0,IF($AA203=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C203,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMIFS(OverValue,OverEmp,$C203,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA203)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA203,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203)))))))","v":0},{"$f":"IF($F203=\"Terminated\",0,IF($AA203=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C203,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMIFS(OverValue,OverEmp,$C203,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA203)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA203,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203)))))))","v":0},{"$f":"IF($F203=\"Terminated\",0,IF($AA203=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C203,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMIFS(OverValue,OverEmp,$C203,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA203)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA203,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203)))))))","v":0},{"$f":"IF($F203=\"Terminated\",0,IF($AA203=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C203,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMIFS(OverValue,OverEmp,$C203,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA203)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA203,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC203,PayEmp,$C203)))))))","v":0},0,0,0,{"$f":"IF(OR($B203<=Setup!$E$12,$B203>=Setup!$D$12+1),0,IF($F203<>\"Active\",0,IF($AE203=\"Yes\",$AB203,((YEAR($AC203)*12)+MONTH($AC203))-((YEAR($AD203)*12)+MONTH($AD203)-1))))","v":0},{"$f":"IF(OR($B203<=Setup!$E$12,$B203>=Setup!$D$12+1),0,((YEAR($AC203)*12)+MONTH($AC203))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C203,EmpAll,COLUMN(Emp!$E$4),0)),$AC203,IF(VLOOKUP($C203,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C203,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C203,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C203,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C203,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A203=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C203,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMIFS(OverValue,OverEmp,$C203,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1)),IF(ISNA(VLOOKUP($C203,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG203,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C203,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C203,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C203,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C203,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C203,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F203=\"Terminated\",0,IF($AA203=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C203,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA203*12)+(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB203/3,0))*4)+(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB203/6,0))*2)+(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F203=\"Terminated\",0,IF($AA203=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C203,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA203*12)+(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB203/3,0))*4)+(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB203/6,0))*2)+(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F203=\"Terminated\",0,IF($AA203=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C203,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA203*12)+(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB203/3,0))*4)+(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB203/6,0))*2)+(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F203=\"Terminated\",0,IF($AA203=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C203,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA203*12)+(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB203/3,0))*4)+(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB203/6,0))*2)+(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F203=\"Terminated\",0,IF($AA203=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C203,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA203*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F203=\"Terminated\",0,IF($AA203=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C203,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA203*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F203=\"Terminated\",0,IF($AA203=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C203,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA203*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F203=\"Terminated\",0,IF($AA203=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C203,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC203),MONTH($AC203)+1,1),OverEnd,\">=\"&DATE(YEAR($AC203),MONTH($AC203),1))>0,SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA203*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C203)*(PayDate<=$AC203)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA203*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C203,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C203,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL203),($AR203*$AL203)-$AI203-$AK203,MAX(0,IF($AL203=\"B\",IF($AR203<Setup!$C$32,($AR203*Setup!$D$32)-$AI203-$AK203,(($AR203-VLOOKUP($AR203,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR203,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR203,TaxBracket2,1),0,1,1)-$AI203-$AK203),IF($AR203<Setup!$C$21,($AR203*Setup!$D$21)-$AI203-$AK203,(($AR203-VLOOKUP($AR203,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR203,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR203,TaxBracket1,1),0,1,1)-$AI203-$AK203))))","v":0},{"$f":"IF(ISNUMBER($AL203),($AX203*$AL203)-$AI203-$AK203,MAX(0,IF($AL203=\"B\",IF($AX203<Setup!$C$32,($AX203*Setup!$D$32)-$AI203-$AK203,(($AX203-VLOOKUP($AX203,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX203,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX203,TaxBracket2,1),0,1,1)-$AI203-$AK203),IF($AX203<Setup!$C$21,($AX203*Setup!$D$21)-$AI203-$AK203,(($AX203-VLOOKUP($AX203,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX203,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX203,TaxBracket1,1),0,1,1)-$AI203-$AK203))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A204)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B204,\"yyyy\")&TEXT($B204,\"mm\")&\"-\"&$C204)","v":"-"},{"$f":"IF(ROW($A204)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A204)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A204)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A204)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A204)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A204)-ROW($A$6)-IF(ROW($A204)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A204)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C204,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C204,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C204,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C204,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C204,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C204,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC204),MONTH($AC204)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C204,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC204),MONTH($AC204),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F204<>\"Active\",0,IF(COUNTIFS(OverEmp,$C204,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMIFS(OverValue,OverEmp,$C204,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1)),IF(AND($AC204>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C204)>0),SUMIFS(EmpIncrease,EmpCode,$C204),SUMIFS(EmpSalary,EmpCode,$C204))))","v":0},{"$f":"IF($F204<>\"Active\",0,IF(COUNTIFS(OverEmp,$C204,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMIFS(OverValue,OverEmp,$C204,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1)),0))","v":0},{"$f":"IF($F204<>\"Active\",0,IF(COUNTIFS(OverEmp,$C204,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMIFS(OverValue,OverEmp,$C204,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1)),IF(MONTH(B204)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C204),0)))","v":0},{"$f":"IF($F204<>\"Active\",0,IF(COUNTIFS(OverEmp,$C204,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMIFS(OverValue,OverEmp,$C204,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1)),0))","v":0},{"$f":"IF($F204<>\"Active\",0,IF(COUNTIFS(OverEmp,$C204,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMIFS(OverValue,OverEmp,$C204,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C204,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMIFS(OverValue,OverEmp,$C204,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1)),(($BA204/12*$AA204)+(BB204*IF(1-$BC204=0,0,BD204/(1-$BC204))))-IF($F204=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC204,PayEmp,$C204)))","v":0},{"$f":"IF($F204=\"Terminated\",0,IF($AA204=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C204,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMIFS(OverValue,OverEmp,$C204,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA204)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA204,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204))))))","v":0},{"$f":"IF($F204=\"Terminated\",0,IF($AA204=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C204,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMIFS(OverValue,OverEmp,$C204,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA204)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA204,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204))))))","v":0},{"$f":"IF($F204=\"Terminated\",0,IF($AA204=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C204,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMIFS(OverValue,OverEmp,$C204,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA204)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA204,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204))))))","v":0},{"$f":"IF($F204=\"Terminated\",0,IF($AA204=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C204,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMIFS(OverValue,OverEmp,$C204,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA204)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA204,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204))))))","v":0},0,0,{"$f":"IF($F204=\"Terminated\",0,IF($AA204=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C204,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMIFS(OverValue,OverEmp,$C204,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA204)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA204,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204)))))))","v":0},{"$f":"IF($F204=\"Terminated\",0,IF($AA204=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C204,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMIFS(OverValue,OverEmp,$C204,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA204)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA204,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204)))))))","v":0},{"$f":"IF($F204=\"Terminated\",0,IF($AA204=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C204,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMIFS(OverValue,OverEmp,$C204,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA204)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA204,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204)))))))","v":0},{"$f":"IF($F204=\"Terminated\",0,IF($AA204=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C204,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMIFS(OverValue,OverEmp,$C204,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA204)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA204,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC204,PayEmp,$C204)))))))","v":0},0,0,0,{"$f":"IF(OR($B204<=Setup!$E$12,$B204>=Setup!$D$12+1),0,IF($F204<>\"Active\",0,IF($AE204=\"Yes\",$AB204,((YEAR($AC204)*12)+MONTH($AC204))-((YEAR($AD204)*12)+MONTH($AD204)-1))))","v":0},{"$f":"IF(OR($B204<=Setup!$E$12,$B204>=Setup!$D$12+1),0,((YEAR($AC204)*12)+MONTH($AC204))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C204,EmpAll,COLUMN(Emp!$E$4),0)),$AC204,IF(VLOOKUP($C204,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C204,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C204,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C204,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C204,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A204=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C204,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMIFS(OverValue,OverEmp,$C204,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1)),IF(ISNA(VLOOKUP($C204,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG204,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C204,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C204,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C204,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C204,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C204,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F204=\"Terminated\",0,IF($AA204=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C204,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA204*12)+(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB204/3,0))*4)+(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB204/6,0))*2)+(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F204=\"Terminated\",0,IF($AA204=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C204,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA204*12)+(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB204/3,0))*4)+(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB204/6,0))*2)+(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F204=\"Terminated\",0,IF($AA204=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C204,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA204*12)+(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB204/3,0))*4)+(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB204/6,0))*2)+(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F204=\"Terminated\",0,IF($AA204=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C204,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA204*12)+(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB204/3,0))*4)+(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB204/6,0))*2)+(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F204=\"Terminated\",0,IF($AA204=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C204,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA204*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F204=\"Terminated\",0,IF($AA204=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C204,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA204*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F204=\"Terminated\",0,IF($AA204=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C204,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA204*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F204=\"Terminated\",0,IF($AA204=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C204,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC204),MONTH($AC204)+1,1),OverEnd,\">=\"&DATE(YEAR($AC204),MONTH($AC204),1))>0,SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA204*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C204)*(PayDate<=$AC204)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA204*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C204,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C204,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL204),($AR204*$AL204)-$AI204-$AK204,MAX(0,IF($AL204=\"B\",IF($AR204<Setup!$C$32,($AR204*Setup!$D$32)-$AI204-$AK204,(($AR204-VLOOKUP($AR204,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR204,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR204,TaxBracket2,1),0,1,1)-$AI204-$AK204),IF($AR204<Setup!$C$21,($AR204*Setup!$D$21)-$AI204-$AK204,(($AR204-VLOOKUP($AR204,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR204,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR204,TaxBracket1,1),0,1,1)-$AI204-$AK204))))","v":0},{"$f":"IF(ISNUMBER($AL204),($AX204*$AL204)-$AI204-$AK204,MAX(0,IF($AL204=\"B\",IF($AX204<Setup!$C$32,($AX204*Setup!$D$32)-$AI204-$AK204,(($AX204-VLOOKUP($AX204,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX204,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX204,TaxBracket2,1),0,1,1)-$AI204-$AK204),IF($AX204<Setup!$C$21,($AX204*Setup!$D$21)-$AI204-$AK204,(($AX204-VLOOKUP($AX204,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX204,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX204,TaxBracket1,1),0,1,1)-$AI204-$AK204))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A205)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B205,\"yyyy\")&TEXT($B205,\"mm\")&\"-\"&$C205)","v":"-"},{"$f":"IF(ROW($A205)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A205)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A205)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A205)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A205)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A205)-ROW($A$6)-IF(ROW($A205)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A205)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C205,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C205,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C205,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C205,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C205,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C205,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC205),MONTH($AC205)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C205,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC205),MONTH($AC205),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F205<>\"Active\",0,IF(COUNTIFS(OverEmp,$C205,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMIFS(OverValue,OverEmp,$C205,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1)),IF(AND($AC205>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C205)>0),SUMIFS(EmpIncrease,EmpCode,$C205),SUMIFS(EmpSalary,EmpCode,$C205))))","v":0},{"$f":"IF($F205<>\"Active\",0,IF(COUNTIFS(OverEmp,$C205,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMIFS(OverValue,OverEmp,$C205,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1)),0))","v":0},{"$f":"IF($F205<>\"Active\",0,IF(COUNTIFS(OverEmp,$C205,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMIFS(OverValue,OverEmp,$C205,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1)),IF(MONTH(B205)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C205),0)))","v":0},{"$f":"IF($F205<>\"Active\",0,IF(COUNTIFS(OverEmp,$C205,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMIFS(OverValue,OverEmp,$C205,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1)),0))","v":0},{"$f":"IF($F205<>\"Active\",0,IF(COUNTIFS(OverEmp,$C205,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMIFS(OverValue,OverEmp,$C205,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C205,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMIFS(OverValue,OverEmp,$C205,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1)),(($BA205/12*$AA205)+(BB205*IF(1-$BC205=0,0,BD205/(1-$BC205))))-IF($F205=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC205,PayEmp,$C205)))","v":0},{"$f":"IF($F205=\"Terminated\",0,IF($AA205=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C205,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMIFS(OverValue,OverEmp,$C205,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA205)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA205,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205))))))","v":0},{"$f":"IF($F205=\"Terminated\",0,IF($AA205=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C205,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMIFS(OverValue,OverEmp,$C205,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA205)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA205,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205))))))","v":0},{"$f":"IF($F205=\"Terminated\",0,IF($AA205=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C205,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMIFS(OverValue,OverEmp,$C205,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA205)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA205,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205))))))","v":0},{"$f":"IF($F205=\"Terminated\",0,IF($AA205=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C205,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMIFS(OverValue,OverEmp,$C205,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA205)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA205,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205))))))","v":0},0,0,{"$f":"IF($F205=\"Terminated\",0,IF($AA205=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C205,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMIFS(OverValue,OverEmp,$C205,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA205)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA205,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205)))))))","v":0},{"$f":"IF($F205=\"Terminated\",0,IF($AA205=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C205,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMIFS(OverValue,OverEmp,$C205,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA205)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA205,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205)))))))","v":0},{"$f":"IF($F205=\"Terminated\",0,IF($AA205=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C205,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMIFS(OverValue,OverEmp,$C205,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA205)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA205,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205)))))))","v":0},{"$f":"IF($F205=\"Terminated\",0,IF($AA205=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C205,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMIFS(OverValue,OverEmp,$C205,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA205)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA205,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC205,PayEmp,$C205)))))))","v":0},0,0,0,{"$f":"IF(OR($B205<=Setup!$E$12,$B205>=Setup!$D$12+1),0,IF($F205<>\"Active\",0,IF($AE205=\"Yes\",$AB205,((YEAR($AC205)*12)+MONTH($AC205))-((YEAR($AD205)*12)+MONTH($AD205)-1))))","v":0},{"$f":"IF(OR($B205<=Setup!$E$12,$B205>=Setup!$D$12+1),0,((YEAR($AC205)*12)+MONTH($AC205))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C205,EmpAll,COLUMN(Emp!$E$4),0)),$AC205,IF(VLOOKUP($C205,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C205,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C205,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C205,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C205,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A205=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C205,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMIFS(OverValue,OverEmp,$C205,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1)),IF(ISNA(VLOOKUP($C205,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG205,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C205,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C205,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C205,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C205,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C205,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F205=\"Terminated\",0,IF($AA205=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C205,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA205*12)+(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB205/3,0))*4)+(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB205/6,0))*2)+(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F205=\"Terminated\",0,IF($AA205=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C205,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA205*12)+(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB205/3,0))*4)+(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB205/6,0))*2)+(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F205=\"Terminated\",0,IF($AA205=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C205,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA205*12)+(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB205/3,0))*4)+(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB205/6,0))*2)+(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F205=\"Terminated\",0,IF($AA205=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C205,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA205*12)+(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB205/3,0))*4)+(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB205/6,0))*2)+(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F205=\"Terminated\",0,IF($AA205=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C205,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA205*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F205=\"Terminated\",0,IF($AA205=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C205,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA205*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F205=\"Terminated\",0,IF($AA205=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C205,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA205*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F205=\"Terminated\",0,IF($AA205=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C205,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC205),MONTH($AC205)+1,1),OverEnd,\">=\"&DATE(YEAR($AC205),MONTH($AC205),1))>0,SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA205*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C205)*(PayDate<=$AC205)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA205*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C205,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C205,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL205),($AR205*$AL205)-$AI205-$AK205,MAX(0,IF($AL205=\"B\",IF($AR205<Setup!$C$32,($AR205*Setup!$D$32)-$AI205-$AK205,(($AR205-VLOOKUP($AR205,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR205,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR205,TaxBracket2,1),0,1,1)-$AI205-$AK205),IF($AR205<Setup!$C$21,($AR205*Setup!$D$21)-$AI205-$AK205,(($AR205-VLOOKUP($AR205,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR205,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR205,TaxBracket1,1),0,1,1)-$AI205-$AK205))))","v":0},{"$f":"IF(ISNUMBER($AL205),($AX205*$AL205)-$AI205-$AK205,MAX(0,IF($AL205=\"B\",IF($AX205<Setup!$C$32,($AX205*Setup!$D$32)-$AI205-$AK205,(($AX205-VLOOKUP($AX205,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX205,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX205,TaxBracket2,1),0,1,1)-$AI205-$AK205),IF($AX205<Setup!$C$21,($AX205*Setup!$D$21)-$AI205-$AK205,(($AX205-VLOOKUP($AX205,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX205,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX205,TaxBracket1,1),0,1,1)-$AI205-$AK205))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A206)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B206,\"yyyy\")&TEXT($B206,\"mm\")&\"-\"&$C206)","v":"-"},{"$f":"IF(ROW($A206)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A206)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A206)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A206)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A206)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A206)-ROW($A$6)-IF(ROW($A206)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A206)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C206,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C206,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C206,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C206,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C206,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C206,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC206),MONTH($AC206)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C206,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC206),MONTH($AC206),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F206<>\"Active\",0,IF(COUNTIFS(OverEmp,$C206,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMIFS(OverValue,OverEmp,$C206,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1)),IF(AND($AC206>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C206)>0),SUMIFS(EmpIncrease,EmpCode,$C206),SUMIFS(EmpSalary,EmpCode,$C206))))","v":0},{"$f":"IF($F206<>\"Active\",0,IF(COUNTIFS(OverEmp,$C206,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMIFS(OverValue,OverEmp,$C206,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1)),0))","v":0},{"$f":"IF($F206<>\"Active\",0,IF(COUNTIFS(OverEmp,$C206,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMIFS(OverValue,OverEmp,$C206,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1)),IF(MONTH(B206)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C206),0)))","v":0},{"$f":"IF($F206<>\"Active\",0,IF(COUNTIFS(OverEmp,$C206,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMIFS(OverValue,OverEmp,$C206,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1)),0))","v":0},{"$f":"IF($F206<>\"Active\",0,IF(COUNTIFS(OverEmp,$C206,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMIFS(OverValue,OverEmp,$C206,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C206,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMIFS(OverValue,OverEmp,$C206,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1)),(($BA206/12*$AA206)+(BB206*IF(1-$BC206=0,0,BD206/(1-$BC206))))-IF($F206=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC206,PayEmp,$C206)))","v":0},{"$f":"IF($F206=\"Terminated\",0,IF($AA206=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C206,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMIFS(OverValue,OverEmp,$C206,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA206)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA206,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206))))))","v":0},{"$f":"IF($F206=\"Terminated\",0,IF($AA206=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C206,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMIFS(OverValue,OverEmp,$C206,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA206)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA206,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206))))))","v":0},{"$f":"IF($F206=\"Terminated\",0,IF($AA206=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C206,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMIFS(OverValue,OverEmp,$C206,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA206)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA206,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206))))))","v":0},{"$f":"IF($F206=\"Terminated\",0,IF($AA206=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C206,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMIFS(OverValue,OverEmp,$C206,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA206)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA206,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206))))))","v":0},0,0,{"$f":"IF($F206=\"Terminated\",0,IF($AA206=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C206,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMIFS(OverValue,OverEmp,$C206,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA206)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA206,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206)))))))","v":0},{"$f":"IF($F206=\"Terminated\",0,IF($AA206=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C206,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMIFS(OverValue,OverEmp,$C206,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA206)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA206,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206)))))))","v":0},{"$f":"IF($F206=\"Terminated\",0,IF($AA206=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C206,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMIFS(OverValue,OverEmp,$C206,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA206)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA206,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206)))))))","v":0},{"$f":"IF($F206=\"Terminated\",0,IF($AA206=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C206,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMIFS(OverValue,OverEmp,$C206,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA206)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA206,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC206,PayEmp,$C206)))))))","v":0},0,0,0,{"$f":"IF(OR($B206<=Setup!$E$12,$B206>=Setup!$D$12+1),0,IF($F206<>\"Active\",0,IF($AE206=\"Yes\",$AB206,((YEAR($AC206)*12)+MONTH($AC206))-((YEAR($AD206)*12)+MONTH($AD206)-1))))","v":0},{"$f":"IF(OR($B206<=Setup!$E$12,$B206>=Setup!$D$12+1),0,((YEAR($AC206)*12)+MONTH($AC206))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C206,EmpAll,COLUMN(Emp!$E$4),0)),$AC206,IF(VLOOKUP($C206,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C206,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C206,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C206,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C206,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A206=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C206,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMIFS(OverValue,OverEmp,$C206,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1)),IF(ISNA(VLOOKUP($C206,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG206,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C206,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C206,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C206,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C206,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C206,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F206=\"Terminated\",0,IF($AA206=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C206,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA206*12)+(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB206/3,0))*4)+(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB206/6,0))*2)+(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F206=\"Terminated\",0,IF($AA206=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C206,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA206*12)+(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB206/3,0))*4)+(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB206/6,0))*2)+(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F206=\"Terminated\",0,IF($AA206=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C206,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA206*12)+(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB206/3,0))*4)+(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB206/6,0))*2)+(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F206=\"Terminated\",0,IF($AA206=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C206,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA206*12)+(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB206/3,0))*4)+(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB206/6,0))*2)+(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F206=\"Terminated\",0,IF($AA206=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C206,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA206*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F206=\"Terminated\",0,IF($AA206=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C206,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA206*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F206=\"Terminated\",0,IF($AA206=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C206,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA206*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F206=\"Terminated\",0,IF($AA206=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C206,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC206),MONTH($AC206)+1,1),OverEnd,\">=\"&DATE(YEAR($AC206),MONTH($AC206),1))>0,SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA206*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C206)*(PayDate<=$AC206)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA206*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C206,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C206,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL206),($AR206*$AL206)-$AI206-$AK206,MAX(0,IF($AL206=\"B\",IF($AR206<Setup!$C$32,($AR206*Setup!$D$32)-$AI206-$AK206,(($AR206-VLOOKUP($AR206,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR206,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR206,TaxBracket2,1),0,1,1)-$AI206-$AK206),IF($AR206<Setup!$C$21,($AR206*Setup!$D$21)-$AI206-$AK206,(($AR206-VLOOKUP($AR206,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR206,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR206,TaxBracket1,1),0,1,1)-$AI206-$AK206))))","v":0},{"$f":"IF(ISNUMBER($AL206),($AX206*$AL206)-$AI206-$AK206,MAX(0,IF($AL206=\"B\",IF($AX206<Setup!$C$32,($AX206*Setup!$D$32)-$AI206-$AK206,(($AX206-VLOOKUP($AX206,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX206,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX206,TaxBracket2,1),0,1,1)-$AI206-$AK206),IF($AX206<Setup!$C$21,($AX206*Setup!$D$21)-$AI206-$AK206,(($AX206-VLOOKUP($AX206,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX206,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX206,TaxBracket1,1),0,1,1)-$AI206-$AK206))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A207)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B207,\"yyyy\")&TEXT($B207,\"mm\")&\"-\"&$C207)","v":"-"},{"$f":"IF(ROW($A207)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A207)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A207)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A207)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A207)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A207)-ROW($A$6)-IF(ROW($A207)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A207)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C207,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C207,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C207,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C207,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C207,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C207,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC207),MONTH($AC207)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C207,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC207),MONTH($AC207),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F207<>\"Active\",0,IF(COUNTIFS(OverEmp,$C207,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMIFS(OverValue,OverEmp,$C207,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1)),IF(AND($AC207>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C207)>0),SUMIFS(EmpIncrease,EmpCode,$C207),SUMIFS(EmpSalary,EmpCode,$C207))))","v":0},{"$f":"IF($F207<>\"Active\",0,IF(COUNTIFS(OverEmp,$C207,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMIFS(OverValue,OverEmp,$C207,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1)),0))","v":0},{"$f":"IF($F207<>\"Active\",0,IF(COUNTIFS(OverEmp,$C207,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMIFS(OverValue,OverEmp,$C207,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1)),IF(MONTH(B207)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C207),0)))","v":0},{"$f":"IF($F207<>\"Active\",0,IF(COUNTIFS(OverEmp,$C207,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMIFS(OverValue,OverEmp,$C207,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1)),0))","v":0},{"$f":"IF($F207<>\"Active\",0,IF(COUNTIFS(OverEmp,$C207,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMIFS(OverValue,OverEmp,$C207,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C207,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMIFS(OverValue,OverEmp,$C207,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1)),(($BA207/12*$AA207)+(BB207*IF(1-$BC207=0,0,BD207/(1-$BC207))))-IF($F207=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC207,PayEmp,$C207)))","v":0},{"$f":"IF($F207=\"Terminated\",0,IF($AA207=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C207,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMIFS(OverValue,OverEmp,$C207,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA207)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA207,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207))))))","v":0},{"$f":"IF($F207=\"Terminated\",0,IF($AA207=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C207,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMIFS(OverValue,OverEmp,$C207,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA207)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA207,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207))))))","v":0},{"$f":"IF($F207=\"Terminated\",0,IF($AA207=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C207,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMIFS(OverValue,OverEmp,$C207,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA207)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA207,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207))))))","v":0},{"$f":"IF($F207=\"Terminated\",0,IF($AA207=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C207,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMIFS(OverValue,OverEmp,$C207,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA207)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA207,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207))))))","v":0},0,0,{"$f":"IF($F207=\"Terminated\",0,IF($AA207=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C207,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMIFS(OverValue,OverEmp,$C207,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA207)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA207,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207)))))))","v":0},{"$f":"IF($F207=\"Terminated\",0,IF($AA207=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C207,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMIFS(OverValue,OverEmp,$C207,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA207)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA207,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207)))))))","v":0},{"$f":"IF($F207=\"Terminated\",0,IF($AA207=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C207,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMIFS(OverValue,OverEmp,$C207,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA207)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA207,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207)))))))","v":0},{"$f":"IF($F207=\"Terminated\",0,IF($AA207=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C207,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMIFS(OverValue,OverEmp,$C207,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA207)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA207,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC207,PayEmp,$C207)))))))","v":0},0,0,0,{"$f":"IF(OR($B207<=Setup!$E$12,$B207>=Setup!$D$12+1),0,IF($F207<>\"Active\",0,IF($AE207=\"Yes\",$AB207,((YEAR($AC207)*12)+MONTH($AC207))-((YEAR($AD207)*12)+MONTH($AD207)-1))))","v":0},{"$f":"IF(OR($B207<=Setup!$E$12,$B207>=Setup!$D$12+1),0,((YEAR($AC207)*12)+MONTH($AC207))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C207,EmpAll,COLUMN(Emp!$E$4),0)),$AC207,IF(VLOOKUP($C207,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C207,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C207,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C207,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C207,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A207=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C207,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMIFS(OverValue,OverEmp,$C207,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1)),IF(ISNA(VLOOKUP($C207,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG207,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C207,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C207,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C207,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C207,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C207,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F207=\"Terminated\",0,IF($AA207=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C207,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA207*12)+(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB207/3,0))*4)+(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB207/6,0))*2)+(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F207=\"Terminated\",0,IF($AA207=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C207,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA207*12)+(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB207/3,0))*4)+(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB207/6,0))*2)+(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F207=\"Terminated\",0,IF($AA207=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C207,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA207*12)+(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB207/3,0))*4)+(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB207/6,0))*2)+(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F207=\"Terminated\",0,IF($AA207=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C207,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA207*12)+(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB207/3,0))*4)+(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB207/6,0))*2)+(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F207=\"Terminated\",0,IF($AA207=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C207,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA207*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F207=\"Terminated\",0,IF($AA207=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C207,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA207*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F207=\"Terminated\",0,IF($AA207=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C207,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA207*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F207=\"Terminated\",0,IF($AA207=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C207,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC207),MONTH($AC207)+1,1),OverEnd,\">=\"&DATE(YEAR($AC207),MONTH($AC207),1))>0,SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA207*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C207)*(PayDate<=$AC207)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA207*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C207,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C207,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL207),($AR207*$AL207)-$AI207-$AK207,MAX(0,IF($AL207=\"B\",IF($AR207<Setup!$C$32,($AR207*Setup!$D$32)-$AI207-$AK207,(($AR207-VLOOKUP($AR207,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR207,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR207,TaxBracket2,1),0,1,1)-$AI207-$AK207),IF($AR207<Setup!$C$21,($AR207*Setup!$D$21)-$AI207-$AK207,(($AR207-VLOOKUP($AR207,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR207,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR207,TaxBracket1,1),0,1,1)-$AI207-$AK207))))","v":0},{"$f":"IF(ISNUMBER($AL207),($AX207*$AL207)-$AI207-$AK207,MAX(0,IF($AL207=\"B\",IF($AX207<Setup!$C$32,($AX207*Setup!$D$32)-$AI207-$AK207,(($AX207-VLOOKUP($AX207,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX207,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX207,TaxBracket2,1),0,1,1)-$AI207-$AK207),IF($AX207<Setup!$C$21,($AX207*Setup!$D$21)-$AI207-$AK207,(($AX207-VLOOKUP($AX207,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX207,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX207,TaxBracket1,1),0,1,1)-$AI207-$AK207))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A208)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B208,\"yyyy\")&TEXT($B208,\"mm\")&\"-\"&$C208)","v":"-"},{"$f":"IF(ROW($A208)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A208)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A208)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A208)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A208)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A208)-ROW($A$6)-IF(ROW($A208)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A208)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C208,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C208,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C208,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C208,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C208,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C208,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC208),MONTH($AC208)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C208,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC208),MONTH($AC208),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F208<>\"Active\",0,IF(COUNTIFS(OverEmp,$C208,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMIFS(OverValue,OverEmp,$C208,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1)),IF(AND($AC208>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C208)>0),SUMIFS(EmpIncrease,EmpCode,$C208),SUMIFS(EmpSalary,EmpCode,$C208))))","v":0},{"$f":"IF($F208<>\"Active\",0,IF(COUNTIFS(OverEmp,$C208,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMIFS(OverValue,OverEmp,$C208,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1)),0))","v":0},{"$f":"IF($F208<>\"Active\",0,IF(COUNTIFS(OverEmp,$C208,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMIFS(OverValue,OverEmp,$C208,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1)),IF(MONTH(B208)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C208),0)))","v":0},{"$f":"IF($F208<>\"Active\",0,IF(COUNTIFS(OverEmp,$C208,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMIFS(OverValue,OverEmp,$C208,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1)),0))","v":0},{"$f":"IF($F208<>\"Active\",0,IF(COUNTIFS(OverEmp,$C208,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMIFS(OverValue,OverEmp,$C208,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1)),0))","v":0},{"$f":"IF($AA208=0,0,SUM(OFFSET($G208,0,0,1,COLUMN($L$6)-COLUMN($G$6))))","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C208,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMIFS(OverValue,OverEmp,$C208,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1)),(($BA208/12*$AA208)+(BB208*IF(1-$BC208=0,0,BD208/(1-$BC208))))-IF($F208=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC208,PayEmp,$C208)))","v":0},{"$f":"IF($F208=\"Terminated\",0,IF($AA208=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C208,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMIFS(OverValue,OverEmp,$C208,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA208)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA208,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208))))))","v":0},{"$f":"IF($F208=\"Terminated\",0,IF($AA208=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C208,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMIFS(OverValue,OverEmp,$C208,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA208)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA208,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208))))))","v":0},{"$f":"IF($F208=\"Terminated\",0,IF($AA208=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C208,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMIFS(OverValue,OverEmp,$C208,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA208)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA208,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208))))))","v":0},{"$f":"IF($F208=\"Terminated\",0,IF($AA208=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C208,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMIFS(OverValue,OverEmp,$C208,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA208)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA208,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208))))))","v":0},{"$f":"SUM(OFFSET(M208,0,0,1,COLUMN($R$6)-COLUMN($M$6)))","v":0},{"$f":"ROUND(SUM(L208,-R208),2)","v":0},{"$f":"IF($F208=\"Terminated\",0,IF($AA208=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C208,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMIFS(OverValue,OverEmp,$C208,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA208)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA208,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208)))))))","v":0},{"$f":"IF($F208=\"Terminated\",0,IF($AA208=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C208,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMIFS(OverValue,OverEmp,$C208,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA208)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA208,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208)))))))","v":0},{"$f":"IF($F208=\"Terminated\",0,IF($AA208=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C208,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMIFS(OverValue,OverEmp,$C208,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA208)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA208,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208)))))))","v":0},{"$f":"IF($F208=\"Terminated\",0,IF($AA208=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C208,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMIFS(OverValue,OverEmp,$C208,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA208)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA208,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC208,PayEmp,$C208)))))))","v":0},{"$f":"SUM(OFFSET($T208,0,0,1,COLUMN($X$6)-COLUMN($T$7)))","v":0},{"$f":"L208+X208","v":0},{"$f":"ROUND(SUM(R208,X208),2)","v":0},{"$f":"IF(OR($B208<=Setup!$E$12,$B208>=Setup!$D$12+1),0,IF($F208<>\"Active\",0,IF($AE208=\"Yes\",$AB208,((YEAR($AC208)*12)+MONTH($AC208))-((YEAR($AD208)*12)+MONTH($AD208)-1))))","v":0},{"$f":"IF(OR($B208<=Setup!$E$12,$B208>=Setup!$D$12+1),0,((YEAR($AC208)*12)+MONTH($AC208))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},{"$f":"DATE(YEAR($B208),MONTH($B208),DAY($B208))","v":45351},{"$f":"IF(ISNA(VLOOKUP($C208,EmpAll,COLUMN(Emp!$E$4),0)),$AC208,IF(VLOOKUP($C208,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C208,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C208,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C208,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C208,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A208=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C208,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMIFS(OverValue,OverEmp,$C208,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1)),IF(ISNA(VLOOKUP($C208,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG208,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C208,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C208,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C208,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C208,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C208,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F208=\"Terminated\",0,IF($AA208=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C208,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA208*12)+(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB208/3,0))*4)+(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB208/6,0))*2)+(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F208=\"Terminated\",0,IF($AA208=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C208,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA208*12)+(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB208/3,0))*4)+(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB208/6,0))*2)+(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F208=\"Terminated\",0,IF($AA208=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C208,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA208*12)+(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB208/3,0))*4)+(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB208/6,0))*2)+(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F208=\"Terminated\",0,IF($AA208=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C208,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA208*12)+(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB208/3,0))*4)+(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB208/6,0))*2)+(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},{"$f":"$AM208+SUM(OFFSET($AM208,0,1,1,COLUMN($AR$2)-COLUMN($AM$2)-1))","v":0},0,{"$f":"-IF($F208=\"Terminated\",0,IF($AA208=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C208,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA208*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F208=\"Terminated\",0,IF($AA208=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C208,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA208*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F208=\"Terminated\",0,IF($AA208=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C208,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA208*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F208=\"Terminated\",0,IF($AA208=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C208,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC208),MONTH($AC208)+1,1),OverEnd,\">=\"&DATE(YEAR($AC208),MONTH($AC208),1))>0,SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA208*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C208)*(PayDate<=$AC208)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA208*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C208,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C208,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},{"$f":"$AS208+SUM(OFFSET($AT208,0,0,1,COLUMN($AX$2)-COLUMN($AT$2)))","v":0},{"$f":"AR208-AX208","v":0},{"$f":"IF(ISNUMBER($AL208),($AR208*$AL208)-$AI208-$AK208,MAX(0,IF($AL208=\"B\",IF($AR208<Setup!$C$32,($AR208*Setup!$D$32)-$AI208-$AK208,(($AR208-VLOOKUP($AR208,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR208,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR208,TaxBracket2,1),0,1,1)-$AI208-$AK208),IF($AR208<Setup!$C$21,($AR208*Setup!$D$21)-$AI208-$AK208,(($AR208-VLOOKUP($AR208,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR208,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR208,TaxBracket1,1),0,1,1)-$AI208-$AK208))))","v":0},{"$f":"IF(ISNUMBER($AL208),($AX208*$AL208)-$AI208-$AK208,MAX(0,IF($AL208=\"B\",IF($AX208<Setup!$C$32,($AX208*Setup!$D$32)-$AI208-$AK208,(($AX208-VLOOKUP($AX208,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX208,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX208,TaxBracket2,1),0,1,1)-$AI208-$AK208),IF($AX208<Setup!$C$21,($AX208*Setup!$D$21)-$AI208-$AK208,(($AX208-VLOOKUP($AX208,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX208,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX208,TaxBracket1,1),0,1,1)-$AI208-$AK208))))","v":0},{"$f":"AZ208-BA208","v":0},0,0,0]
[{"$f":"IF(ROW($A209)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B209,\"yyyy\")&TEXT($B209,\"mm\")&\"-\"&$C209)","v":"-"},{"$f":"IF(ROW($A209)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A209)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A209)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A209)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A209)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A209)-ROW($A$6)-IF(ROW($A209)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A209)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C209,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C209,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C209,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C209,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C209,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C209,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC209),MONTH($AC209)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C209,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC209),MONTH($AC209),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F209<>\"Active\",0,IF(COUNTIFS(OverEmp,$C209,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMIFS(OverValue,OverEmp,$C209,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1)),IF(AND($AC209>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C209)>0),SUMIFS(EmpIncrease,EmpCode,$C209),SUMIFS(EmpSalary,EmpCode,$C209))))","v":0},{"$f":"IF($F209<>\"Active\",0,IF(COUNTIFS(OverEmp,$C209,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMIFS(OverValue,OverEmp,$C209,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1)),0))","v":0},{"$f":"IF($F209<>\"Active\",0,IF(COUNTIFS(OverEmp,$C209,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMIFS(OverValue,OverEmp,$C209,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1)),IF(MONTH(B209)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C209),0)))","v":0},{"$f":"IF($F209<>\"Active\",0,IF(COUNTIFS(OverEmp,$C209,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMIFS(OverValue,OverEmp,$C209,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1)),0))","v":0},{"$f":"IF($F209<>\"Active\",0,IF(COUNTIFS(OverEmp,$C209,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMIFS(OverValue,OverEmp,$C209,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C209,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMIFS(OverValue,OverEmp,$C209,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1)),(($BA209/12*$AA209)+(BB209*IF(1-$BC209=0,0,BD209/(1-$BC209))))-IF($F209=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC209,PayEmp,$C209)))","v":0},{"$f":"IF($F209=\"Terminated\",0,IF($AA209=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C209,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMIFS(OverValue,OverEmp,$C209,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA209)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA209,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209))))))","v":0},{"$f":"IF($F209=\"Terminated\",0,IF($AA209=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C209,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMIFS(OverValue,OverEmp,$C209,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA209)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA209,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209))))))","v":0},{"$f":"IF($F209=\"Terminated\",0,IF($AA209=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C209,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMIFS(OverValue,OverEmp,$C209,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA209)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA209,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209))))))","v":0},{"$f":"IF($F209=\"Terminated\",0,IF($AA209=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C209,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMIFS(OverValue,OverEmp,$C209,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA209)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA209,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209))))))","v":0},0,0,{"$f":"IF($F209=\"Terminated\",0,IF($AA209=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C209,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMIFS(OverValue,OverEmp,$C209,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA209)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA209,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209)))))))","v":0},{"$f":"IF($F209=\"Terminated\",0,IF($AA209=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C209,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMIFS(OverValue,OverEmp,$C209,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA209)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA209,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209)))))))","v":0},{"$f":"IF($F209=\"Terminated\",0,IF($AA209=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C209,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMIFS(OverValue,OverEmp,$C209,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA209)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA209,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209)))))))","v":0},{"$f":"IF($F209=\"Terminated\",0,IF($AA209=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C209,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMIFS(OverValue,OverEmp,$C209,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA209)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA209,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC209,PayEmp,$C209)))))))","v":0},0,0,0,{"$f":"IF(OR($B209<=Setup!$E$12,$B209>=Setup!$D$12+1),0,IF($F209<>\"Active\",0,IF($AE209=\"Yes\",$AB209,((YEAR($AC209)*12)+MONTH($AC209))-((YEAR($AD209)*12)+MONTH($AD209)-1))))","v":0},{"$f":"IF(OR($B209<=Setup!$E$12,$B209>=Setup!$D$12+1),0,((YEAR($AC209)*12)+MONTH($AC209))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C209,EmpAll,COLUMN(Emp!$E$4),0)),$AC209,IF(VLOOKUP($C209,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C209,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C209,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C209,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C209,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A209=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C209,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMIFS(OverValue,OverEmp,$C209,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1)),IF(ISNA(VLOOKUP($C209,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG209,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C209,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C209,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C209,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C209,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C209,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F209=\"Terminated\",0,IF($AA209=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C209,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA209*12)+(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB209/3,0))*4)+(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB209/6,0))*2)+(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F209=\"Terminated\",0,IF($AA209=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C209,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA209*12)+(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB209/3,0))*4)+(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB209/6,0))*2)+(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F209=\"Terminated\",0,IF($AA209=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C209,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA209*12)+(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB209/3,0))*4)+(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB209/6,0))*2)+(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F209=\"Terminated\",0,IF($AA209=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C209,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA209*12)+(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB209/3,0))*4)+(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB209/6,0))*2)+(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F209=\"Terminated\",0,IF($AA209=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C209,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA209*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F209=\"Terminated\",0,IF($AA209=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C209,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA209*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F209=\"Terminated\",0,IF($AA209=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C209,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA209*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F209=\"Terminated\",0,IF($AA209=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C209,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC209),MONTH($AC209)+1,1),OverEnd,\">=\"&DATE(YEAR($AC209),MONTH($AC209),1))>0,SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA209*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C209)*(PayDate<=$AC209)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA209*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C209,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C209,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL209),($AR209*$AL209)-$AI209-$AK209,MAX(0,IF($AL209=\"B\",IF($AR209<Setup!$C$32,($AR209*Setup!$D$32)-$AI209-$AK209,(($AR209-VLOOKUP($AR209,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR209,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR209,TaxBracket2,1),0,1,1)-$AI209-$AK209),IF($AR209<Setup!$C$21,($AR209*Setup!$D$21)-$AI209-$AK209,(($AR209-VLOOKUP($AR209,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR209,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR209,TaxBracket1,1),0,1,1)-$AI209-$AK209))))","v":0},{"$f":"IF(ISNUMBER($AL209),($AX209*$AL209)-$AI209-$AK209,MAX(0,IF($AL209=\"B\",IF($AX209<Setup!$C$32,($AX209*Setup!$D$32)-$AI209-$AK209,(($AX209-VLOOKUP($AX209,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX209,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX209,TaxBracket2,1),0,1,1)-$AI209-$AK209),IF($AX209<Setup!$C$21,($AX209*Setup!$D$21)-$AI209-$AK209,(($AX209-VLOOKUP($AX209,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX209,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX209,TaxBracket1,1),0,1,1)-$AI209-$AK209))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A210)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B210,\"yyyy\")&TEXT($B210,\"mm\")&\"-\"&$C210)","v":"-"},{"$f":"IF(ROW($A210)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A210)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A210)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A210)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A210)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A210)-ROW($A$6)-IF(ROW($A210)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A210)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C210,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C210,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C210,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C210,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C210,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C210,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC210),MONTH($AC210)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C210,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC210),MONTH($AC210),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F210<>\"Active\",0,IF(COUNTIFS(OverEmp,$C210,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMIFS(OverValue,OverEmp,$C210,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1)),IF(AND($AC210>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C210)>0),SUMIFS(EmpIncrease,EmpCode,$C210),SUMIFS(EmpSalary,EmpCode,$C210))))","v":0},{"$f":"IF($F210<>\"Active\",0,IF(COUNTIFS(OverEmp,$C210,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMIFS(OverValue,OverEmp,$C210,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1)),0))","v":0},{"$f":"IF($F210<>\"Active\",0,IF(COUNTIFS(OverEmp,$C210,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMIFS(OverValue,OverEmp,$C210,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1)),IF(MONTH(B210)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C210),0)))","v":0},{"$f":"IF($F210<>\"Active\",0,IF(COUNTIFS(OverEmp,$C210,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMIFS(OverValue,OverEmp,$C210,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1)),0))","v":0},{"$f":"IF($F210<>\"Active\",0,IF(COUNTIFS(OverEmp,$C210,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMIFS(OverValue,OverEmp,$C210,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C210,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMIFS(OverValue,OverEmp,$C210,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1)),(($BA210/12*$AA210)+(BB210*IF(1-$BC210=0,0,BD210/(1-$BC210))))-IF($F210=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC210,PayEmp,$C210)))","v":0},{"$f":"IF($F210=\"Terminated\",0,IF($AA210=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C210,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMIFS(OverValue,OverEmp,$C210,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA210)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA210,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210))))))","v":0},{"$f":"IF($F210=\"Terminated\",0,IF($AA210=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C210,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMIFS(OverValue,OverEmp,$C210,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA210)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA210,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210))))))","v":0},{"$f":"IF($F210=\"Terminated\",0,IF($AA210=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C210,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMIFS(OverValue,OverEmp,$C210,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA210)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA210,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210))))))","v":0},{"$f":"IF($F210=\"Terminated\",0,IF($AA210=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C210,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMIFS(OverValue,OverEmp,$C210,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA210)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA210,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210))))))","v":0},0,0,{"$f":"IF($F210=\"Terminated\",0,IF($AA210=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C210,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMIFS(OverValue,OverEmp,$C210,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA210)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA210,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210)))))))","v":0},{"$f":"IF($F210=\"Terminated\",0,IF($AA210=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C210,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMIFS(OverValue,OverEmp,$C210,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA210)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA210,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210)))))))","v":0},{"$f":"IF($F210=\"Terminated\",0,IF($AA210=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C210,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMIFS(OverValue,OverEmp,$C210,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA210)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA210,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210)))))))","v":0},{"$f":"IF($F210=\"Terminated\",0,IF($AA210=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C210,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMIFS(OverValue,OverEmp,$C210,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA210)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA210,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC210,PayEmp,$C210)))))))","v":0},0,0,0,{"$f":"IF(OR($B210<=Setup!$E$12,$B210>=Setup!$D$12+1),0,IF($F210<>\"Active\",0,IF($AE210=\"Yes\",$AB210,((YEAR($AC210)*12)+MONTH($AC210))-((YEAR($AD210)*12)+MONTH($AD210)-1))))","v":0},{"$f":"IF(OR($B210<=Setup!$E$12,$B210>=Setup!$D$12+1),0,((YEAR($AC210)*12)+MONTH($AC210))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C210,EmpAll,COLUMN(Emp!$E$4),0)),$AC210,IF(VLOOKUP($C210,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C210,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C210,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C210,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C210,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A210=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C210,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMIFS(OverValue,OverEmp,$C210,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1)),IF(ISNA(VLOOKUP($C210,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG210,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C210,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C210,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C210,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C210,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C210,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F210=\"Terminated\",0,IF($AA210=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C210,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA210*12)+(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB210/3,0))*4)+(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB210/6,0))*2)+(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F210=\"Terminated\",0,IF($AA210=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C210,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA210*12)+(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB210/3,0))*4)+(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB210/6,0))*2)+(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F210=\"Terminated\",0,IF($AA210=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C210,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA210*12)+(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB210/3,0))*4)+(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB210/6,0))*2)+(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F210=\"Terminated\",0,IF($AA210=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C210,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA210*12)+(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB210/3,0))*4)+(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB210/6,0))*2)+(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F210=\"Terminated\",0,IF($AA210=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C210,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA210*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F210=\"Terminated\",0,IF($AA210=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C210,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA210*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F210=\"Terminated\",0,IF($AA210=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C210,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA210*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F210=\"Terminated\",0,IF($AA210=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C210,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC210),MONTH($AC210)+1,1),OverEnd,\">=\"&DATE(YEAR($AC210),MONTH($AC210),1))>0,SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA210*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C210)*(PayDate<=$AC210)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA210*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C210,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C210,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL210),($AR210*$AL210)-$AI210-$AK210,MAX(0,IF($AL210=\"B\",IF($AR210<Setup!$C$32,($AR210*Setup!$D$32)-$AI210-$AK210,(($AR210-VLOOKUP($AR210,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR210,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR210,TaxBracket2,1),0,1,1)-$AI210-$AK210),IF($AR210<Setup!$C$21,($AR210*Setup!$D$21)-$AI210-$AK210,(($AR210-VLOOKUP($AR210,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR210,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR210,TaxBracket1,1),0,1,1)-$AI210-$AK210))))","v":0},{"$f":"IF(ISNUMBER($AL210),($AX210*$AL210)-$AI210-$AK210,MAX(0,IF($AL210=\"B\",IF($AX210<Setup!$C$32,($AX210*Setup!$D$32)-$AI210-$AK210,(($AX210-VLOOKUP($AX210,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX210,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX210,TaxBracket2,1),0,1,1)-$AI210-$AK210),IF($AX210<Setup!$C$21,($AX210*Setup!$D$21)-$AI210-$AK210,(($AX210-VLOOKUP($AX210,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX210,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX210,TaxBracket1,1),0,1,1)-$AI210-$AK210))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A211)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B211,\"yyyy\")&TEXT($B211,\"mm\")&\"-\"&$C211)","v":"-"},{"$f":"IF(ROW($A211)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A211)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A211)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A211)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A211)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A211)-ROW($A$6)-IF(ROW($A211)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A211)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C211,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C211,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C211,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C211,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C211,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C211,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC211),MONTH($AC211)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C211,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC211),MONTH($AC211),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F211<>\"Active\",0,IF(COUNTIFS(OverEmp,$C211,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMIFS(OverValue,OverEmp,$C211,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1)),IF(AND($AC211>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C211)>0),SUMIFS(EmpIncrease,EmpCode,$C211),SUMIFS(EmpSalary,EmpCode,$C211))))","v":0},{"$f":"IF($F211<>\"Active\",0,IF(COUNTIFS(OverEmp,$C211,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMIFS(OverValue,OverEmp,$C211,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1)),0))","v":0},{"$f":"IF($F211<>\"Active\",0,IF(COUNTIFS(OverEmp,$C211,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMIFS(OverValue,OverEmp,$C211,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1)),IF(MONTH(B211)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C211),0)))","v":0},{"$f":"IF($F211<>\"Active\",0,IF(COUNTIFS(OverEmp,$C211,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMIFS(OverValue,OverEmp,$C211,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1)),0))","v":0},{"$f":"IF($F211<>\"Active\",0,IF(COUNTIFS(OverEmp,$C211,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMIFS(OverValue,OverEmp,$C211,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C211,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMIFS(OverValue,OverEmp,$C211,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1)),(($BA211/12*$AA211)+(BB211*IF(1-$BC211=0,0,BD211/(1-$BC211))))-IF($F211=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC211,PayEmp,$C211)))","v":0},{"$f":"IF($F211=\"Terminated\",0,IF($AA211=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C211,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMIFS(OverValue,OverEmp,$C211,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA211)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA211,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211))))))","v":0},{"$f":"IF($F211=\"Terminated\",0,IF($AA211=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C211,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMIFS(OverValue,OverEmp,$C211,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA211)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA211,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211))))))","v":0},{"$f":"IF($F211=\"Terminated\",0,IF($AA211=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C211,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMIFS(OverValue,OverEmp,$C211,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA211)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA211,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211))))))","v":0},{"$f":"IF($F211=\"Terminated\",0,IF($AA211=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C211,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMIFS(OverValue,OverEmp,$C211,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA211)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA211,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211))))))","v":0},0,0,{"$f":"IF($F211=\"Terminated\",0,IF($AA211=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C211,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMIFS(OverValue,OverEmp,$C211,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA211)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA211,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211)))))))","v":0},{"$f":"IF($F211=\"Terminated\",0,IF($AA211=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C211,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMIFS(OverValue,OverEmp,$C211,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA211)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA211,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211)))))))","v":0},{"$f":"IF($F211=\"Terminated\",0,IF($AA211=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C211,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMIFS(OverValue,OverEmp,$C211,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA211)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA211,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211)))))))","v":0},{"$f":"IF($F211=\"Terminated\",0,IF($AA211=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C211,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMIFS(OverValue,OverEmp,$C211,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA211)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA211,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC211,PayEmp,$C211)))))))","v":0},0,0,0,{"$f":"IF(OR($B211<=Setup!$E$12,$B211>=Setup!$D$12+1),0,IF($F211<>\"Active\",0,IF($AE211=\"Yes\",$AB211,((YEAR($AC211)*12)+MONTH($AC211))-((YEAR($AD211)*12)+MONTH($AD211)-1))))","v":0},{"$f":"IF(OR($B211<=Setup!$E$12,$B211>=Setup!$D$12+1),0,((YEAR($AC211)*12)+MONTH($AC211))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C211,EmpAll,COLUMN(Emp!$E$4),0)),$AC211,IF(VLOOKUP($C211,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C211,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C211,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C211,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C211,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A211=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C211,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMIFS(OverValue,OverEmp,$C211,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1)),IF(ISNA(VLOOKUP($C211,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG211,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C211,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C211,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C211,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C211,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C211,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F211=\"Terminated\",0,IF($AA211=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C211,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA211*12)+(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB211/3,0))*4)+(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB211/6,0))*2)+(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F211=\"Terminated\",0,IF($AA211=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C211,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA211*12)+(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB211/3,0))*4)+(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB211/6,0))*2)+(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F211=\"Terminated\",0,IF($AA211=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C211,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA211*12)+(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB211/3,0))*4)+(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB211/6,0))*2)+(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F211=\"Terminated\",0,IF($AA211=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C211,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA211*12)+(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB211/3,0))*4)+(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB211/6,0))*2)+(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F211=\"Terminated\",0,IF($AA211=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C211,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA211*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F211=\"Terminated\",0,IF($AA211=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C211,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA211*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F211=\"Terminated\",0,IF($AA211=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C211,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA211*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F211=\"Terminated\",0,IF($AA211=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C211,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC211),MONTH($AC211)+1,1),OverEnd,\">=\"&DATE(YEAR($AC211),MONTH($AC211),1))>0,SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA211*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C211)*(PayDate<=$AC211)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA211*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C211,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C211,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL211),($AR211*$AL211)-$AI211-$AK211,MAX(0,IF($AL211=\"B\",IF($AR211<Setup!$C$32,($AR211*Setup!$D$32)-$AI211-$AK211,(($AR211-VLOOKUP($AR211,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR211,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR211,TaxBracket2,1),0,1,1)-$AI211-$AK211),IF($AR211<Setup!$C$21,($AR211*Setup!$D$21)-$AI211-$AK211,(($AR211-VLOOKUP($AR211,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR211,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR211,TaxBracket1,1),0,1,1)-$AI211-$AK211))))","v":0},{"$f":"IF(ISNUMBER($AL211),($AX211*$AL211)-$AI211-$AK211,MAX(0,IF($AL211=\"B\",IF($AX211<Setup!$C$32,($AX211*Setup!$D$32)-$AI211-$AK211,(($AX211-VLOOKUP($AX211,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX211,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX211,TaxBracket2,1),0,1,1)-$AI211-$AK211),IF($AX211<Setup!$C$21,($AX211*Setup!$D$21)-$AI211-$AK211,(($AX211-VLOOKUP($AX211,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX211,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX211,TaxBracket1,1),0,1,1)-$AI211-$AK211))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A212)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B212,\"yyyy\")&TEXT($B212,\"mm\")&\"-\"&$C212)","v":"-"},{"$f":"IF(ROW($A212)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A212)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A212)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A212)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A212)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A212)-ROW($A$6)-IF(ROW($A212)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A212)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C212,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C212,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C212,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C212,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C212,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C212,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC212),MONTH($AC212)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C212,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC212),MONTH($AC212),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F212<>\"Active\",0,IF(COUNTIFS(OverEmp,$C212,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMIFS(OverValue,OverEmp,$C212,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1)),IF(AND($AC212>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C212)>0),SUMIFS(EmpIncrease,EmpCode,$C212),SUMIFS(EmpSalary,EmpCode,$C212))))","v":0},{"$f":"IF($F212<>\"Active\",0,IF(COUNTIFS(OverEmp,$C212,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMIFS(OverValue,OverEmp,$C212,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1)),0))","v":0},{"$f":"IF($F212<>\"Active\",0,IF(COUNTIFS(OverEmp,$C212,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMIFS(OverValue,OverEmp,$C212,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1)),IF(MONTH(B212)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C212),0)))","v":0},{"$f":"IF($F212<>\"Active\",0,IF(COUNTIFS(OverEmp,$C212,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMIFS(OverValue,OverEmp,$C212,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1)),0))","v":0},{"$f":"IF($F212<>\"Active\",0,IF(COUNTIFS(OverEmp,$C212,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMIFS(OverValue,OverEmp,$C212,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C212,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMIFS(OverValue,OverEmp,$C212,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1)),(($BA212/12*$AA212)+(BB212*IF(1-$BC212=0,0,BD212/(1-$BC212))))-IF($F212=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC212,PayEmp,$C212)))","v":0},{"$f":"IF($F212=\"Terminated\",0,IF($AA212=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C212,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMIFS(OverValue,OverEmp,$C212,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA212)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA212,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212))))))","v":0},{"$f":"IF($F212=\"Terminated\",0,IF($AA212=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C212,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMIFS(OverValue,OverEmp,$C212,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA212)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA212,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212))))))","v":0},{"$f":"IF($F212=\"Terminated\",0,IF($AA212=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C212,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMIFS(OverValue,OverEmp,$C212,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA212)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA212,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212))))))","v":0},{"$f":"IF($F212=\"Terminated\",0,IF($AA212=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C212,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMIFS(OverValue,OverEmp,$C212,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA212)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA212,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212))))))","v":0},0,0,{"$f":"IF($F212=\"Terminated\",0,IF($AA212=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C212,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMIFS(OverValue,OverEmp,$C212,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA212)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA212,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212)))))))","v":0},{"$f":"IF($F212=\"Terminated\",0,IF($AA212=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C212,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMIFS(OverValue,OverEmp,$C212,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA212)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA212,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212)))))))","v":0},{"$f":"IF($F212=\"Terminated\",0,IF($AA212=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C212,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMIFS(OverValue,OverEmp,$C212,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA212)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA212,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212)))))))","v":0},{"$f":"IF($F212=\"Terminated\",0,IF($AA212=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C212,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMIFS(OverValue,OverEmp,$C212,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA212)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA212,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC212,PayEmp,$C212)))))))","v":0},0,0,0,{"$f":"IF(OR($B212<=Setup!$E$12,$B212>=Setup!$D$12+1),0,IF($F212<>\"Active\",0,IF($AE212=\"Yes\",$AB212,((YEAR($AC212)*12)+MONTH($AC212))-((YEAR($AD212)*12)+MONTH($AD212)-1))))","v":0},{"$f":"IF(OR($B212<=Setup!$E$12,$B212>=Setup!$D$12+1),0,((YEAR($AC212)*12)+MONTH($AC212))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C212,EmpAll,COLUMN(Emp!$E$4),0)),$AC212,IF(VLOOKUP($C212,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C212,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C212,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C212,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C212,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A212=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C212,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMIFS(OverValue,OverEmp,$C212,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1)),IF(ISNA(VLOOKUP($C212,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG212,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C212,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C212,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C212,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C212,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C212,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F212=\"Terminated\",0,IF($AA212=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C212,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA212*12)+(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB212/3,0))*4)+(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB212/6,0))*2)+(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F212=\"Terminated\",0,IF($AA212=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C212,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA212*12)+(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB212/3,0))*4)+(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB212/6,0))*2)+(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F212=\"Terminated\",0,IF($AA212=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C212,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA212*12)+(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB212/3,0))*4)+(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB212/6,0))*2)+(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F212=\"Terminated\",0,IF($AA212=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C212,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA212*12)+(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB212/3,0))*4)+(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB212/6,0))*2)+(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F212=\"Terminated\",0,IF($AA212=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C212,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA212*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F212=\"Terminated\",0,IF($AA212=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C212,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA212*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F212=\"Terminated\",0,IF($AA212=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C212,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA212*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F212=\"Terminated\",0,IF($AA212=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C212,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC212),MONTH($AC212)+1,1),OverEnd,\">=\"&DATE(YEAR($AC212),MONTH($AC212),1))>0,SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA212*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C212)*(PayDate<=$AC212)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA212*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C212,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C212,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL212),($AR212*$AL212)-$AI212-$AK212,MAX(0,IF($AL212=\"B\",IF($AR212<Setup!$C$32,($AR212*Setup!$D$32)-$AI212-$AK212,(($AR212-VLOOKUP($AR212,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR212,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR212,TaxBracket2,1),0,1,1)-$AI212-$AK212),IF($AR212<Setup!$C$21,($AR212*Setup!$D$21)-$AI212-$AK212,(($AR212-VLOOKUP($AR212,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR212,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR212,TaxBracket1,1),0,1,1)-$AI212-$AK212))))","v":0},{"$f":"IF(ISNUMBER($AL212),($AX212*$AL212)-$AI212-$AK212,MAX(0,IF($AL212=\"B\",IF($AX212<Setup!$C$32,($AX212*Setup!$D$32)-$AI212-$AK212,(($AX212-VLOOKUP($AX212,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX212,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX212,TaxBracket2,1),0,1,1)-$AI212-$AK212),IF($AX212<Setup!$C$21,($AX212*Setup!$D$21)-$AI212-$AK212,(($AX212-VLOOKUP($AX212,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX212,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX212,TaxBracket1,1),0,1,1)-$AI212-$AK212))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A213)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B213,\"yyyy\")&TEXT($B213,\"mm\")&\"-\"&$C213)","v":"-"},{"$f":"IF(ROW($A213)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A213)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A213)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A213)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A213)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A213)-ROW($A$6)-IF(ROW($A213)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A213)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C213,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C213,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C213,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C213,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C213,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C213,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC213),MONTH($AC213)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C213,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC213),MONTH($AC213),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F213<>\"Active\",0,IF(COUNTIFS(OverEmp,$C213,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMIFS(OverValue,OverEmp,$C213,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1)),IF(AND($AC213>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C213)>0),SUMIFS(EmpIncrease,EmpCode,$C213),SUMIFS(EmpSalary,EmpCode,$C213))))","v":0},{"$f":"IF($F213<>\"Active\",0,IF(COUNTIFS(OverEmp,$C213,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMIFS(OverValue,OverEmp,$C213,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1)),0))","v":0},{"$f":"IF($F213<>\"Active\",0,IF(COUNTIFS(OverEmp,$C213,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMIFS(OverValue,OverEmp,$C213,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1)),IF(MONTH(B213)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C213),0)))","v":0},{"$f":"IF($F213<>\"Active\",0,IF(COUNTIFS(OverEmp,$C213,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMIFS(OverValue,OverEmp,$C213,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1)),0))","v":0},{"$f":"IF($F213<>\"Active\",0,IF(COUNTIFS(OverEmp,$C213,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMIFS(OverValue,OverEmp,$C213,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C213,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMIFS(OverValue,OverEmp,$C213,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1)),(($BA213/12*$AA213)+(BB213*IF(1-$BC213=0,0,BD213/(1-$BC213))))-IF($F213=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC213,PayEmp,$C213)))","v":0},{"$f":"IF($F213=\"Terminated\",0,IF($AA213=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C213,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMIFS(OverValue,OverEmp,$C213,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA213)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA213,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213))))))","v":0},{"$f":"IF($F213=\"Terminated\",0,IF($AA213=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C213,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMIFS(OverValue,OverEmp,$C213,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA213)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA213,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213))))))","v":0},{"$f":"IF($F213=\"Terminated\",0,IF($AA213=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C213,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMIFS(OverValue,OverEmp,$C213,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA213)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA213,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213))))))","v":0},{"$f":"IF($F213=\"Terminated\",0,IF($AA213=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C213,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMIFS(OverValue,OverEmp,$C213,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA213)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA213,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213))))))","v":0},0,0,{"$f":"IF($F213=\"Terminated\",0,IF($AA213=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C213,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMIFS(OverValue,OverEmp,$C213,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA213)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA213,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213)))))))","v":0},{"$f":"IF($F213=\"Terminated\",0,IF($AA213=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C213,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMIFS(OverValue,OverEmp,$C213,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA213)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA213,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213)))))))","v":0},{"$f":"IF($F213=\"Terminated\",0,IF($AA213=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C213,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMIFS(OverValue,OverEmp,$C213,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA213)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA213,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213)))))))","v":0},{"$f":"IF($F213=\"Terminated\",0,IF($AA213=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C213,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMIFS(OverValue,OverEmp,$C213,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA213)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA213,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC213,PayEmp,$C213)))))))","v":0},0,0,0,{"$f":"IF(OR($B213<=Setup!$E$12,$B213>=Setup!$D$12+1),0,IF($F213<>\"Active\",0,IF($AE213=\"Yes\",$AB213,((YEAR($AC213)*12)+MONTH($AC213))-((YEAR($AD213)*12)+MONTH($AD213)-1))))","v":0},{"$f":"IF(OR($B213<=Setup!$E$12,$B213>=Setup!$D$12+1),0,((YEAR($AC213)*12)+MONTH($AC213))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C213,EmpAll,COLUMN(Emp!$E$4),0)),$AC213,IF(VLOOKUP($C213,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C213,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C213,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C213,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C213,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A213=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C213,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMIFS(OverValue,OverEmp,$C213,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1)),IF(ISNA(VLOOKUP($C213,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG213,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C213,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C213,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C213,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C213,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C213,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F213=\"Terminated\",0,IF($AA213=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C213,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA213*12)+(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB213/3,0))*4)+(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB213/6,0))*2)+(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F213=\"Terminated\",0,IF($AA213=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C213,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA213*12)+(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB213/3,0))*4)+(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB213/6,0))*2)+(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F213=\"Terminated\",0,IF($AA213=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C213,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA213*12)+(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB213/3,0))*4)+(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB213/6,0))*2)+(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F213=\"Terminated\",0,IF($AA213=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C213,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA213*12)+(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB213/3,0))*4)+(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB213/6,0))*2)+(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F213=\"Terminated\",0,IF($AA213=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C213,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA213*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F213=\"Terminated\",0,IF($AA213=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C213,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA213*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F213=\"Terminated\",0,IF($AA213=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C213,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA213*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F213=\"Terminated\",0,IF($AA213=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C213,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC213),MONTH($AC213)+1,1),OverEnd,\">=\"&DATE(YEAR($AC213),MONTH($AC213),1))>0,SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA213*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C213)*(PayDate<=$AC213)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA213*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C213,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C213,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL213),($AR213*$AL213)-$AI213-$AK213,MAX(0,IF($AL213=\"B\",IF($AR213<Setup!$C$32,($AR213*Setup!$D$32)-$AI213-$AK213,(($AR213-VLOOKUP($AR213,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR213,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR213,TaxBracket2,1),0,1,1)-$AI213-$AK213),IF($AR213<Setup!$C$21,($AR213*Setup!$D$21)-$AI213-$AK213,(($AR213-VLOOKUP($AR213,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR213,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR213,TaxBracket1,1),0,1,1)-$AI213-$AK213))))","v":0},{"$f":"IF(ISNUMBER($AL213),($AX213*$AL213)-$AI213-$AK213,MAX(0,IF($AL213=\"B\",IF($AX213<Setup!$C$32,($AX213*Setup!$D$32)-$AI213-$AK213,(($AX213-VLOOKUP($AX213,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX213,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX213,TaxBracket2,1),0,1,1)-$AI213-$AK213),IF($AX213<Setup!$C$21,($AX213*Setup!$D$21)-$AI213-$AK213,(($AX213-VLOOKUP($AX213,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX213,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX213,TaxBracket1,1),0,1,1)-$AI213-$AK213))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A214)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B214,\"yyyy\")&TEXT($B214,\"mm\")&\"-\"&$C214)","v":"-"},{"$f":"IF(ROW($A214)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A214)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A214)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A214)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A214)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A214)-ROW($A$6)-IF(ROW($A214)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A214)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C214,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C214,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C214,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C214,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C214,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C214,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC214),MONTH($AC214)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C214,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC214),MONTH($AC214),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F214<>\"Active\",0,IF(COUNTIFS(OverEmp,$C214,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMIFS(OverValue,OverEmp,$C214,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1)),IF(AND($AC214>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C214)>0),SUMIFS(EmpIncrease,EmpCode,$C214),SUMIFS(EmpSalary,EmpCode,$C214))))","v":0},{"$f":"IF($F214<>\"Active\",0,IF(COUNTIFS(OverEmp,$C214,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMIFS(OverValue,OverEmp,$C214,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1)),0))","v":0},{"$f":"IF($F214<>\"Active\",0,IF(COUNTIFS(OverEmp,$C214,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMIFS(OverValue,OverEmp,$C214,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1)),IF(MONTH(B214)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C214),0)))","v":0},{"$f":"IF($F214<>\"Active\",0,IF(COUNTIFS(OverEmp,$C214,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMIFS(OverValue,OverEmp,$C214,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1)),0))","v":0},{"$f":"IF($F214<>\"Active\",0,IF(COUNTIFS(OverEmp,$C214,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMIFS(OverValue,OverEmp,$C214,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C214,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMIFS(OverValue,OverEmp,$C214,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1)),(($BA214/12*$AA214)+(BB214*IF(1-$BC214=0,0,BD214/(1-$BC214))))-IF($F214=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC214,PayEmp,$C214)))","v":0},{"$f":"IF($F214=\"Terminated\",0,IF($AA214=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C214,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMIFS(OverValue,OverEmp,$C214,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA214)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA214,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214))))))","v":0},{"$f":"IF($F214=\"Terminated\",0,IF($AA214=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C214,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMIFS(OverValue,OverEmp,$C214,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA214)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA214,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214))))))","v":0},{"$f":"IF($F214=\"Terminated\",0,IF($AA214=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C214,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMIFS(OverValue,OverEmp,$C214,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA214)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA214,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214))))))","v":0},{"$f":"IF($F214=\"Terminated\",0,IF($AA214=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C214,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMIFS(OverValue,OverEmp,$C214,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA214)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA214,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214))))))","v":0},0,0,{"$f":"IF($F214=\"Terminated\",0,IF($AA214=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C214,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMIFS(OverValue,OverEmp,$C214,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA214)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA214,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214)))))))","v":0},{"$f":"IF($F214=\"Terminated\",0,IF($AA214=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C214,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMIFS(OverValue,OverEmp,$C214,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA214)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA214,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214)))))))","v":0},{"$f":"IF($F214=\"Terminated\",0,IF($AA214=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C214,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMIFS(OverValue,OverEmp,$C214,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA214)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA214,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214)))))))","v":0},{"$f":"IF($F214=\"Terminated\",0,IF($AA214=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C214,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMIFS(OverValue,OverEmp,$C214,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA214)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA214,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC214,PayEmp,$C214)))))))","v":0},0,0,0,{"$f":"IF(OR($B214<=Setup!$E$12,$B214>=Setup!$D$12+1),0,IF($F214<>\"Active\",0,IF($AE214=\"Yes\",$AB214,((YEAR($AC214)*12)+MONTH($AC214))-((YEAR($AD214)*12)+MONTH($AD214)-1))))","v":0},{"$f":"IF(OR($B214<=Setup!$E$12,$B214>=Setup!$D$12+1),0,((YEAR($AC214)*12)+MONTH($AC214))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C214,EmpAll,COLUMN(Emp!$E$4),0)),$AC214,IF(VLOOKUP($C214,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C214,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C214,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C214,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C214,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A214=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C214,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMIFS(OverValue,OverEmp,$C214,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1)),IF(ISNA(VLOOKUP($C214,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG214,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C214,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C214,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C214,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C214,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C214,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F214=\"Terminated\",0,IF($AA214=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C214,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA214*12)+(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB214/3,0))*4)+(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB214/6,0))*2)+(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F214=\"Terminated\",0,IF($AA214=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C214,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA214*12)+(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB214/3,0))*4)+(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB214/6,0))*2)+(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F214=\"Terminated\",0,IF($AA214=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C214,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA214*12)+(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB214/3,0))*4)+(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB214/6,0))*2)+(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F214=\"Terminated\",0,IF($AA214=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C214,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA214*12)+(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB214/3,0))*4)+(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB214/6,0))*2)+(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F214=\"Terminated\",0,IF($AA214=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C214,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA214*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F214=\"Terminated\",0,IF($AA214=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C214,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA214*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F214=\"Terminated\",0,IF($AA214=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C214,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA214*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F214=\"Terminated\",0,IF($AA214=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C214,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC214),MONTH($AC214)+1,1),OverEnd,\">=\"&DATE(YEAR($AC214),MONTH($AC214),1))>0,SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA214*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C214)*(PayDate<=$AC214)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA214*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C214,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C214,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL214),($AR214*$AL214)-$AI214-$AK214,MAX(0,IF($AL214=\"B\",IF($AR214<Setup!$C$32,($AR214*Setup!$D$32)-$AI214-$AK214,(($AR214-VLOOKUP($AR214,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR214,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR214,TaxBracket2,1),0,1,1)-$AI214-$AK214),IF($AR214<Setup!$C$21,($AR214*Setup!$D$21)-$AI214-$AK214,(($AR214-VLOOKUP($AR214,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR214,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR214,TaxBracket1,1),0,1,1)-$AI214-$AK214))))","v":0},{"$f":"IF(ISNUMBER($AL214),($AX214*$AL214)-$AI214-$AK214,MAX(0,IF($AL214=\"B\",IF($AX214<Setup!$C$32,($AX214*Setup!$D$32)-$AI214-$AK214,(($AX214-VLOOKUP($AX214,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX214,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX214,TaxBracket2,1),0,1,1)-$AI214-$AK214),IF($AX214<Setup!$C$21,($AX214*Setup!$D$21)-$AI214-$AK214,(($AX214-VLOOKUP($AX214,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX214,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX214,TaxBracket1,1),0,1,1)-$AI214-$AK214))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A215)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B215,\"yyyy\")&TEXT($B215,\"mm\")&\"-\"&$C215)","v":"-"},{"$f":"IF(ROW($A215)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A215)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A215)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A215)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A215)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A215)-ROW($A$6)-IF(ROW($A215)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A215)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C215,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C215,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C215,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C215,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C215,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C215,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC215),MONTH($AC215)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C215,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC215),MONTH($AC215),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F215<>\"Active\",0,IF(COUNTIFS(OverEmp,$C215,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMIFS(OverValue,OverEmp,$C215,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1)),IF(AND($AC215>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C215)>0),SUMIFS(EmpIncrease,EmpCode,$C215),SUMIFS(EmpSalary,EmpCode,$C215))))","v":0},{"$f":"IF($F215<>\"Active\",0,IF(COUNTIFS(OverEmp,$C215,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMIFS(OverValue,OverEmp,$C215,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1)),0))","v":0},{"$f":"IF($F215<>\"Active\",0,IF(COUNTIFS(OverEmp,$C215,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMIFS(OverValue,OverEmp,$C215,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1)),IF(MONTH(B215)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C215),0)))","v":0},{"$f":"IF($F215<>\"Active\",0,IF(COUNTIFS(OverEmp,$C215,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMIFS(OverValue,OverEmp,$C215,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1)),0))","v":0},{"$f":"IF($F215<>\"Active\",0,IF(COUNTIFS(OverEmp,$C215,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMIFS(OverValue,OverEmp,$C215,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C215,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMIFS(OverValue,OverEmp,$C215,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1)),(($BA215/12*$AA215)+(BB215*IF(1-$BC215=0,0,BD215/(1-$BC215))))-IF($F215=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC215,PayEmp,$C215)))","v":0},{"$f":"IF($F215=\"Terminated\",0,IF($AA215=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C215,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMIFS(OverValue,OverEmp,$C215,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA215)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA215,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215))))))","v":0},{"$f":"IF($F215=\"Terminated\",0,IF($AA215=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C215,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMIFS(OverValue,OverEmp,$C215,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA215)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA215,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215))))))","v":0},{"$f":"IF($F215=\"Terminated\",0,IF($AA215=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C215,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMIFS(OverValue,OverEmp,$C215,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA215)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA215,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215))))))","v":0},{"$f":"IF($F215=\"Terminated\",0,IF($AA215=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C215,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMIFS(OverValue,OverEmp,$C215,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA215)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA215,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215))))))","v":0},0,0,{"$f":"IF($F215=\"Terminated\",0,IF($AA215=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C215,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMIFS(OverValue,OverEmp,$C215,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA215)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA215,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215)))))))","v":0},{"$f":"IF($F215=\"Terminated\",0,IF($AA215=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C215,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMIFS(OverValue,OverEmp,$C215,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA215)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA215,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215)))))))","v":0},{"$f":"IF($F215=\"Terminated\",0,IF($AA215=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C215,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMIFS(OverValue,OverEmp,$C215,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA215)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA215,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215)))))))","v":0},{"$f":"IF($F215=\"Terminated\",0,IF($AA215=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C215,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMIFS(OverValue,OverEmp,$C215,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA215)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA215,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC215,PayEmp,$C215)))))))","v":0},0,0,0,{"$f":"IF(OR($B215<=Setup!$E$12,$B215>=Setup!$D$12+1),0,IF($F215<>\"Active\",0,IF($AE215=\"Yes\",$AB215,((YEAR($AC215)*12)+MONTH($AC215))-((YEAR($AD215)*12)+MONTH($AD215)-1))))","v":0},{"$f":"IF(OR($B215<=Setup!$E$12,$B215>=Setup!$D$12+1),0,((YEAR($AC215)*12)+MONTH($AC215))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C215,EmpAll,COLUMN(Emp!$E$4),0)),$AC215,IF(VLOOKUP($C215,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C215,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C215,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C215,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C215,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A215=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C215,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMIFS(OverValue,OverEmp,$C215,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1)),IF(ISNA(VLOOKUP($C215,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG215,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C215,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C215,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C215,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C215,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C215,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F215=\"Terminated\",0,IF($AA215=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C215,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA215*12)+(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB215/3,0))*4)+(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB215/6,0))*2)+(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F215=\"Terminated\",0,IF($AA215=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C215,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA215*12)+(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB215/3,0))*4)+(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB215/6,0))*2)+(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F215=\"Terminated\",0,IF($AA215=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C215,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA215*12)+(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB215/3,0))*4)+(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB215/6,0))*2)+(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F215=\"Terminated\",0,IF($AA215=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C215,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA215*12)+(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB215/3,0))*4)+(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB215/6,0))*2)+(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F215=\"Terminated\",0,IF($AA215=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C215,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA215*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F215=\"Terminated\",0,IF($AA215=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C215,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA215*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F215=\"Terminated\",0,IF($AA215=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C215,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA215*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F215=\"Terminated\",0,IF($AA215=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C215,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC215),MONTH($AC215)+1,1),OverEnd,\">=\"&DATE(YEAR($AC215),MONTH($AC215),1))>0,SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA215*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C215)*(PayDate<=$AC215)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA215*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C215,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C215,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL215),($AR215*$AL215)-$AI215-$AK215,MAX(0,IF($AL215=\"B\",IF($AR215<Setup!$C$32,($AR215*Setup!$D$32)-$AI215-$AK215,(($AR215-VLOOKUP($AR215,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR215,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR215,TaxBracket2,1),0,1,1)-$AI215-$AK215),IF($AR215<Setup!$C$21,($AR215*Setup!$D$21)-$AI215-$AK215,(($AR215-VLOOKUP($AR215,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR215,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR215,TaxBracket1,1),0,1,1)-$AI215-$AK215))))","v":0},{"$f":"IF(ISNUMBER($AL215),($AX215*$AL215)-$AI215-$AK215,MAX(0,IF($AL215=\"B\",IF($AX215<Setup!$C$32,($AX215*Setup!$D$32)-$AI215-$AK215,(($AX215-VLOOKUP($AX215,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX215,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX215,TaxBracket2,1),0,1,1)-$AI215-$AK215),IF($AX215<Setup!$C$21,($AX215*Setup!$D$21)-$AI215-$AK215,(($AX215-VLOOKUP($AX215,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX215,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX215,TaxBracket1,1),0,1,1)-$AI215-$AK215))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A216)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B216,\"yyyy\")&TEXT($B216,\"mm\")&\"-\"&$C216)","v":"-"},{"$f":"IF(ROW($A216)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A216)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A216)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A216)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A216)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A216)-ROW($A$6)-IF(ROW($A216)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A216)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C216,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C216,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C216,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C216,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C216,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C216,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC216),MONTH($AC216)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C216,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC216),MONTH($AC216),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F216<>\"Active\",0,IF(COUNTIFS(OverEmp,$C216,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMIFS(OverValue,OverEmp,$C216,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1)),IF(AND($AC216>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C216)>0),SUMIFS(EmpIncrease,EmpCode,$C216),SUMIFS(EmpSalary,EmpCode,$C216))))","v":0},{"$f":"IF($F216<>\"Active\",0,IF(COUNTIFS(OverEmp,$C216,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMIFS(OverValue,OverEmp,$C216,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1)),0))","v":0},{"$f":"IF($F216<>\"Active\",0,IF(COUNTIFS(OverEmp,$C216,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMIFS(OverValue,OverEmp,$C216,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1)),IF(MONTH(B216)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C216),0)))","v":0},{"$f":"IF($F216<>\"Active\",0,IF(COUNTIFS(OverEmp,$C216,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMIFS(OverValue,OverEmp,$C216,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1)),0))","v":0},{"$f":"IF($F216<>\"Active\",0,IF(COUNTIFS(OverEmp,$C216,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMIFS(OverValue,OverEmp,$C216,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C216,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMIFS(OverValue,OverEmp,$C216,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1)),(($BA216/12*$AA216)+(BB216*IF(1-$BC216=0,0,BD216/(1-$BC216))))-IF($F216=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC216,PayEmp,$C216)))","v":0},{"$f":"IF($F216=\"Terminated\",0,IF($AA216=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C216,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMIFS(OverValue,OverEmp,$C216,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA216)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA216,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216))))))","v":0},{"$f":"IF($F216=\"Terminated\",0,IF($AA216=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C216,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMIFS(OverValue,OverEmp,$C216,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA216)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA216,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216))))))","v":0},{"$f":"IF($F216=\"Terminated\",0,IF($AA216=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C216,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMIFS(OverValue,OverEmp,$C216,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA216)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA216,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216))))))","v":0},{"$f":"IF($F216=\"Terminated\",0,IF($AA216=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C216,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMIFS(OverValue,OverEmp,$C216,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA216)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA216,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216))))))","v":0},0,0,{"$f":"IF($F216=\"Terminated\",0,IF($AA216=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C216,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMIFS(OverValue,OverEmp,$C216,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA216)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA216,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216)))))))","v":0},{"$f":"IF($F216=\"Terminated\",0,IF($AA216=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C216,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMIFS(OverValue,OverEmp,$C216,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA216)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA216,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216)))))))","v":0},{"$f":"IF($F216=\"Terminated\",0,IF($AA216=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C216,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMIFS(OverValue,OverEmp,$C216,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA216)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA216,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216)))))))","v":0},{"$f":"IF($F216=\"Terminated\",0,IF($AA216=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C216,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMIFS(OverValue,OverEmp,$C216,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA216)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA216,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC216,PayEmp,$C216)))))))","v":0},0,0,0,{"$f":"IF(OR($B216<=Setup!$E$12,$B216>=Setup!$D$12+1),0,IF($F216<>\"Active\",0,IF($AE216=\"Yes\",$AB216,((YEAR($AC216)*12)+MONTH($AC216))-((YEAR($AD216)*12)+MONTH($AD216)-1))))","v":0},{"$f":"IF(OR($B216<=Setup!$E$12,$B216>=Setup!$D$12+1),0,((YEAR($AC216)*12)+MONTH($AC216))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C216,EmpAll,COLUMN(Emp!$E$4),0)),$AC216,IF(VLOOKUP($C216,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C216,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C216,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C216,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C216,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A216=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C216,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMIFS(OverValue,OverEmp,$C216,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1)),IF(ISNA(VLOOKUP($C216,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG216,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C216,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C216,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C216,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C216,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C216,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F216=\"Terminated\",0,IF($AA216=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C216,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA216*12)+(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB216/3,0))*4)+(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB216/6,0))*2)+(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F216=\"Terminated\",0,IF($AA216=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C216,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA216*12)+(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB216/3,0))*4)+(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB216/6,0))*2)+(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F216=\"Terminated\",0,IF($AA216=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C216,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA216*12)+(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB216/3,0))*4)+(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB216/6,0))*2)+(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F216=\"Terminated\",0,IF($AA216=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C216,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA216*12)+(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB216/3,0))*4)+(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB216/6,0))*2)+(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F216=\"Terminated\",0,IF($AA216=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C216,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA216*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F216=\"Terminated\",0,IF($AA216=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C216,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA216*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F216=\"Terminated\",0,IF($AA216=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C216,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA216*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F216=\"Terminated\",0,IF($AA216=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C216,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC216),MONTH($AC216)+1,1),OverEnd,\">=\"&DATE(YEAR($AC216),MONTH($AC216),1))>0,SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA216*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C216)*(PayDate<=$AC216)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA216*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C216,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C216,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL216),($AR216*$AL216)-$AI216-$AK216,MAX(0,IF($AL216=\"B\",IF($AR216<Setup!$C$32,($AR216*Setup!$D$32)-$AI216-$AK216,(($AR216-VLOOKUP($AR216,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR216,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR216,TaxBracket2,1),0,1,1)-$AI216-$AK216),IF($AR216<Setup!$C$21,($AR216*Setup!$D$21)-$AI216-$AK216,(($AR216-VLOOKUP($AR216,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR216,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR216,TaxBracket1,1),0,1,1)-$AI216-$AK216))))","v":0},{"$f":"IF(ISNUMBER($AL216),($AX216*$AL216)-$AI216-$AK216,MAX(0,IF($AL216=\"B\",IF($AX216<Setup!$C$32,($AX216*Setup!$D$32)-$AI216-$AK216,(($AX216-VLOOKUP($AX216,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX216,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX216,TaxBracket2,1),0,1,1)-$AI216-$AK216),IF($AX216<Setup!$C$21,($AX216*Setup!$D$21)-$AI216-$AK216,(($AX216-VLOOKUP($AX216,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX216,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX216,TaxBracket1,1),0,1,1)-$AI216-$AK216))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A217)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B217,\"yyyy\")&TEXT($B217,\"mm\")&\"-\"&$C217)","v":"-"},{"$f":"IF(ROW($A217)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A217)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A217)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A217)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A217)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A217)-ROW($A$6)-IF(ROW($A217)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A217)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C217,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C217,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C217,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C217,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C217,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C217,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC217),MONTH($AC217)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C217,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC217),MONTH($AC217),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F217<>\"Active\",0,IF(COUNTIFS(OverEmp,$C217,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMIFS(OverValue,OverEmp,$C217,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1)),IF(AND($AC217>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C217)>0),SUMIFS(EmpIncrease,EmpCode,$C217),SUMIFS(EmpSalary,EmpCode,$C217))))","v":0},{"$f":"IF($F217<>\"Active\",0,IF(COUNTIFS(OverEmp,$C217,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMIFS(OverValue,OverEmp,$C217,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1)),0))","v":0},{"$f":"IF($F217<>\"Active\",0,IF(COUNTIFS(OverEmp,$C217,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMIFS(OverValue,OverEmp,$C217,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1)),IF(MONTH(B217)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C217),0)))","v":0},{"$f":"IF($F217<>\"Active\",0,IF(COUNTIFS(OverEmp,$C217,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMIFS(OverValue,OverEmp,$C217,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1)),0))","v":0},{"$f":"IF($F217<>\"Active\",0,IF(COUNTIFS(OverEmp,$C217,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMIFS(OverValue,OverEmp,$C217,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1)),0))","v":0},{"$f":"IF($AA217=0,0,SUM(OFFSET($G217,0,0,1,COLUMN($L$6)-COLUMN($G$6))))","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C217,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMIFS(OverValue,OverEmp,$C217,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1)),(($BA217/12*$AA217)+(BB217*IF(1-$BC217=0,0,BD217/(1-$BC217))))-IF($F217=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC217,PayEmp,$C217)))","v":0},{"$f":"IF($F217=\"Terminated\",0,IF($AA217=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C217,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMIFS(OverValue,OverEmp,$C217,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA217)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA217,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217))))))","v":0},{"$f":"IF($F217=\"Terminated\",0,IF($AA217=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C217,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMIFS(OverValue,OverEmp,$C217,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA217)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA217,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217))))))","v":0},{"$f":"IF($F217=\"Terminated\",0,IF($AA217=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C217,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMIFS(OverValue,OverEmp,$C217,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA217)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA217,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217))))))","v":0},{"$f":"IF($F217=\"Terminated\",0,IF($AA217=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C217,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMIFS(OverValue,OverEmp,$C217,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA217)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA217,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217))))))","v":0},{"$f":"SUM(OFFSET(M217,0,0,1,COLUMN($R$6)-COLUMN($M$6)))","v":0},{"$f":"ROUND(SUM(L217,-R217),2)","v":0},{"$f":"IF($F217=\"Terminated\",0,IF($AA217=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C217,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMIFS(OverValue,OverEmp,$C217,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA217)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA217,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217)))))))","v":0},{"$f":"IF($F217=\"Terminated\",0,IF($AA217=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C217,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMIFS(OverValue,OverEmp,$C217,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA217)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA217,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217)))))))","v":0},{"$f":"IF($F217=\"Terminated\",0,IF($AA217=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C217,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMIFS(OverValue,OverEmp,$C217,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA217)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA217,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217)))))))","v":0},{"$f":"IF($F217=\"Terminated\",0,IF($AA217=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C217,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMIFS(OverValue,OverEmp,$C217,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA217)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA217,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC217,PayEmp,$C217)))))))","v":0},{"$f":"SUM(OFFSET($T217,0,0,1,COLUMN($X$6)-COLUMN($T$7)))","v":0},{"$f":"L217+X217","v":0},{"$f":"ROUND(SUM(R217,X217),2)","v":0},{"$f":"IF(OR($B217<=Setup!$E$12,$B217>=Setup!$D$12+1),0,IF($F217<>\"Active\",0,IF($AE217=\"Yes\",$AB217,((YEAR($AC217)*12)+MONTH($AC217))-((YEAR($AD217)*12)+MONTH($AD217)-1))))","v":0},{"$f":"IF(OR($B217<=Setup!$E$12,$B217>=Setup!$D$12+1),0,((YEAR($AC217)*12)+MONTH($AC217))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},{"$f":"DATE(YEAR($B217),MONTH($B217),DAY($B217))","v":45351},{"$f":"IF(ISNA(VLOOKUP($C217,EmpAll,COLUMN(Emp!$E$4),0)),$AC217,IF(VLOOKUP($C217,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C217,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C217,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C217,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C217,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A217=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C217,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMIFS(OverValue,OverEmp,$C217,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1)),IF(ISNA(VLOOKUP($C217,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG217,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C217,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C217,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C217,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C217,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C217,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F217=\"Terminated\",0,IF($AA217=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C217,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA217*12)+(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB217/3,0))*4)+(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB217/6,0))*2)+(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F217=\"Terminated\",0,IF($AA217=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C217,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA217*12)+(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB217/3,0))*4)+(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB217/6,0))*2)+(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F217=\"Terminated\",0,IF($AA217=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C217,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA217*12)+(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB217/3,0))*4)+(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB217/6,0))*2)+(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F217=\"Terminated\",0,IF($AA217=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C217,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA217*12)+(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB217/3,0))*4)+(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB217/6,0))*2)+(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},{"$f":"$AM217+SUM(OFFSET($AM217,0,1,1,COLUMN($AR$2)-COLUMN($AM$2)-1))","v":0},0,{"$f":"-IF($F217=\"Terminated\",0,IF($AA217=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C217,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA217*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F217=\"Terminated\",0,IF($AA217=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C217,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA217*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F217=\"Terminated\",0,IF($AA217=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C217,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA217*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F217=\"Terminated\",0,IF($AA217=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C217,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC217),MONTH($AC217)+1,1),OverEnd,\">=\"&DATE(YEAR($AC217),MONTH($AC217),1))>0,SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA217*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C217)*(PayDate<=$AC217)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA217*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C217,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C217,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},{"$f":"$AS217+SUM(OFFSET($AT217,0,0,1,COLUMN($AX$2)-COLUMN($AT$2)))","v":0},{"$f":"AR217-AX217","v":0},{"$f":"IF(ISNUMBER($AL217),($AR217*$AL217)-$AI217-$AK217,MAX(0,IF($AL217=\"B\",IF($AR217<Setup!$C$32,($AR217*Setup!$D$32)-$AI217-$AK217,(($AR217-VLOOKUP($AR217,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR217,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR217,TaxBracket2,1),0,1,1)-$AI217-$AK217),IF($AR217<Setup!$C$21,($AR217*Setup!$D$21)-$AI217-$AK217,(($AR217-VLOOKUP($AR217,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR217,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR217,TaxBracket1,1),0,1,1)-$AI217-$AK217))))","v":0},{"$f":"IF(ISNUMBER($AL217),($AX217*$AL217)-$AI217-$AK217,MAX(0,IF($AL217=\"B\",IF($AX217<Setup!$C$32,($AX217*Setup!$D$32)-$AI217-$AK217,(($AX217-VLOOKUP($AX217,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX217,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX217,TaxBracket2,1),0,1,1)-$AI217-$AK217),IF($AX217<Setup!$C$21,($AX217*Setup!$D$21)-$AI217-$AK217,(($AX217-VLOOKUP($AX217,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX217,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX217,TaxBracket1,1),0,1,1)-$AI217-$AK217))))","v":0},{"$f":"AZ217-BA217","v":0},0,0,0]
[{"$f":"IF(ROW($A218)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B218,\"yyyy\")&TEXT($B218,\"mm\")&\"-\"&$C218)","v":"-"},{"$f":"IF(ROW($A218)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A218)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A218)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A218)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A218)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A218)-ROW($A$6)-IF(ROW($A218)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A218)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C218,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C218,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C218,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C218,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C218,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C218,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC218),MONTH($AC218)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C218,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC218),MONTH($AC218),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F218<>\"Active\",0,IF(COUNTIFS(OverEmp,$C218,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMIFS(OverValue,OverEmp,$C218,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1)),IF(AND($AC218>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C218)>0),SUMIFS(EmpIncrease,EmpCode,$C218),SUMIFS(EmpSalary,EmpCode,$C218))))","v":0},{"$f":"IF($F218<>\"Active\",0,IF(COUNTIFS(OverEmp,$C218,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMIFS(OverValue,OverEmp,$C218,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1)),0))","v":0},{"$f":"IF($F218<>\"Active\",0,IF(COUNTIFS(OverEmp,$C218,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMIFS(OverValue,OverEmp,$C218,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1)),IF(MONTH(B218)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C218),0)))","v":0},{"$f":"IF($F218<>\"Active\",0,IF(COUNTIFS(OverEmp,$C218,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMIFS(OverValue,OverEmp,$C218,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1)),0))","v":0},{"$f":"IF($F218<>\"Active\",0,IF(COUNTIFS(OverEmp,$C218,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMIFS(OverValue,OverEmp,$C218,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C218,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMIFS(OverValue,OverEmp,$C218,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1)),(($BA218/12*$AA218)+(BB218*IF(1-$BC218=0,0,BD218/(1-$BC218))))-IF($F218=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC218,PayEmp,$C218)))","v":0},{"$f":"IF($F218=\"Terminated\",0,IF($AA218=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C218,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMIFS(OverValue,OverEmp,$C218,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA218)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA218,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218))))))","v":0},{"$f":"IF($F218=\"Terminated\",0,IF($AA218=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C218,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMIFS(OverValue,OverEmp,$C218,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA218)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA218,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218))))))","v":0},{"$f":"IF($F218=\"Terminated\",0,IF($AA218=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C218,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMIFS(OverValue,OverEmp,$C218,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA218)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA218,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218))))))","v":0},{"$f":"IF($F218=\"Terminated\",0,IF($AA218=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C218,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMIFS(OverValue,OverEmp,$C218,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA218)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA218,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218))))))","v":0},0,0,{"$f":"IF($F218=\"Terminated\",0,IF($AA218=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C218,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMIFS(OverValue,OverEmp,$C218,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA218)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA218,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218)))))))","v":0},{"$f":"IF($F218=\"Terminated\",0,IF($AA218=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C218,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMIFS(OverValue,OverEmp,$C218,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA218)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA218,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218)))))))","v":0},{"$f":"IF($F218=\"Terminated\",0,IF($AA218=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C218,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMIFS(OverValue,OverEmp,$C218,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA218)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA218,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218)))))))","v":0},{"$f":"IF($F218=\"Terminated\",0,IF($AA218=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C218,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMIFS(OverValue,OverEmp,$C218,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA218)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA218,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC218,PayEmp,$C218)))))))","v":0},0,0,0,{"$f":"IF(OR($B218<=Setup!$E$12,$B218>=Setup!$D$12+1),0,IF($F218<>\"Active\",0,IF($AE218=\"Yes\",$AB218,((YEAR($AC218)*12)+MONTH($AC218))-((YEAR($AD218)*12)+MONTH($AD218)-1))))","v":0},{"$f":"IF(OR($B218<=Setup!$E$12,$B218>=Setup!$D$12+1),0,((YEAR($AC218)*12)+MONTH($AC218))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C218,EmpAll,COLUMN(Emp!$E$4),0)),$AC218,IF(VLOOKUP($C218,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C218,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C218,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C218,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C218,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A218=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C218,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMIFS(OverValue,OverEmp,$C218,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1)),IF(ISNA(VLOOKUP($C218,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG218,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C218,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C218,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C218,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C218,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C218,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F218=\"Terminated\",0,IF($AA218=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C218,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA218*12)+(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB218/3,0))*4)+(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB218/6,0))*2)+(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F218=\"Terminated\",0,IF($AA218=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C218,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA218*12)+(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB218/3,0))*4)+(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB218/6,0))*2)+(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F218=\"Terminated\",0,IF($AA218=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C218,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA218*12)+(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB218/3,0))*4)+(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB218/6,0))*2)+(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F218=\"Terminated\",0,IF($AA218=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C218,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA218*12)+(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB218/3,0))*4)+(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB218/6,0))*2)+(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F218=\"Terminated\",0,IF($AA218=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C218,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA218*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F218=\"Terminated\",0,IF($AA218=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C218,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA218*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F218=\"Terminated\",0,IF($AA218=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C218,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA218*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F218=\"Terminated\",0,IF($AA218=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C218,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC218),MONTH($AC218)+1,1),OverEnd,\">=\"&DATE(YEAR($AC218),MONTH($AC218),1))>0,SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA218*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C218)*(PayDate<=$AC218)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA218*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C218,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C218,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL218),($AR218*$AL218)-$AI218-$AK218,MAX(0,IF($AL218=\"B\",IF($AR218<Setup!$C$32,($AR218*Setup!$D$32)-$AI218-$AK218,(($AR218-VLOOKUP($AR218,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR218,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR218,TaxBracket2,1),0,1,1)-$AI218-$AK218),IF($AR218<Setup!$C$21,($AR218*Setup!$D$21)-$AI218-$AK218,(($AR218-VLOOKUP($AR218,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR218,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR218,TaxBracket1,1),0,1,1)-$AI218-$AK218))))","v":0},{"$f":"IF(ISNUMBER($AL218),($AX218*$AL218)-$AI218-$AK218,MAX(0,IF($AL218=\"B\",IF($AX218<Setup!$C$32,($AX218*Setup!$D$32)-$AI218-$AK218,(($AX218-VLOOKUP($AX218,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX218,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX218,TaxBracket2,1),0,1,1)-$AI218-$AK218),IF($AX218<Setup!$C$21,($AX218*Setup!$D$21)-$AI218-$AK218,(($AX218-VLOOKUP($AX218,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX218,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX218,TaxBracket1,1),0,1,1)-$AI218-$AK218))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A219)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B219,\"yyyy\")&TEXT($B219,\"mm\")&\"-\"&$C219)","v":"-"},{"$f":"IF(ROW($A219)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A219)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A219)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A219)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A219)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A219)-ROW($A$6)-IF(ROW($A219)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A219)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C219,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C219,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C219,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C219,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C219,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C219,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC219),MONTH($AC219)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C219,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC219),MONTH($AC219),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F219<>\"Active\",0,IF(COUNTIFS(OverEmp,$C219,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMIFS(OverValue,OverEmp,$C219,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1)),IF(AND($AC219>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C219)>0),SUMIFS(EmpIncrease,EmpCode,$C219),SUMIFS(EmpSalary,EmpCode,$C219))))","v":0},{"$f":"IF($F219<>\"Active\",0,IF(COUNTIFS(OverEmp,$C219,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMIFS(OverValue,OverEmp,$C219,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1)),0))","v":0},{"$f":"IF($F219<>\"Active\",0,IF(COUNTIFS(OverEmp,$C219,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMIFS(OverValue,OverEmp,$C219,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1)),IF(MONTH(B219)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C219),0)))","v":0},{"$f":"IF($F219<>\"Active\",0,IF(COUNTIFS(OverEmp,$C219,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMIFS(OverValue,OverEmp,$C219,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1)),0))","v":0},{"$f":"IF($F219<>\"Active\",0,IF(COUNTIFS(OverEmp,$C219,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMIFS(OverValue,OverEmp,$C219,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C219,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMIFS(OverValue,OverEmp,$C219,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1)),(($BA219/12*$AA219)+(BB219*IF(1-$BC219=0,0,BD219/(1-$BC219))))-IF($F219=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC219,PayEmp,$C219)))","v":0},{"$f":"IF($F219=\"Terminated\",0,IF($AA219=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C219,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMIFS(OverValue,OverEmp,$C219,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA219)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA219,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219))))))","v":0},{"$f":"IF($F219=\"Terminated\",0,IF($AA219=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C219,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMIFS(OverValue,OverEmp,$C219,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA219)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA219,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219))))))","v":0},{"$f":"IF($F219=\"Terminated\",0,IF($AA219=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C219,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMIFS(OverValue,OverEmp,$C219,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA219)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA219,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219))))))","v":0},{"$f":"IF($F219=\"Terminated\",0,IF($AA219=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C219,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMIFS(OverValue,OverEmp,$C219,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA219)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA219,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219))))))","v":0},0,0,{"$f":"IF($F219=\"Terminated\",0,IF($AA219=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C219,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMIFS(OverValue,OverEmp,$C219,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA219)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA219,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219)))))))","v":0},{"$f":"IF($F219=\"Terminated\",0,IF($AA219=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C219,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMIFS(OverValue,OverEmp,$C219,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA219)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA219,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219)))))))","v":0},{"$f":"IF($F219=\"Terminated\",0,IF($AA219=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C219,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMIFS(OverValue,OverEmp,$C219,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA219)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA219,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219)))))))","v":0},{"$f":"IF($F219=\"Terminated\",0,IF($AA219=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C219,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMIFS(OverValue,OverEmp,$C219,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA219)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA219,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC219,PayEmp,$C219)))))))","v":0},0,0,0,{"$f":"IF(OR($B219<=Setup!$E$12,$B219>=Setup!$D$12+1),0,IF($F219<>\"Active\",0,IF($AE219=\"Yes\",$AB219,((YEAR($AC219)*12)+MONTH($AC219))-((YEAR($AD219)*12)+MONTH($AD219)-1))))","v":0},{"$f":"IF(OR($B219<=Setup!$E$12,$B219>=Setup!$D$12+1),0,((YEAR($AC219)*12)+MONTH($AC219))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C219,EmpAll,COLUMN(Emp!$E$4),0)),$AC219,IF(VLOOKUP($C219,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C219,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C219,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C219,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C219,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A219=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C219,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMIFS(OverValue,OverEmp,$C219,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1)),IF(ISNA(VLOOKUP($C219,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG219,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C219,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C219,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C219,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C219,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C219,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F219=\"Terminated\",0,IF($AA219=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C219,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA219*12)+(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB219/3,0))*4)+(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB219/6,0))*2)+(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F219=\"Terminated\",0,IF($AA219=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C219,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA219*12)+(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB219/3,0))*4)+(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB219/6,0))*2)+(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F219=\"Terminated\",0,IF($AA219=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C219,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA219*12)+(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB219/3,0))*4)+(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB219/6,0))*2)+(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F219=\"Terminated\",0,IF($AA219=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C219,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA219*12)+(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB219/3,0))*4)+(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB219/6,0))*2)+(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F219=\"Terminated\",0,IF($AA219=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C219,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA219*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F219=\"Terminated\",0,IF($AA219=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C219,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA219*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F219=\"Terminated\",0,IF($AA219=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C219,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA219*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F219=\"Terminated\",0,IF($AA219=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C219,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC219),MONTH($AC219)+1,1),OverEnd,\">=\"&DATE(YEAR($AC219),MONTH($AC219),1))>0,SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA219*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C219)*(PayDate<=$AC219)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA219*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C219,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C219,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL219),($AR219*$AL219)-$AI219-$AK219,MAX(0,IF($AL219=\"B\",IF($AR219<Setup!$C$32,($AR219*Setup!$D$32)-$AI219-$AK219,(($AR219-VLOOKUP($AR219,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR219,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR219,TaxBracket2,1),0,1,1)-$AI219-$AK219),IF($AR219<Setup!$C$21,($AR219*Setup!$D$21)-$AI219-$AK219,(($AR219-VLOOKUP($AR219,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR219,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR219,TaxBracket1,1),0,1,1)-$AI219-$AK219))))","v":0},{"$f":"IF(ISNUMBER($AL219),($AX219*$AL219)-$AI219-$AK219,MAX(0,IF($AL219=\"B\",IF($AX219<Setup!$C$32,($AX219*Setup!$D$32)-$AI219-$AK219,(($AX219-VLOOKUP($AX219,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX219,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX219,TaxBracket2,1),0,1,1)-$AI219-$AK219),IF($AX219<Setup!$C$21,($AX219*Setup!$D$21)-$AI219-$AK219,(($AX219-VLOOKUP($AX219,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX219,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX219,TaxBracket1,1),0,1,1)-$AI219-$AK219))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A220)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B220,\"yyyy\")&TEXT($B220,\"mm\")&\"-\"&$C220)","v":"-"},{"$f":"IF(ROW($A220)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A220)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A220)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A220)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A220)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A220)-ROW($A$6)-IF(ROW($A220)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A220)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C220,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C220,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C220,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C220,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C220,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C220,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC220),MONTH($AC220)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C220,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC220),MONTH($AC220),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F220<>\"Active\",0,IF(COUNTIFS(OverEmp,$C220,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMIFS(OverValue,OverEmp,$C220,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1)),IF(AND($AC220>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C220)>0),SUMIFS(EmpIncrease,EmpCode,$C220),SUMIFS(EmpSalary,EmpCode,$C220))))","v":0},{"$f":"IF($F220<>\"Active\",0,IF(COUNTIFS(OverEmp,$C220,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMIFS(OverValue,OverEmp,$C220,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1)),0))","v":0},{"$f":"IF($F220<>\"Active\",0,IF(COUNTIFS(OverEmp,$C220,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMIFS(OverValue,OverEmp,$C220,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1)),IF(MONTH(B220)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C220),0)))","v":0},{"$f":"IF($F220<>\"Active\",0,IF(COUNTIFS(OverEmp,$C220,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMIFS(OverValue,OverEmp,$C220,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1)),0))","v":0},{"$f":"IF($F220<>\"Active\",0,IF(COUNTIFS(OverEmp,$C220,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMIFS(OverValue,OverEmp,$C220,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C220,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMIFS(OverValue,OverEmp,$C220,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1)),(($BA220/12*$AA220)+(BB220*IF(1-$BC220=0,0,BD220/(1-$BC220))))-IF($F220=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC220,PayEmp,$C220)))","v":0},{"$f":"IF($F220=\"Terminated\",0,IF($AA220=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C220,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMIFS(OverValue,OverEmp,$C220,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA220)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA220,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220))))))","v":0},{"$f":"IF($F220=\"Terminated\",0,IF($AA220=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C220,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMIFS(OverValue,OverEmp,$C220,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA220)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA220,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220))))))","v":0},{"$f":"IF($F220=\"Terminated\",0,IF($AA220=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C220,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMIFS(OverValue,OverEmp,$C220,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA220)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA220,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220))))))","v":0},{"$f":"IF($F220=\"Terminated\",0,IF($AA220=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C220,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMIFS(OverValue,OverEmp,$C220,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA220)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA220,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220))))))","v":0},0,0,{"$f":"IF($F220=\"Terminated\",0,IF($AA220=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C220,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMIFS(OverValue,OverEmp,$C220,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA220)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA220,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220)))))))","v":0},{"$f":"IF($F220=\"Terminated\",0,IF($AA220=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C220,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMIFS(OverValue,OverEmp,$C220,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA220)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA220,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220)))))))","v":0},{"$f":"IF($F220=\"Terminated\",0,IF($AA220=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C220,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMIFS(OverValue,OverEmp,$C220,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA220)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA220,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220)))))))","v":0},{"$f":"IF($F220=\"Terminated\",0,IF($AA220=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C220,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMIFS(OverValue,OverEmp,$C220,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA220)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA220,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC220,PayEmp,$C220)))))))","v":0},0,0,0,{"$f":"IF(OR($B220<=Setup!$E$12,$B220>=Setup!$D$12+1),0,IF($F220<>\"Active\",0,IF($AE220=\"Yes\",$AB220,((YEAR($AC220)*12)+MONTH($AC220))-((YEAR($AD220)*12)+MONTH($AD220)-1))))","v":0},{"$f":"IF(OR($B220<=Setup!$E$12,$B220>=Setup!$D$12+1),0,((YEAR($AC220)*12)+MONTH($AC220))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C220,EmpAll,COLUMN(Emp!$E$4),0)),$AC220,IF(VLOOKUP($C220,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C220,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C220,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C220,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C220,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A220=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C220,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMIFS(OverValue,OverEmp,$C220,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1)),IF(ISNA(VLOOKUP($C220,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG220,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C220,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C220,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C220,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C220,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C220,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F220=\"Terminated\",0,IF($AA220=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C220,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA220*12)+(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB220/3,0))*4)+(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB220/6,0))*2)+(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F220=\"Terminated\",0,IF($AA220=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C220,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA220*12)+(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB220/3,0))*4)+(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB220/6,0))*2)+(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F220=\"Terminated\",0,IF($AA220=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C220,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA220*12)+(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB220/3,0))*4)+(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB220/6,0))*2)+(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F220=\"Terminated\",0,IF($AA220=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C220,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA220*12)+(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB220/3,0))*4)+(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB220/6,0))*2)+(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F220=\"Terminated\",0,IF($AA220=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C220,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA220*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F220=\"Terminated\",0,IF($AA220=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C220,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA220*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F220=\"Terminated\",0,IF($AA220=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C220,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA220*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F220=\"Terminated\",0,IF($AA220=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C220,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC220),MONTH($AC220)+1,1),OverEnd,\">=\"&DATE(YEAR($AC220),MONTH($AC220),1))>0,SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA220*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C220)*(PayDate<=$AC220)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA220*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C220,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C220,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL220),($AR220*$AL220)-$AI220-$AK220,MAX(0,IF($AL220=\"B\",IF($AR220<Setup!$C$32,($AR220*Setup!$D$32)-$AI220-$AK220,(($AR220-VLOOKUP($AR220,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR220,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR220,TaxBracket2,1),0,1,1)-$AI220-$AK220),IF($AR220<Setup!$C$21,($AR220*Setup!$D$21)-$AI220-$AK220,(($AR220-VLOOKUP($AR220,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR220,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR220,TaxBracket1,1),0,1,1)-$AI220-$AK220))))","v":0},{"$f":"IF(ISNUMBER($AL220),($AX220*$AL220)-$AI220-$AK220,MAX(0,IF($AL220=\"B\",IF($AX220<Setup!$C$32,($AX220*Setup!$D$32)-$AI220-$AK220,(($AX220-VLOOKUP($AX220,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX220,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX220,TaxBracket2,1),0,1,1)-$AI220-$AK220),IF($AX220<Setup!$C$21,($AX220*Setup!$D$21)-$AI220-$AK220,(($AX220-VLOOKUP($AX220,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX220,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX220,TaxBracket1,1),0,1,1)-$AI220-$AK220))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A221)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B221,\"yyyy\")&TEXT($B221,\"mm\")&\"-\"&$C221)","v":"-"},{"$f":"IF(ROW($A221)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A221)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A221)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A221)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A221)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A221)-ROW($A$6)-IF(ROW($A221)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A221)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C221,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C221,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C221,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C221,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C221,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C221,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC221),MONTH($AC221)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C221,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC221),MONTH($AC221),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F221<>\"Active\",0,IF(COUNTIFS(OverEmp,$C221,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMIFS(OverValue,OverEmp,$C221,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1)),IF(AND($AC221>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C221)>0),SUMIFS(EmpIncrease,EmpCode,$C221),SUMIFS(EmpSalary,EmpCode,$C221))))","v":0},{"$f":"IF($F221<>\"Active\",0,IF(COUNTIFS(OverEmp,$C221,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMIFS(OverValue,OverEmp,$C221,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1)),0))","v":0},{"$f":"IF($F221<>\"Active\",0,IF(COUNTIFS(OverEmp,$C221,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMIFS(OverValue,OverEmp,$C221,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1)),IF(MONTH(B221)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C221),0)))","v":0},{"$f":"IF($F221<>\"Active\",0,IF(COUNTIFS(OverEmp,$C221,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMIFS(OverValue,OverEmp,$C221,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1)),0))","v":0},{"$f":"IF($F221<>\"Active\",0,IF(COUNTIFS(OverEmp,$C221,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMIFS(OverValue,OverEmp,$C221,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C221,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMIFS(OverValue,OverEmp,$C221,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1)),(($BA221/12*$AA221)+(BB221*IF(1-$BC221=0,0,BD221/(1-$BC221))))-IF($F221=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC221,PayEmp,$C221)))","v":0},{"$f":"IF($F221=\"Terminated\",0,IF($AA221=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C221,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMIFS(OverValue,OverEmp,$C221,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA221)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA221,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221))))))","v":0},{"$f":"IF($F221=\"Terminated\",0,IF($AA221=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C221,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMIFS(OverValue,OverEmp,$C221,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA221)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA221,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221))))))","v":0},{"$f":"IF($F221=\"Terminated\",0,IF($AA221=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C221,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMIFS(OverValue,OverEmp,$C221,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA221)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA221,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221))))))","v":0},{"$f":"IF($F221=\"Terminated\",0,IF($AA221=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C221,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMIFS(OverValue,OverEmp,$C221,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA221)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA221,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221))))))","v":0},0,0,{"$f":"IF($F221=\"Terminated\",0,IF($AA221=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C221,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMIFS(OverValue,OverEmp,$C221,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA221)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA221,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221)))))))","v":0},{"$f":"IF($F221=\"Terminated\",0,IF($AA221=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C221,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMIFS(OverValue,OverEmp,$C221,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA221)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA221,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221)))))))","v":0},{"$f":"IF($F221=\"Terminated\",0,IF($AA221=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C221,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMIFS(OverValue,OverEmp,$C221,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA221)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA221,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221)))))))","v":0},{"$f":"IF($F221=\"Terminated\",0,IF($AA221=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C221,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMIFS(OverValue,OverEmp,$C221,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA221)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA221,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC221,PayEmp,$C221)))))))","v":0},0,0,0,{"$f":"IF(OR($B221<=Setup!$E$12,$B221>=Setup!$D$12+1),0,IF($F221<>\"Active\",0,IF($AE221=\"Yes\",$AB221,((YEAR($AC221)*12)+MONTH($AC221))-((YEAR($AD221)*12)+MONTH($AD221)-1))))","v":0},{"$f":"IF(OR($B221<=Setup!$E$12,$B221>=Setup!$D$12+1),0,((YEAR($AC221)*12)+MONTH($AC221))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C221,EmpAll,COLUMN(Emp!$E$4),0)),$AC221,IF(VLOOKUP($C221,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C221,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C221,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C221,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C221,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A221=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C221,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMIFS(OverValue,OverEmp,$C221,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1)),IF(ISNA(VLOOKUP($C221,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG221,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C221,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C221,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C221,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C221,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C221,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F221=\"Terminated\",0,IF($AA221=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C221,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA221*12)+(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB221/3,0))*4)+(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB221/6,0))*2)+(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F221=\"Terminated\",0,IF($AA221=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C221,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA221*12)+(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB221/3,0))*4)+(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB221/6,0))*2)+(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F221=\"Terminated\",0,IF($AA221=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C221,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA221*12)+(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB221/3,0))*4)+(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB221/6,0))*2)+(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F221=\"Terminated\",0,IF($AA221=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C221,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA221*12)+(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB221/3,0))*4)+(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB221/6,0))*2)+(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F221=\"Terminated\",0,IF($AA221=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C221,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA221*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F221=\"Terminated\",0,IF($AA221=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C221,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA221*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F221=\"Terminated\",0,IF($AA221=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C221,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA221*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F221=\"Terminated\",0,IF($AA221=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C221,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC221),MONTH($AC221)+1,1),OverEnd,\">=\"&DATE(YEAR($AC221),MONTH($AC221),1))>0,SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA221*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C221)*(PayDate<=$AC221)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA221*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C221,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C221,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL221),($AR221*$AL221)-$AI221-$AK221,MAX(0,IF($AL221=\"B\",IF($AR221<Setup!$C$32,($AR221*Setup!$D$32)-$AI221-$AK221,(($AR221-VLOOKUP($AR221,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR221,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR221,TaxBracket2,1),0,1,1)-$AI221-$AK221),IF($AR221<Setup!$C$21,($AR221*Setup!$D$21)-$AI221-$AK221,(($AR221-VLOOKUP($AR221,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR221,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR221,TaxBracket1,1),0,1,1)-$AI221-$AK221))))","v":0},{"$f":"IF(ISNUMBER($AL221),($AX221*$AL221)-$AI221-$AK221,MAX(0,IF($AL221=\"B\",IF($AX221<Setup!$C$32,($AX221*Setup!$D$32)-$AI221-$AK221,(($AX221-VLOOKUP($AX221,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX221,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX221,TaxBracket2,1),0,1,1)-$AI221-$AK221),IF($AX221<Setup!$C$21,($AX221*Setup!$D$21)-$AI221-$AK221,(($AX221-VLOOKUP($AX221,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX221,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX221,TaxBracket1,1),0,1,1)-$AI221-$AK221))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A222)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B222,\"yyyy\")&TEXT($B222,\"mm\")&\"-\"&$C222)","v":"-"},{"$f":"IF(ROW($A222)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A222)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A222)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A222)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A222)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A222)-ROW($A$6)-IF(ROW($A222)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A222)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C222,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C222,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C222,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C222,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C222,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C222,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC222),MONTH($AC222)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C222,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC222),MONTH($AC222),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F222<>\"Active\",0,IF(COUNTIFS(OverEmp,$C222,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMIFS(OverValue,OverEmp,$C222,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1)),IF(AND($AC222>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C222)>0),SUMIFS(EmpIncrease,EmpCode,$C222),SUMIFS(EmpSalary,EmpCode,$C222))))","v":0},{"$f":"IF($F222<>\"Active\",0,IF(COUNTIFS(OverEmp,$C222,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMIFS(OverValue,OverEmp,$C222,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1)),0))","v":0},{"$f":"IF($F222<>\"Active\",0,IF(COUNTIFS(OverEmp,$C222,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMIFS(OverValue,OverEmp,$C222,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1)),IF(MONTH(B222)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C222),0)))","v":0},{"$f":"IF($F222<>\"Active\",0,IF(COUNTIFS(OverEmp,$C222,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMIFS(OverValue,OverEmp,$C222,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1)),0))","v":0},{"$f":"IF($F222<>\"Active\",0,IF(COUNTIFS(OverEmp,$C222,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMIFS(OverValue,OverEmp,$C222,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C222,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMIFS(OverValue,OverEmp,$C222,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1)),(($BA222/12*$AA222)+(BB222*IF(1-$BC222=0,0,BD222/(1-$BC222))))-IF($F222=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC222,PayEmp,$C222)))","v":0},{"$f":"IF($F222=\"Terminated\",0,IF($AA222=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C222,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMIFS(OverValue,OverEmp,$C222,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA222)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA222,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222))))))","v":0},{"$f":"IF($F222=\"Terminated\",0,IF($AA222=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C222,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMIFS(OverValue,OverEmp,$C222,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA222)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA222,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222))))))","v":0},{"$f":"IF($F222=\"Terminated\",0,IF($AA222=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C222,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMIFS(OverValue,OverEmp,$C222,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA222)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA222,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222))))))","v":0},{"$f":"IF($F222=\"Terminated\",0,IF($AA222=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C222,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMIFS(OverValue,OverEmp,$C222,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA222)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA222,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222))))))","v":0},0,0,{"$f":"IF($F222=\"Terminated\",0,IF($AA222=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C222,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMIFS(OverValue,OverEmp,$C222,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA222)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA222,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222)))))))","v":0},{"$f":"IF($F222=\"Terminated\",0,IF($AA222=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C222,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMIFS(OverValue,OverEmp,$C222,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA222)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA222,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222)))))))","v":0},{"$f":"IF($F222=\"Terminated\",0,IF($AA222=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C222,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMIFS(OverValue,OverEmp,$C222,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA222)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA222,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222)))))))","v":0},{"$f":"IF($F222=\"Terminated\",0,IF($AA222=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C222,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMIFS(OverValue,OverEmp,$C222,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA222)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA222,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC222,PayEmp,$C222)))))))","v":0},0,0,0,{"$f":"IF(OR($B222<=Setup!$E$12,$B222>=Setup!$D$12+1),0,IF($F222<>\"Active\",0,IF($AE222=\"Yes\",$AB222,((YEAR($AC222)*12)+MONTH($AC222))-((YEAR($AD222)*12)+MONTH($AD222)-1))))","v":0},{"$f":"IF(OR($B222<=Setup!$E$12,$B222>=Setup!$D$12+1),0,((YEAR($AC222)*12)+MONTH($AC222))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C222,EmpAll,COLUMN(Emp!$E$4),0)),$AC222,IF(VLOOKUP($C222,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C222,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C222,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C222,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C222,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A222=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C222,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMIFS(OverValue,OverEmp,$C222,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1)),IF(ISNA(VLOOKUP($C222,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG222,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C222,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C222,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C222,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C222,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C222,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F222=\"Terminated\",0,IF($AA222=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C222,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA222*12)+(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB222/3,0))*4)+(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB222/6,0))*2)+(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F222=\"Terminated\",0,IF($AA222=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C222,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA222*12)+(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB222/3,0))*4)+(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB222/6,0))*2)+(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F222=\"Terminated\",0,IF($AA222=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C222,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA222*12)+(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB222/3,0))*4)+(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB222/6,0))*2)+(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F222=\"Terminated\",0,IF($AA222=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C222,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA222*12)+(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB222/3,0))*4)+(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB222/6,0))*2)+(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F222=\"Terminated\",0,IF($AA222=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C222,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA222*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F222=\"Terminated\",0,IF($AA222=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C222,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA222*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F222=\"Terminated\",0,IF($AA222=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C222,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA222*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F222=\"Terminated\",0,IF($AA222=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C222,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC222),MONTH($AC222)+1,1),OverEnd,\">=\"&DATE(YEAR($AC222),MONTH($AC222),1))>0,SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA222*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C222)*(PayDate<=$AC222)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA222*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C222,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C222,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL222),($AR222*$AL222)-$AI222-$AK222,MAX(0,IF($AL222=\"B\",IF($AR222<Setup!$C$32,($AR222*Setup!$D$32)-$AI222-$AK222,(($AR222-VLOOKUP($AR222,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR222,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR222,TaxBracket2,1),0,1,1)-$AI222-$AK222),IF($AR222<Setup!$C$21,($AR222*Setup!$D$21)-$AI222-$AK222,(($AR222-VLOOKUP($AR222,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR222,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR222,TaxBracket1,1),0,1,1)-$AI222-$AK222))))","v":0},{"$f":"IF(ISNUMBER($AL222),($AX222*$AL222)-$AI222-$AK222,MAX(0,IF($AL222=\"B\",IF($AX222<Setup!$C$32,($AX222*Setup!$D$32)-$AI222-$AK222,(($AX222-VLOOKUP($AX222,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX222,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX222,TaxBracket2,1),0,1,1)-$AI222-$AK222),IF($AX222<Setup!$C$21,($AX222*Setup!$D$21)-$AI222-$AK222,(($AX222-VLOOKUP($AX222,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX222,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX222,TaxBracket1,1),0,1,1)-$AI222-$AK222))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A223)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B223,\"yyyy\")&TEXT($B223,\"mm\")&\"-\"&$C223)","v":"-"},{"$f":"IF(ROW($A223)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A223)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A223)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A223)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A223)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A223)-ROW($A$6)-IF(ROW($A223)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A223)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C223,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C223,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C223,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C223,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C223,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C223,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC223),MONTH($AC223)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C223,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC223),MONTH($AC223),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F223<>\"Active\",0,IF(COUNTIFS(OverEmp,$C223,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMIFS(OverValue,OverEmp,$C223,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1)),IF(AND($AC223>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C223)>0),SUMIFS(EmpIncrease,EmpCode,$C223),SUMIFS(EmpSalary,EmpCode,$C223))))","v":0},{"$f":"IF($F223<>\"Active\",0,IF(COUNTIFS(OverEmp,$C223,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMIFS(OverValue,OverEmp,$C223,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1)),0))","v":0},{"$f":"IF($F223<>\"Active\",0,IF(COUNTIFS(OverEmp,$C223,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMIFS(OverValue,OverEmp,$C223,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1)),IF(MONTH(B223)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C223),0)))","v":0},{"$f":"IF($F223<>\"Active\",0,IF(COUNTIFS(OverEmp,$C223,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMIFS(OverValue,OverEmp,$C223,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1)),0))","v":0},{"$f":"IF($F223<>\"Active\",0,IF(COUNTIFS(OverEmp,$C223,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMIFS(OverValue,OverEmp,$C223,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C223,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMIFS(OverValue,OverEmp,$C223,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1)),(($BA223/12*$AA223)+(BB223*IF(1-$BC223=0,0,BD223/(1-$BC223))))-IF($F223=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC223,PayEmp,$C223)))","v":0},{"$f":"IF($F223=\"Terminated\",0,IF($AA223=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C223,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMIFS(OverValue,OverEmp,$C223,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA223)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA223,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223))))))","v":0},{"$f":"IF($F223=\"Terminated\",0,IF($AA223=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C223,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMIFS(OverValue,OverEmp,$C223,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA223)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA223,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223))))))","v":0},{"$f":"IF($F223=\"Terminated\",0,IF($AA223=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C223,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMIFS(OverValue,OverEmp,$C223,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA223)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA223,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223))))))","v":0},{"$f":"IF($F223=\"Terminated\",0,IF($AA223=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C223,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMIFS(OverValue,OverEmp,$C223,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA223)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA223,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223))))))","v":0},0,0,{"$f":"IF($F223=\"Terminated\",0,IF($AA223=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C223,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMIFS(OverValue,OverEmp,$C223,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA223)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA223,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223)))))))","v":0},{"$f":"IF($F223=\"Terminated\",0,IF($AA223=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C223,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMIFS(OverValue,OverEmp,$C223,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA223)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA223,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223)))))))","v":0},{"$f":"IF($F223=\"Terminated\",0,IF($AA223=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C223,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMIFS(OverValue,OverEmp,$C223,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA223)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA223,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223)))))))","v":0},{"$f":"IF($F223=\"Terminated\",0,IF($AA223=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C223,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMIFS(OverValue,OverEmp,$C223,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA223)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA223,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC223,PayEmp,$C223)))))))","v":0},0,0,0,{"$f":"IF(OR($B223<=Setup!$E$12,$B223>=Setup!$D$12+1),0,IF($F223<>\"Active\",0,IF($AE223=\"Yes\",$AB223,((YEAR($AC223)*12)+MONTH($AC223))-((YEAR($AD223)*12)+MONTH($AD223)-1))))","v":0},{"$f":"IF(OR($B223<=Setup!$E$12,$B223>=Setup!$D$12+1),0,((YEAR($AC223)*12)+MONTH($AC223))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C223,EmpAll,COLUMN(Emp!$E$4),0)),$AC223,IF(VLOOKUP($C223,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C223,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C223,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C223,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C223,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A223=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C223,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMIFS(OverValue,OverEmp,$C223,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1)),IF(ISNA(VLOOKUP($C223,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG223,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C223,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C223,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C223,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C223,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C223,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F223=\"Terminated\",0,IF($AA223=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C223,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA223*12)+(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB223/3,0))*4)+(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB223/6,0))*2)+(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F223=\"Terminated\",0,IF($AA223=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C223,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA223*12)+(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB223/3,0))*4)+(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB223/6,0))*2)+(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F223=\"Terminated\",0,IF($AA223=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C223,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA223*12)+(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB223/3,0))*4)+(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB223/6,0))*2)+(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F223=\"Terminated\",0,IF($AA223=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C223,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA223*12)+(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB223/3,0))*4)+(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB223/6,0))*2)+(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F223=\"Terminated\",0,IF($AA223=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C223,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA223*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F223=\"Terminated\",0,IF($AA223=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C223,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA223*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F223=\"Terminated\",0,IF($AA223=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C223,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA223*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F223=\"Terminated\",0,IF($AA223=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C223,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC223),MONTH($AC223)+1,1),OverEnd,\">=\"&DATE(YEAR($AC223),MONTH($AC223),1))>0,SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA223*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C223)*(PayDate<=$AC223)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA223*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C223,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C223,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL223),($AR223*$AL223)-$AI223-$AK223,MAX(0,IF($AL223=\"B\",IF($AR223<Setup!$C$32,($AR223*Setup!$D$32)-$AI223-$AK223,(($AR223-VLOOKUP($AR223,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR223,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR223,TaxBracket2,1),0,1,1)-$AI223-$AK223),IF($AR223<Setup!$C$21,($AR223*Setup!$D$21)-$AI223-$AK223,(($AR223-VLOOKUP($AR223,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR223,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR223,TaxBracket1,1),0,1,1)-$AI223-$AK223))))","v":0},{"$f":"IF(ISNUMBER($AL223),($AX223*$AL223)-$AI223-$AK223,MAX(0,IF($AL223=\"B\",IF($AX223<Setup!$C$32,($AX223*Setup!$D$32)-$AI223-$AK223,(($AX223-VLOOKUP($AX223,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX223,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX223,TaxBracket2,1),0,1,1)-$AI223-$AK223),IF($AX223<Setup!$C$21,($AX223*Setup!$D$21)-$AI223-$AK223,(($AX223-VLOOKUP($AX223,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX223,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX223,TaxBracket1,1),0,1,1)-$AI223-$AK223))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A224)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B224,\"yyyy\")&TEXT($B224,\"mm\")&\"-\"&$C224)","v":"-"},{"$f":"IF(ROW($A224)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A224)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A224)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A224)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A224)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A224)-ROW($A$6)-IF(ROW($A224)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A224)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C224,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C224,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C224,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C224,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C224,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C224,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC224),MONTH($AC224)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C224,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC224),MONTH($AC224),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F224<>\"Active\",0,IF(COUNTIFS(OverEmp,$C224,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMIFS(OverValue,OverEmp,$C224,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1)),IF(AND($AC224>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C224)>0),SUMIFS(EmpIncrease,EmpCode,$C224),SUMIFS(EmpSalary,EmpCode,$C224))))","v":0},{"$f":"IF($F224<>\"Active\",0,IF(COUNTIFS(OverEmp,$C224,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMIFS(OverValue,OverEmp,$C224,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1)),0))","v":0},{"$f":"IF($F224<>\"Active\",0,IF(COUNTIFS(OverEmp,$C224,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMIFS(OverValue,OverEmp,$C224,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1)),IF(MONTH(B224)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C224),0)))","v":0},{"$f":"IF($F224<>\"Active\",0,IF(COUNTIFS(OverEmp,$C224,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMIFS(OverValue,OverEmp,$C224,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1)),0))","v":0},{"$f":"IF($F224<>\"Active\",0,IF(COUNTIFS(OverEmp,$C224,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMIFS(OverValue,OverEmp,$C224,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C224,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMIFS(OverValue,OverEmp,$C224,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1)),(($BA224/12*$AA224)+(BB224*IF(1-$BC224=0,0,BD224/(1-$BC224))))-IF($F224=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC224,PayEmp,$C224)))","v":0},{"$f":"IF($F224=\"Terminated\",0,IF($AA224=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C224,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMIFS(OverValue,OverEmp,$C224,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA224)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA224,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224))))))","v":0},{"$f":"IF($F224=\"Terminated\",0,IF($AA224=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C224,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMIFS(OverValue,OverEmp,$C224,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA224)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA224,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224))))))","v":0},{"$f":"IF($F224=\"Terminated\",0,IF($AA224=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C224,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMIFS(OverValue,OverEmp,$C224,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA224)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA224,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224))))))","v":0},{"$f":"IF($F224=\"Terminated\",0,IF($AA224=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C224,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMIFS(OverValue,OverEmp,$C224,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA224)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA224,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224))))))","v":0},0,0,{"$f":"IF($F224=\"Terminated\",0,IF($AA224=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C224,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMIFS(OverValue,OverEmp,$C224,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA224)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA224,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224)))))))","v":0},{"$f":"IF($F224=\"Terminated\",0,IF($AA224=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C224,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMIFS(OverValue,OverEmp,$C224,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA224)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA224,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224)))))))","v":0},{"$f":"IF($F224=\"Terminated\",0,IF($AA224=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C224,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMIFS(OverValue,OverEmp,$C224,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA224)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA224,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224)))))))","v":0},{"$f":"IF($F224=\"Terminated\",0,IF($AA224=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C224,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMIFS(OverValue,OverEmp,$C224,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA224)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA224,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC224,PayEmp,$C224)))))))","v":0},0,0,0,{"$f":"IF(OR($B224<=Setup!$E$12,$B224>=Setup!$D$12+1),0,IF($F224<>\"Active\",0,IF($AE224=\"Yes\",$AB224,((YEAR($AC224)*12)+MONTH($AC224))-((YEAR($AD224)*12)+MONTH($AD224)-1))))","v":0},{"$f":"IF(OR($B224<=Setup!$E$12,$B224>=Setup!$D$12+1),0,((YEAR($AC224)*12)+MONTH($AC224))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C224,EmpAll,COLUMN(Emp!$E$4),0)),$AC224,IF(VLOOKUP($C224,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C224,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C224,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C224,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C224,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A224=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C224,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMIFS(OverValue,OverEmp,$C224,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1)),IF(ISNA(VLOOKUP($C224,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG224,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C224,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C224,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C224,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C224,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C224,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F224=\"Terminated\",0,IF($AA224=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C224,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA224*12)+(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB224/3,0))*4)+(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB224/6,0))*2)+(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F224=\"Terminated\",0,IF($AA224=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C224,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA224*12)+(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB224/3,0))*4)+(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB224/6,0))*2)+(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F224=\"Terminated\",0,IF($AA224=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C224,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA224*12)+(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB224/3,0))*4)+(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB224/6,0))*2)+(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F224=\"Terminated\",0,IF($AA224=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C224,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA224*12)+(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB224/3,0))*4)+(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB224/6,0))*2)+(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F224=\"Terminated\",0,IF($AA224=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C224,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA224*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F224=\"Terminated\",0,IF($AA224=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C224,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA224*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F224=\"Terminated\",0,IF($AA224=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C224,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA224*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F224=\"Terminated\",0,IF($AA224=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C224,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC224),MONTH($AC224)+1,1),OverEnd,\">=\"&DATE(YEAR($AC224),MONTH($AC224),1))>0,SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA224*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C224)*(PayDate<=$AC224)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA224*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C224,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C224,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL224),($AR224*$AL224)-$AI224-$AK224,MAX(0,IF($AL224=\"B\",IF($AR224<Setup!$C$32,($AR224*Setup!$D$32)-$AI224-$AK224,(($AR224-VLOOKUP($AR224,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR224,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR224,TaxBracket2,1),0,1,1)-$AI224-$AK224),IF($AR224<Setup!$C$21,($AR224*Setup!$D$21)-$AI224-$AK224,(($AR224-VLOOKUP($AR224,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR224,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR224,TaxBracket1,1),0,1,1)-$AI224-$AK224))))","v":0},{"$f":"IF(ISNUMBER($AL224),($AX224*$AL224)-$AI224-$AK224,MAX(0,IF($AL224=\"B\",IF($AX224<Setup!$C$32,($AX224*Setup!$D$32)-$AI224-$AK224,(($AX224-VLOOKUP($AX224,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX224,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX224,TaxBracket2,1),0,1,1)-$AI224-$AK224),IF($AX224<Setup!$C$21,($AX224*Setup!$D$21)-$AI224-$AK224,(($AX224-VLOOKUP($AX224,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX224,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX224,TaxBracket1,1),0,1,1)-$AI224-$AK224))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A225)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B225,\"yyyy\")&TEXT($B225,\"mm\")&\"-\"&$C225)","v":"-"},{"$f":"IF(ROW($A225)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A225)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A225)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A225)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A225)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A225)-ROW($A$6)-IF(ROW($A225)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A225)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C225,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C225,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C225,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C225,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C225,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C225,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC225),MONTH($AC225)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C225,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC225),MONTH($AC225),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F225<>\"Active\",0,IF(COUNTIFS(OverEmp,$C225,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMIFS(OverValue,OverEmp,$C225,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1)),IF(AND($AC225>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C225)>0),SUMIFS(EmpIncrease,EmpCode,$C225),SUMIFS(EmpSalary,EmpCode,$C225))))","v":0},{"$f":"IF($F225<>\"Active\",0,IF(COUNTIFS(OverEmp,$C225,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMIFS(OverValue,OverEmp,$C225,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1)),0))","v":0},{"$f":"IF($F225<>\"Active\",0,IF(COUNTIFS(OverEmp,$C225,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMIFS(OverValue,OverEmp,$C225,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1)),IF(MONTH(B225)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C225),0)))","v":0},{"$f":"IF($F225<>\"Active\",0,IF(COUNTIFS(OverEmp,$C225,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMIFS(OverValue,OverEmp,$C225,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1)),0))","v":0},{"$f":"IF($F225<>\"Active\",0,IF(COUNTIFS(OverEmp,$C225,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMIFS(OverValue,OverEmp,$C225,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C225,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMIFS(OverValue,OverEmp,$C225,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1)),(($BA225/12*$AA225)+(BB225*IF(1-$BC225=0,0,BD225/(1-$BC225))))-IF($F225=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC225,PayEmp,$C225)))","v":0},{"$f":"IF($F225=\"Terminated\",0,IF($AA225=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C225,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMIFS(OverValue,OverEmp,$C225,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA225)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA225,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225))))))","v":0},{"$f":"IF($F225=\"Terminated\",0,IF($AA225=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C225,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMIFS(OverValue,OverEmp,$C225,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA225)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA225,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225))))))","v":0},{"$f":"IF($F225=\"Terminated\",0,IF($AA225=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C225,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMIFS(OverValue,OverEmp,$C225,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA225)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA225,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225))))))","v":0},{"$f":"IF($F225=\"Terminated\",0,IF($AA225=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C225,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMIFS(OverValue,OverEmp,$C225,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA225)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA225,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225))))))","v":0},0,0,{"$f":"IF($F225=\"Terminated\",0,IF($AA225=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C225,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMIFS(OverValue,OverEmp,$C225,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA225)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA225,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225)))))))","v":0},{"$f":"IF($F225=\"Terminated\",0,IF($AA225=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C225,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMIFS(OverValue,OverEmp,$C225,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA225)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA225,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225)))))))","v":0},{"$f":"IF($F225=\"Terminated\",0,IF($AA225=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C225,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMIFS(OverValue,OverEmp,$C225,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA225)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA225,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225)))))))","v":0},{"$f":"IF($F225=\"Terminated\",0,IF($AA225=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C225,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMIFS(OverValue,OverEmp,$C225,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA225)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA225,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC225,PayEmp,$C225)))))))","v":0},0,0,0,{"$f":"IF(OR($B225<=Setup!$E$12,$B225>=Setup!$D$12+1),0,IF($F225<>\"Active\",0,IF($AE225=\"Yes\",$AB225,((YEAR($AC225)*12)+MONTH($AC225))-((YEAR($AD225)*12)+MONTH($AD225)-1))))","v":0},{"$f":"IF(OR($B225<=Setup!$E$12,$B225>=Setup!$D$12+1),0,((YEAR($AC225)*12)+MONTH($AC225))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C225,EmpAll,COLUMN(Emp!$E$4),0)),$AC225,IF(VLOOKUP($C225,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C225,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C225,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C225,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C225,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A225=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C225,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMIFS(OverValue,OverEmp,$C225,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1)),IF(ISNA(VLOOKUP($C225,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG225,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C225,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C225,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C225,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C225,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C225,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F225=\"Terminated\",0,IF($AA225=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C225,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA225*12)+(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB225/3,0))*4)+(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB225/6,0))*2)+(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F225=\"Terminated\",0,IF($AA225=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C225,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA225*12)+(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB225/3,0))*4)+(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB225/6,0))*2)+(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F225=\"Terminated\",0,IF($AA225=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C225,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA225*12)+(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB225/3,0))*4)+(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB225/6,0))*2)+(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F225=\"Terminated\",0,IF($AA225=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C225,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA225*12)+(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB225/3,0))*4)+(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB225/6,0))*2)+(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F225=\"Terminated\",0,IF($AA225=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C225,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA225*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F225=\"Terminated\",0,IF($AA225=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C225,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA225*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F225=\"Terminated\",0,IF($AA225=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C225,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA225*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F225=\"Terminated\",0,IF($AA225=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C225,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC225),MONTH($AC225)+1,1),OverEnd,\">=\"&DATE(YEAR($AC225),MONTH($AC225),1))>0,SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA225*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C225)*(PayDate<=$AC225)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA225*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C225,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C225,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL225),($AR225*$AL225)-$AI225-$AK225,MAX(0,IF($AL225=\"B\",IF($AR225<Setup!$C$32,($AR225*Setup!$D$32)-$AI225-$AK225,(($AR225-VLOOKUP($AR225,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR225,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR225,TaxBracket2,1),0,1,1)-$AI225-$AK225),IF($AR225<Setup!$C$21,($AR225*Setup!$D$21)-$AI225-$AK225,(($AR225-VLOOKUP($AR225,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR225,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR225,TaxBracket1,1),0,1,1)-$AI225-$AK225))))","v":0},{"$f":"IF(ISNUMBER($AL225),($AX225*$AL225)-$AI225-$AK225,MAX(0,IF($AL225=\"B\",IF($AX225<Setup!$C$32,($AX225*Setup!$D$32)-$AI225-$AK225,(($AX225-VLOOKUP($AX225,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX225,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX225,TaxBracket2,1),0,1,1)-$AI225-$AK225),IF($AX225<Setup!$C$21,($AX225*Setup!$D$21)-$AI225-$AK225,(($AX225-VLOOKUP($AX225,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX225,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX225,TaxBracket1,1),0,1,1)-$AI225-$AK225))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A226)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B226,\"yyyy\")&TEXT($B226,\"mm\")&\"-\"&$C226)","v":"-"},{"$f":"IF(ROW($A226)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A226)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A226)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A226)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A226)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A226)-ROW($A$6)-IF(ROW($A226)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A226)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C226,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C226,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C226,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C226,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C226,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C226,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC226),MONTH($AC226)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C226,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC226),MONTH($AC226),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F226<>\"Active\",0,IF(COUNTIFS(OverEmp,$C226,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMIFS(OverValue,OverEmp,$C226,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1)),IF(AND($AC226>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C226)>0),SUMIFS(EmpIncrease,EmpCode,$C226),SUMIFS(EmpSalary,EmpCode,$C226))))","v":0},{"$f":"IF($F226<>\"Active\",0,IF(COUNTIFS(OverEmp,$C226,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMIFS(OverValue,OverEmp,$C226,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1)),0))","v":0},{"$f":"IF($F226<>\"Active\",0,IF(COUNTIFS(OverEmp,$C226,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMIFS(OverValue,OverEmp,$C226,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1)),IF(MONTH(B226)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C226),0)))","v":0},{"$f":"IF($F226<>\"Active\",0,IF(COUNTIFS(OverEmp,$C226,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMIFS(OverValue,OverEmp,$C226,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1)),0))","v":0},{"$f":"IF($F226<>\"Active\",0,IF(COUNTIFS(OverEmp,$C226,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMIFS(OverValue,OverEmp,$C226,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1)),0))","v":0},{"$f":"IF($AA226=0,0,SUM(OFFSET($G226,0,0,1,COLUMN($L$6)-COLUMN($G$6))))","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C226,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMIFS(OverValue,OverEmp,$C226,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1)),(($BA226/12*$AA226)+(BB226*IF(1-$BC226=0,0,BD226/(1-$BC226))))-IF($F226=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC226,PayEmp,$C226)))","v":0},{"$f":"IF($F226=\"Terminated\",0,IF($AA226=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C226,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMIFS(OverValue,OverEmp,$C226,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA226)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA226,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226))))))","v":0},{"$f":"IF($F226=\"Terminated\",0,IF($AA226=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C226,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMIFS(OverValue,OverEmp,$C226,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA226)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA226,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226))))))","v":0},{"$f":"IF($F226=\"Terminated\",0,IF($AA226=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C226,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMIFS(OverValue,OverEmp,$C226,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA226)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA226,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226))))))","v":0},{"$f":"IF($F226=\"Terminated\",0,IF($AA226=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C226,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMIFS(OverValue,OverEmp,$C226,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA226)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA226,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226))))))","v":0},{"$f":"SUM(OFFSET(M226,0,0,1,COLUMN($R$6)-COLUMN($M$6)))","v":0},{"$f":"ROUND(SUM(L226,-R226),2)","v":0},{"$f":"IF($F226=\"Terminated\",0,IF($AA226=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C226,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMIFS(OverValue,OverEmp,$C226,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA226)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA226,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226)))))))","v":0},{"$f":"IF($F226=\"Terminated\",0,IF($AA226=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C226,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMIFS(OverValue,OverEmp,$C226,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA226)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA226,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226)))))))","v":0},{"$f":"IF($F226=\"Terminated\",0,IF($AA226=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C226,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMIFS(OverValue,OverEmp,$C226,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA226)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA226,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226)))))))","v":0},{"$f":"IF($F226=\"Terminated\",0,IF($AA226=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C226,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMIFS(OverValue,OverEmp,$C226,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA226)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA226,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC226,PayEmp,$C226)))))))","v":0},{"$f":"SUM(OFFSET($T226,0,0,1,COLUMN($X$6)-COLUMN($T$7)))","v":0},{"$f":"L226+X226","v":0},{"$f":"ROUND(SUM(R226,X226),2)","v":0},{"$f":"IF(OR($B226<=Setup!$E$12,$B226>=Setup!$D$12+1),0,IF($F226<>\"Active\",0,IF($AE226=\"Yes\",$AB226,((YEAR($AC226)*12)+MONTH($AC226))-((YEAR($AD226)*12)+MONTH($AD226)-1))))","v":0},{"$f":"IF(OR($B226<=Setup!$E$12,$B226>=Setup!$D$12+1),0,((YEAR($AC226)*12)+MONTH($AC226))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},{"$f":"DATE(YEAR($B226),MONTH($B226),DAY($B226))","v":45351},{"$f":"IF(ISNA(VLOOKUP($C226,EmpAll,COLUMN(Emp!$E$4),0)),$AC226,IF(VLOOKUP($C226,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C226,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C226,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C226,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C226,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A226=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C226,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMIFS(OverValue,OverEmp,$C226,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1)),IF(ISNA(VLOOKUP($C226,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG226,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C226,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C226,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C226,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C226,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C226,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F226=\"Terminated\",0,IF($AA226=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C226,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA226*12)+(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB226/3,0))*4)+(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB226/6,0))*2)+(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F226=\"Terminated\",0,IF($AA226=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C226,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA226*12)+(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB226/3,0))*4)+(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB226/6,0))*2)+(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F226=\"Terminated\",0,IF($AA226=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C226,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA226*12)+(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB226/3,0))*4)+(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB226/6,0))*2)+(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F226=\"Terminated\",0,IF($AA226=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C226,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA226*12)+(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB226/3,0))*4)+(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB226/6,0))*2)+(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},{"$f":"$AM226+SUM(OFFSET($AM226,0,1,1,COLUMN($AR$2)-COLUMN($AM$2)-1))","v":0},0,{"$f":"-IF($F226=\"Terminated\",0,IF($AA226=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C226,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA226*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F226=\"Terminated\",0,IF($AA226=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C226,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA226*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F226=\"Terminated\",0,IF($AA226=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C226,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA226*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F226=\"Terminated\",0,IF($AA226=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C226,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC226),MONTH($AC226)+1,1),OverEnd,\">=\"&DATE(YEAR($AC226),MONTH($AC226),1))>0,SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA226*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C226)*(PayDate<=$AC226)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA226*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C226,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C226,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},{"$f":"$AS226+SUM(OFFSET($AT226,0,0,1,COLUMN($AX$2)-COLUMN($AT$2)))","v":0},{"$f":"AR226-AX226","v":0},{"$f":"IF(ISNUMBER($AL226),($AR226*$AL226)-$AI226-$AK226,MAX(0,IF($AL226=\"B\",IF($AR226<Setup!$C$32,($AR226*Setup!$D$32)-$AI226-$AK226,(($AR226-VLOOKUP($AR226,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR226,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR226,TaxBracket2,1),0,1,1)-$AI226-$AK226),IF($AR226<Setup!$C$21,($AR226*Setup!$D$21)-$AI226-$AK226,(($AR226-VLOOKUP($AR226,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR226,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR226,TaxBracket1,1),0,1,1)-$AI226-$AK226))))","v":0},{"$f":"IF(ISNUMBER($AL226),($AX226*$AL226)-$AI226-$AK226,MAX(0,IF($AL226=\"B\",IF($AX226<Setup!$C$32,($AX226*Setup!$D$32)-$AI226-$AK226,(($AX226-VLOOKUP($AX226,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX226,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX226,TaxBracket2,1),0,1,1)-$AI226-$AK226),IF($AX226<Setup!$C$21,($AX226*Setup!$D$21)-$AI226-$AK226,(($AX226-VLOOKUP($AX226,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX226,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX226,TaxBracket1,1),0,1,1)-$AI226-$AK226))))","v":0},{"$f":"AZ226-BA226","v":0},0,0,0]
[{"$f":"IF(ROW($A227)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B227,\"yyyy\")&TEXT($B227,\"mm\")&\"-\"&$C227)","v":"-"},{"$f":"IF(ROW($A227)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A227)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A227)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A227)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A227)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A227)-ROW($A$6)-IF(ROW($A227)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A227)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C227,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C227,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C227,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C227,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C227,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C227,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC227),MONTH($AC227)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C227,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC227),MONTH($AC227),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F227<>\"Active\",0,IF(COUNTIFS(OverEmp,$C227,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMIFS(OverValue,OverEmp,$C227,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1)),IF(AND($AC227>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C227)>0),SUMIFS(EmpIncrease,EmpCode,$C227),SUMIFS(EmpSalary,EmpCode,$C227))))","v":0},{"$f":"IF($F227<>\"Active\",0,IF(COUNTIFS(OverEmp,$C227,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMIFS(OverValue,OverEmp,$C227,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1)),0))","v":0},{"$f":"IF($F227<>\"Active\",0,IF(COUNTIFS(OverEmp,$C227,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMIFS(OverValue,OverEmp,$C227,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1)),IF(MONTH(B227)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C227),0)))","v":0},{"$f":"IF($F227<>\"Active\",0,IF(COUNTIFS(OverEmp,$C227,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMIFS(OverValue,OverEmp,$C227,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1)),0))","v":0},{"$f":"IF($F227<>\"Active\",0,IF(COUNTIFS(OverEmp,$C227,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMIFS(OverValue,OverEmp,$C227,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C227,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMIFS(OverValue,OverEmp,$C227,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1)),(($BA227/12*$AA227)+(BB227*IF(1-$BC227=0,0,BD227/(1-$BC227))))-IF($F227=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC227,PayEmp,$C227)))","v":0},{"$f":"IF($F227=\"Terminated\",0,IF($AA227=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C227,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMIFS(OverValue,OverEmp,$C227,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA227)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA227,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227))))))","v":0},{"$f":"IF($F227=\"Terminated\",0,IF($AA227=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C227,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMIFS(OverValue,OverEmp,$C227,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA227)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA227,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227))))))","v":0},{"$f":"IF($F227=\"Terminated\",0,IF($AA227=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C227,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMIFS(OverValue,OverEmp,$C227,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA227)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA227,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227))))))","v":0},{"$f":"IF($F227=\"Terminated\",0,IF($AA227=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C227,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMIFS(OverValue,OverEmp,$C227,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA227)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA227,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227))))))","v":0},0,0,{"$f":"IF($F227=\"Terminated\",0,IF($AA227=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C227,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMIFS(OverValue,OverEmp,$C227,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA227)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA227,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227)))))))","v":0},{"$f":"IF($F227=\"Terminated\",0,IF($AA227=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C227,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMIFS(OverValue,OverEmp,$C227,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA227)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA227,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227)))))))","v":0},{"$f":"IF($F227=\"Terminated\",0,IF($AA227=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C227,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMIFS(OverValue,OverEmp,$C227,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA227)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA227,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227)))))))","v":0},{"$f":"IF($F227=\"Terminated\",0,IF($AA227=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C227,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMIFS(OverValue,OverEmp,$C227,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA227)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA227,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC227,PayEmp,$C227)))))))","v":0},0,0,0,{"$f":"IF(OR($B227<=Setup!$E$12,$B227>=Setup!$D$12+1),0,IF($F227<>\"Active\",0,IF($AE227=\"Yes\",$AB227,((YEAR($AC227)*12)+MONTH($AC227))-((YEAR($AD227)*12)+MONTH($AD227)-1))))","v":0},{"$f":"IF(OR($B227<=Setup!$E$12,$B227>=Setup!$D$12+1),0,((YEAR($AC227)*12)+MONTH($AC227))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C227,EmpAll,COLUMN(Emp!$E$4),0)),$AC227,IF(VLOOKUP($C227,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C227,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C227,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C227,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C227,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A227=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C227,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMIFS(OverValue,OverEmp,$C227,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1)),IF(ISNA(VLOOKUP($C227,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG227,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C227,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C227,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C227,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C227,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C227,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F227=\"Terminated\",0,IF($AA227=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C227,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA227*12)+(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB227/3,0))*4)+(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB227/6,0))*2)+(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F227=\"Terminated\",0,IF($AA227=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C227,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA227*12)+(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB227/3,0))*4)+(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB227/6,0))*2)+(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F227=\"Terminated\",0,IF($AA227=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C227,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA227*12)+(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB227/3,0))*4)+(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB227/6,0))*2)+(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F227=\"Terminated\",0,IF($AA227=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C227,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA227*12)+(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB227/3,0))*4)+(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB227/6,0))*2)+(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F227=\"Terminated\",0,IF($AA227=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C227,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA227*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F227=\"Terminated\",0,IF($AA227=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C227,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA227*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F227=\"Terminated\",0,IF($AA227=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C227,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA227*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F227=\"Terminated\",0,IF($AA227=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C227,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC227),MONTH($AC227)+1,1),OverEnd,\">=\"&DATE(YEAR($AC227),MONTH($AC227),1))>0,SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA227*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C227)*(PayDate<=$AC227)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA227*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C227,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C227,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL227),($AR227*$AL227)-$AI227-$AK227,MAX(0,IF($AL227=\"B\",IF($AR227<Setup!$C$32,($AR227*Setup!$D$32)-$AI227-$AK227,(($AR227-VLOOKUP($AR227,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR227,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR227,TaxBracket2,1),0,1,1)-$AI227-$AK227),IF($AR227<Setup!$C$21,($AR227*Setup!$D$21)-$AI227-$AK227,(($AR227-VLOOKUP($AR227,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR227,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR227,TaxBracket1,1),0,1,1)-$AI227-$AK227))))","v":0},{"$f":"IF(ISNUMBER($AL227),($AX227*$AL227)-$AI227-$AK227,MAX(0,IF($AL227=\"B\",IF($AX227<Setup!$C$32,($AX227*Setup!$D$32)-$AI227-$AK227,(($AX227-VLOOKUP($AX227,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX227,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX227,TaxBracket2,1),0,1,1)-$AI227-$AK227),IF($AX227<Setup!$C$21,($AX227*Setup!$D$21)-$AI227-$AK227,(($AX227-VLOOKUP($AX227,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX227,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX227,TaxBracket1,1),0,1,1)-$AI227-$AK227))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A228)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B228,\"yyyy\")&TEXT($B228,\"mm\")&\"-\"&$C228)","v":"-"},{"$f":"IF(ROW($A228)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A228)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A228)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A228)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A228)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A228)-ROW($A$6)-IF(ROW($A228)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A228)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C228,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C228,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C228,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C228,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C228,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C228,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC228),MONTH($AC228)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C228,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC228),MONTH($AC228),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F228<>\"Active\",0,IF(COUNTIFS(OverEmp,$C228,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMIFS(OverValue,OverEmp,$C228,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1)),IF(AND($AC228>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C228)>0),SUMIFS(EmpIncrease,EmpCode,$C228),SUMIFS(EmpSalary,EmpCode,$C228))))","v":0},{"$f":"IF($F228<>\"Active\",0,IF(COUNTIFS(OverEmp,$C228,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMIFS(OverValue,OverEmp,$C228,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1)),0))","v":0},{"$f":"IF($F228<>\"Active\",0,IF(COUNTIFS(OverEmp,$C228,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMIFS(OverValue,OverEmp,$C228,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1)),IF(MONTH(B228)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C228),0)))","v":0},{"$f":"IF($F228<>\"Active\",0,IF(COUNTIFS(OverEmp,$C228,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMIFS(OverValue,OverEmp,$C228,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1)),0))","v":0},{"$f":"IF($F228<>\"Active\",0,IF(COUNTIFS(OverEmp,$C228,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMIFS(OverValue,OverEmp,$C228,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C228,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMIFS(OverValue,OverEmp,$C228,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1)),(($BA228/12*$AA228)+(BB228*IF(1-$BC228=0,0,BD228/(1-$BC228))))-IF($F228=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC228,PayEmp,$C228)))","v":0},{"$f":"IF($F228=\"Terminated\",0,IF($AA228=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C228,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMIFS(OverValue,OverEmp,$C228,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA228)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA228,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228))))))","v":0},{"$f":"IF($F228=\"Terminated\",0,IF($AA228=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C228,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMIFS(OverValue,OverEmp,$C228,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA228)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA228,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228))))))","v":0},{"$f":"IF($F228=\"Terminated\",0,IF($AA228=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C228,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMIFS(OverValue,OverEmp,$C228,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA228)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA228,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228))))))","v":0},{"$f":"IF($F228=\"Terminated\",0,IF($AA228=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C228,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMIFS(OverValue,OverEmp,$C228,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA228)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA228,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228))))))","v":0},0,0,{"$f":"IF($F228=\"Terminated\",0,IF($AA228=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C228,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMIFS(OverValue,OverEmp,$C228,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA228)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA228,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228)))))))","v":0},{"$f":"IF($F228=\"Terminated\",0,IF($AA228=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C228,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMIFS(OverValue,OverEmp,$C228,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA228)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA228,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228)))))))","v":0},{"$f":"IF($F228=\"Terminated\",0,IF($AA228=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C228,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMIFS(OverValue,OverEmp,$C228,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA228)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA228,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228)))))))","v":0},{"$f":"IF($F228=\"Terminated\",0,IF($AA228=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C228,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMIFS(OverValue,OverEmp,$C228,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA228)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA228,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC228,PayEmp,$C228)))))))","v":0},0,0,0,{"$f":"IF(OR($B228<=Setup!$E$12,$B228>=Setup!$D$12+1),0,IF($F228<>\"Active\",0,IF($AE228=\"Yes\",$AB228,((YEAR($AC228)*12)+MONTH($AC228))-((YEAR($AD228)*12)+MONTH($AD228)-1))))","v":0},{"$f":"IF(OR($B228<=Setup!$E$12,$B228>=Setup!$D$12+1),0,((YEAR($AC228)*12)+MONTH($AC228))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C228,EmpAll,COLUMN(Emp!$E$4),0)),$AC228,IF(VLOOKUP($C228,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C228,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C228,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C228,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C228,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A228=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C228,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMIFS(OverValue,OverEmp,$C228,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1)),IF(ISNA(VLOOKUP($C228,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG228,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C228,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C228,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C228,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C228,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C228,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F228=\"Terminated\",0,IF($AA228=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C228,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA228*12)+(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB228/3,0))*4)+(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB228/6,0))*2)+(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F228=\"Terminated\",0,IF($AA228=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C228,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA228*12)+(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB228/3,0))*4)+(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB228/6,0))*2)+(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F228=\"Terminated\",0,IF($AA228=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C228,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA228*12)+(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB228/3,0))*4)+(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB228/6,0))*2)+(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F228=\"Terminated\",0,IF($AA228=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C228,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA228*12)+(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB228/3,0))*4)+(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB228/6,0))*2)+(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F228=\"Terminated\",0,IF($AA228=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C228,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA228*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F228=\"Terminated\",0,IF($AA228=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C228,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA228*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F228=\"Terminated\",0,IF($AA228=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C228,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA228*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F228=\"Terminated\",0,IF($AA228=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C228,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC228),MONTH($AC228)+1,1),OverEnd,\">=\"&DATE(YEAR($AC228),MONTH($AC228),1))>0,SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA228*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C228)*(PayDate<=$AC228)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA228*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C228,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C228,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL228),($AR228*$AL228)-$AI228-$AK228,MAX(0,IF($AL228=\"B\",IF($AR228<Setup!$C$32,($AR228*Setup!$D$32)-$AI228-$AK228,(($AR228-VLOOKUP($AR228,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR228,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR228,TaxBracket2,1),0,1,1)-$AI228-$AK228),IF($AR228<Setup!$C$21,($AR228*Setup!$D$21)-$AI228-$AK228,(($AR228-VLOOKUP($AR228,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR228,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR228,TaxBracket1,1),0,1,1)-$AI228-$AK228))))","v":0},{"$f":"IF(ISNUMBER($AL228),($AX228*$AL228)-$AI228-$AK228,MAX(0,IF($AL228=\"B\",IF($AX228<Setup!$C$32,($AX228*Setup!$D$32)-$AI228-$AK228,(($AX228-VLOOKUP($AX228,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX228,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX228,TaxBracket2,1),0,1,1)-$AI228-$AK228),IF($AX228<Setup!$C$21,($AX228*Setup!$D$21)-$AI228-$AK228,(($AX228-VLOOKUP($AX228,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX228,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX228,TaxBracket1,1),0,1,1)-$AI228-$AK228))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A229)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B229,\"yyyy\")&TEXT($B229,\"mm\")&\"-\"&$C229)","v":"-"},{"$f":"IF(ROW($A229)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A229)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A229)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A229)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A229)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A229)-ROW($A$6)-IF(ROW($A229)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A229)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C229,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C229,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C229,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C229,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C229,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C229,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC229),MONTH($AC229)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C229,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC229),MONTH($AC229),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F229<>\"Active\",0,IF(COUNTIFS(OverEmp,$C229,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMIFS(OverValue,OverEmp,$C229,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1)),IF(AND($AC229>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C229)>0),SUMIFS(EmpIncrease,EmpCode,$C229),SUMIFS(EmpSalary,EmpCode,$C229))))","v":0},{"$f":"IF($F229<>\"Active\",0,IF(COUNTIFS(OverEmp,$C229,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMIFS(OverValue,OverEmp,$C229,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1)),0))","v":0},{"$f":"IF($F229<>\"Active\",0,IF(COUNTIFS(OverEmp,$C229,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMIFS(OverValue,OverEmp,$C229,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1)),IF(MONTH(B229)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C229),0)))","v":0},{"$f":"IF($F229<>\"Active\",0,IF(COUNTIFS(OverEmp,$C229,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMIFS(OverValue,OverEmp,$C229,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1)),0))","v":0},{"$f":"IF($F229<>\"Active\",0,IF(COUNTIFS(OverEmp,$C229,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMIFS(OverValue,OverEmp,$C229,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C229,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMIFS(OverValue,OverEmp,$C229,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1)),(($BA229/12*$AA229)+(BB229*IF(1-$BC229=0,0,BD229/(1-$BC229))))-IF($F229=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC229,PayEmp,$C229)))","v":0},{"$f":"IF($F229=\"Terminated\",0,IF($AA229=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C229,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMIFS(OverValue,OverEmp,$C229,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA229)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA229,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229))))))","v":0},{"$f":"IF($F229=\"Terminated\",0,IF($AA229=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C229,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMIFS(OverValue,OverEmp,$C229,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA229)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA229,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229))))))","v":0},{"$f":"IF($F229=\"Terminated\",0,IF($AA229=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C229,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMIFS(OverValue,OverEmp,$C229,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA229)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA229,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229))))))","v":0},{"$f":"IF($F229=\"Terminated\",0,IF($AA229=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C229,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMIFS(OverValue,OverEmp,$C229,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA229)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA229,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229))))))","v":0},0,0,{"$f":"IF($F229=\"Terminated\",0,IF($AA229=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C229,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMIFS(OverValue,OverEmp,$C229,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA229)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA229,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229)))))))","v":0},{"$f":"IF($F229=\"Terminated\",0,IF($AA229=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C229,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMIFS(OverValue,OverEmp,$C229,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA229)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA229,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229)))))))","v":0},{"$f":"IF($F229=\"Terminated\",0,IF($AA229=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C229,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMIFS(OverValue,OverEmp,$C229,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA229)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA229,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229)))))))","v":0},{"$f":"IF($F229=\"Terminated\",0,IF($AA229=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C229,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMIFS(OverValue,OverEmp,$C229,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA229)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA229,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC229,PayEmp,$C229)))))))","v":0},0,0,0,{"$f":"IF(OR($B229<=Setup!$E$12,$B229>=Setup!$D$12+1),0,IF($F229<>\"Active\",0,IF($AE229=\"Yes\",$AB229,((YEAR($AC229)*12)+MONTH($AC229))-((YEAR($AD229)*12)+MONTH($AD229)-1))))","v":0},{"$f":"IF(OR($B229<=Setup!$E$12,$B229>=Setup!$D$12+1),0,((YEAR($AC229)*12)+MONTH($AC229))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C229,EmpAll,COLUMN(Emp!$E$4),0)),$AC229,IF(VLOOKUP($C229,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C229,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C229,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C229,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C229,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A229=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C229,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMIFS(OverValue,OverEmp,$C229,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1)),IF(ISNA(VLOOKUP($C229,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG229,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C229,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C229,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C229,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C229,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C229,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F229=\"Terminated\",0,IF($AA229=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C229,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA229*12)+(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB229/3,0))*4)+(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB229/6,0))*2)+(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F229=\"Terminated\",0,IF($AA229=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C229,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA229*12)+(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB229/3,0))*4)+(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB229/6,0))*2)+(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F229=\"Terminated\",0,IF($AA229=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C229,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA229*12)+(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB229/3,0))*4)+(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB229/6,0))*2)+(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F229=\"Terminated\",0,IF($AA229=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C229,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA229*12)+(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB229/3,0))*4)+(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB229/6,0))*2)+(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F229=\"Terminated\",0,IF($AA229=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C229,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA229*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F229=\"Terminated\",0,IF($AA229=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C229,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA229*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F229=\"Terminated\",0,IF($AA229=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C229,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA229*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F229=\"Terminated\",0,IF($AA229=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C229,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC229),MONTH($AC229)+1,1),OverEnd,\">=\"&DATE(YEAR($AC229),MONTH($AC229),1))>0,SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA229*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C229)*(PayDate<=$AC229)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA229*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C229,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C229,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL229),($AR229*$AL229)-$AI229-$AK229,MAX(0,IF($AL229=\"B\",IF($AR229<Setup!$C$32,($AR229*Setup!$D$32)-$AI229-$AK229,(($AR229-VLOOKUP($AR229,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR229,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR229,TaxBracket2,1),0,1,1)-$AI229-$AK229),IF($AR229<Setup!$C$21,($AR229*Setup!$D$21)-$AI229-$AK229,(($AR229-VLOOKUP($AR229,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR229,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR229,TaxBracket1,1),0,1,1)-$AI229-$AK229))))","v":0},{"$f":"IF(ISNUMBER($AL229),($AX229*$AL229)-$AI229-$AK229,MAX(0,IF($AL229=\"B\",IF($AX229<Setup!$C$32,($AX229*Setup!$D$32)-$AI229-$AK229,(($AX229-VLOOKUP($AX229,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX229,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX229,TaxBracket2,1),0,1,1)-$AI229-$AK229),IF($AX229<Setup!$C$21,($AX229*Setup!$D$21)-$AI229-$AK229,(($AX229-VLOOKUP($AX229,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX229,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX229,TaxBracket1,1),0,1,1)-$AI229-$AK229))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A230)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B230,\"yyyy\")&TEXT($B230,\"mm\")&\"-\"&$C230)","v":"-"},{"$f":"IF(ROW($A230)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A230)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A230)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A230)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A230)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A230)-ROW($A$6)-IF(ROW($A230)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A230)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C230,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C230,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C230,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C230,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C230,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C230,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC230),MONTH($AC230)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C230,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC230),MONTH($AC230),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F230<>\"Active\",0,IF(COUNTIFS(OverEmp,$C230,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMIFS(OverValue,OverEmp,$C230,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1)),IF(AND($AC230>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C230)>0),SUMIFS(EmpIncrease,EmpCode,$C230),SUMIFS(EmpSalary,EmpCode,$C230))))","v":0},{"$f":"IF($F230<>\"Active\",0,IF(COUNTIFS(OverEmp,$C230,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMIFS(OverValue,OverEmp,$C230,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1)),0))","v":0},{"$f":"IF($F230<>\"Active\",0,IF(COUNTIFS(OverEmp,$C230,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMIFS(OverValue,OverEmp,$C230,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1)),IF(MONTH(B230)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C230),0)))","v":0},{"$f":"IF($F230<>\"Active\",0,IF(COUNTIFS(OverEmp,$C230,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMIFS(OverValue,OverEmp,$C230,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1)),0))","v":0},{"$f":"IF($F230<>\"Active\",0,IF(COUNTIFS(OverEmp,$C230,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMIFS(OverValue,OverEmp,$C230,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C230,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMIFS(OverValue,OverEmp,$C230,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1)),(($BA230/12*$AA230)+(BB230*IF(1-$BC230=0,0,BD230/(1-$BC230))))-IF($F230=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC230,PayEmp,$C230)))","v":0},{"$f":"IF($F230=\"Terminated\",0,IF($AA230=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C230,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMIFS(OverValue,OverEmp,$C230,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA230)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA230,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230))))))","v":0},{"$f":"IF($F230=\"Terminated\",0,IF($AA230=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C230,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMIFS(OverValue,OverEmp,$C230,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA230)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA230,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230))))))","v":0},{"$f":"IF($F230=\"Terminated\",0,IF($AA230=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C230,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMIFS(OverValue,OverEmp,$C230,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA230)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA230,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230))))))","v":0},{"$f":"IF($F230=\"Terminated\",0,IF($AA230=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C230,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMIFS(OverValue,OverEmp,$C230,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA230)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA230,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230))))))","v":0},0,0,{"$f":"IF($F230=\"Terminated\",0,IF($AA230=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C230,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMIFS(OverValue,OverEmp,$C230,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA230)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA230,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230)))))))","v":0},{"$f":"IF($F230=\"Terminated\",0,IF($AA230=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C230,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMIFS(OverValue,OverEmp,$C230,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA230)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA230,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230)))))))","v":0},{"$f":"IF($F230=\"Terminated\",0,IF($AA230=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C230,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMIFS(OverValue,OverEmp,$C230,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA230)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA230,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230)))))))","v":0},{"$f":"IF($F230=\"Terminated\",0,IF($AA230=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C230,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMIFS(OverValue,OverEmp,$C230,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA230)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA230,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC230,PayEmp,$C230)))))))","v":0},0,0,0,{"$f":"IF(OR($B230<=Setup!$E$12,$B230>=Setup!$D$12+1),0,IF($F230<>\"Active\",0,IF($AE230=\"Yes\",$AB230,((YEAR($AC230)*12)+MONTH($AC230))-((YEAR($AD230)*12)+MONTH($AD230)-1))))","v":0},{"$f":"IF(OR($B230<=Setup!$E$12,$B230>=Setup!$D$12+1),0,((YEAR($AC230)*12)+MONTH($AC230))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C230,EmpAll,COLUMN(Emp!$E$4),0)),$AC230,IF(VLOOKUP($C230,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C230,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C230,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C230,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C230,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A230=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C230,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMIFS(OverValue,OverEmp,$C230,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1)),IF(ISNA(VLOOKUP($C230,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG230,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C230,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C230,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C230,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C230,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C230,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F230=\"Terminated\",0,IF($AA230=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C230,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA230*12)+(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB230/3,0))*4)+(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB230/6,0))*2)+(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F230=\"Terminated\",0,IF($AA230=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C230,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA230*12)+(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB230/3,0))*4)+(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB230/6,0))*2)+(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F230=\"Terminated\",0,IF($AA230=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C230,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA230*12)+(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB230/3,0))*4)+(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB230/6,0))*2)+(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F230=\"Terminated\",0,IF($AA230=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C230,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA230*12)+(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB230/3,0))*4)+(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB230/6,0))*2)+(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F230=\"Terminated\",0,IF($AA230=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C230,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA230*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F230=\"Terminated\",0,IF($AA230=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C230,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA230*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F230=\"Terminated\",0,IF($AA230=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C230,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA230*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F230=\"Terminated\",0,IF($AA230=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C230,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC230),MONTH($AC230)+1,1),OverEnd,\">=\"&DATE(YEAR($AC230),MONTH($AC230),1))>0,SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA230*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C230)*(PayDate<=$AC230)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA230*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C230,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C230,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL230),($AR230*$AL230)-$AI230-$AK230,MAX(0,IF($AL230=\"B\",IF($AR230<Setup!$C$32,($AR230*Setup!$D$32)-$AI230-$AK230,(($AR230-VLOOKUP($AR230,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR230,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR230,TaxBracket2,1),0,1,1)-$AI230-$AK230),IF($AR230<Setup!$C$21,($AR230*Setup!$D$21)-$AI230-$AK230,(($AR230-VLOOKUP($AR230,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR230,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR230,TaxBracket1,1),0,1,1)-$AI230-$AK230))))","v":0},{"$f":"IF(ISNUMBER($AL230),($AX230*$AL230)-$AI230-$AK230,MAX(0,IF($AL230=\"B\",IF($AX230<Setup!$C$32,($AX230*Setup!$D$32)-$AI230-$AK230,(($AX230-VLOOKUP($AX230,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX230,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX230,TaxBracket2,1),0,1,1)-$AI230-$AK230),IF($AX230<Setup!$C$21,($AX230*Setup!$D$21)-$AI230-$AK230,(($AX230-VLOOKUP($AX230,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX230,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX230,TaxBracket1,1),0,1,1)-$AI230-$AK230))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A231)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B231,\"yyyy\")&TEXT($B231,\"mm\")&\"-\"&$C231)","v":"-"},{"$f":"IF(ROW($A231)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A231)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A231)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A231)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A231)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A231)-ROW($A$6)-IF(ROW($A231)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A231)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C231,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C231,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C231,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C231,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C231,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C231,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC231),MONTH($AC231)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C231,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC231),MONTH($AC231),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F231<>\"Active\",0,IF(COUNTIFS(OverEmp,$C231,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMIFS(OverValue,OverEmp,$C231,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1)),IF(AND($AC231>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C231)>0),SUMIFS(EmpIncrease,EmpCode,$C231),SUMIFS(EmpSalary,EmpCode,$C231))))","v":0},{"$f":"IF($F231<>\"Active\",0,IF(COUNTIFS(OverEmp,$C231,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMIFS(OverValue,OverEmp,$C231,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1)),0))","v":0},{"$f":"IF($F231<>\"Active\",0,IF(COUNTIFS(OverEmp,$C231,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMIFS(OverValue,OverEmp,$C231,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1)),IF(MONTH(B231)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C231),0)))","v":0},{"$f":"IF($F231<>\"Active\",0,IF(COUNTIFS(OverEmp,$C231,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMIFS(OverValue,OverEmp,$C231,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1)),0))","v":0},{"$f":"IF($F231<>\"Active\",0,IF(COUNTIFS(OverEmp,$C231,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMIFS(OverValue,OverEmp,$C231,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C231,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMIFS(OverValue,OverEmp,$C231,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1)),(($BA231/12*$AA231)+(BB231*IF(1-$BC231=0,0,BD231/(1-$BC231))))-IF($F231=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC231,PayEmp,$C231)))","v":0},{"$f":"IF($F231=\"Terminated\",0,IF($AA231=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C231,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMIFS(OverValue,OverEmp,$C231,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA231)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA231,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231))))))","v":0},{"$f":"IF($F231=\"Terminated\",0,IF($AA231=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C231,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMIFS(OverValue,OverEmp,$C231,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA231)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA231,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231))))))","v":0},{"$f":"IF($F231=\"Terminated\",0,IF($AA231=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C231,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMIFS(OverValue,OverEmp,$C231,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA231)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA231,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231))))))","v":0},{"$f":"IF($F231=\"Terminated\",0,IF($AA231=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C231,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMIFS(OverValue,OverEmp,$C231,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA231)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA231,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231))))))","v":0},0,0,{"$f":"IF($F231=\"Terminated\",0,IF($AA231=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C231,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMIFS(OverValue,OverEmp,$C231,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA231)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA231,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231)))))))","v":0},{"$f":"IF($F231=\"Terminated\",0,IF($AA231=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C231,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMIFS(OverValue,OverEmp,$C231,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA231)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA231,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231)))))))","v":0},{"$f":"IF($F231=\"Terminated\",0,IF($AA231=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C231,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMIFS(OverValue,OverEmp,$C231,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA231)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA231,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231)))))))","v":0},{"$f":"IF($F231=\"Terminated\",0,IF($AA231=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C231,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMIFS(OverValue,OverEmp,$C231,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA231)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA231,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC231,PayEmp,$C231)))))))","v":0},0,0,0,{"$f":"IF(OR($B231<=Setup!$E$12,$B231>=Setup!$D$12+1),0,IF($F231<>\"Active\",0,IF($AE231=\"Yes\",$AB231,((YEAR($AC231)*12)+MONTH($AC231))-((YEAR($AD231)*12)+MONTH($AD231)-1))))","v":0},{"$f":"IF(OR($B231<=Setup!$E$12,$B231>=Setup!$D$12+1),0,((YEAR($AC231)*12)+MONTH($AC231))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C231,EmpAll,COLUMN(Emp!$E$4),0)),$AC231,IF(VLOOKUP($C231,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C231,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C231,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C231,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C231,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A231=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C231,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMIFS(OverValue,OverEmp,$C231,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1)),IF(ISNA(VLOOKUP($C231,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG231,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C231,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C231,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C231,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C231,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C231,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F231=\"Terminated\",0,IF($AA231=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C231,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA231*12)+(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB231/3,0))*4)+(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB231/6,0))*2)+(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F231=\"Terminated\",0,IF($AA231=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C231,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA231*12)+(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB231/3,0))*4)+(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB231/6,0))*2)+(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F231=\"Terminated\",0,IF($AA231=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C231,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA231*12)+(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB231/3,0))*4)+(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB231/6,0))*2)+(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F231=\"Terminated\",0,IF($AA231=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C231,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA231*12)+(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB231/3,0))*4)+(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB231/6,0))*2)+(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F231=\"Terminated\",0,IF($AA231=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C231,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA231*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F231=\"Terminated\",0,IF($AA231=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C231,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA231*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F231=\"Terminated\",0,IF($AA231=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C231,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA231*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F231=\"Terminated\",0,IF($AA231=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C231,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC231),MONTH($AC231)+1,1),OverEnd,\">=\"&DATE(YEAR($AC231),MONTH($AC231),1))>0,SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA231*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C231)*(PayDate<=$AC231)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA231*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C231,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C231,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL231),($AR231*$AL231)-$AI231-$AK231,MAX(0,IF($AL231=\"B\",IF($AR231<Setup!$C$32,($AR231*Setup!$D$32)-$AI231-$AK231,(($AR231-VLOOKUP($AR231,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR231,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR231,TaxBracket2,1),0,1,1)-$AI231-$AK231),IF($AR231<Setup!$C$21,($AR231*Setup!$D$21)-$AI231-$AK231,(($AR231-VLOOKUP($AR231,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR231,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR231,TaxBracket1,1),0,1,1)-$AI231-$AK231))))","v":0},{"$f":"IF(ISNUMBER($AL231),($AX231*$AL231)-$AI231-$AK231,MAX(0,IF($AL231=\"B\",IF($AX231<Setup!$C$32,($AX231*Setup!$D$32)-$AI231-$AK231,(($AX231-VLOOKUP($AX231,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX231,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX231,TaxBracket2,1),0,1,1)-$AI231-$AK231),IF($AX231<Setup!$C$21,($AX231*Setup!$D$21)-$AI231-$AK231,(($AX231-VLOOKUP($AX231,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX231,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX231,TaxBracket1,1),0,1,1)-$AI231-$AK231))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A232)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B232,\"yyyy\")&TEXT($B232,\"mm\")&\"-\"&$C232)","v":"-"},{"$f":"IF(ROW($A232)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A232)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A232)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A232)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A232)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A232)-ROW($A$6)-IF(ROW($A232)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A232)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C232,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C232,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C232,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C232,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C232,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C232,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC232),MONTH($AC232)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C232,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC232),MONTH($AC232),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F232<>\"Active\",0,IF(COUNTIFS(OverEmp,$C232,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMIFS(OverValue,OverEmp,$C232,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1)),IF(AND($AC232>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C232)>0),SUMIFS(EmpIncrease,EmpCode,$C232),SUMIFS(EmpSalary,EmpCode,$C232))))","v":0},{"$f":"IF($F232<>\"Active\",0,IF(COUNTIFS(OverEmp,$C232,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMIFS(OverValue,OverEmp,$C232,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1)),0))","v":0},{"$f":"IF($F232<>\"Active\",0,IF(COUNTIFS(OverEmp,$C232,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMIFS(OverValue,OverEmp,$C232,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1)),IF(MONTH(B232)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C232),0)))","v":0},{"$f":"IF($F232<>\"Active\",0,IF(COUNTIFS(OverEmp,$C232,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMIFS(OverValue,OverEmp,$C232,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1)),0))","v":0},{"$f":"IF($F232<>\"Active\",0,IF(COUNTIFS(OverEmp,$C232,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMIFS(OverValue,OverEmp,$C232,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C232,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMIFS(OverValue,OverEmp,$C232,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1)),(($BA232/12*$AA232)+(BB232*IF(1-$BC232=0,0,BD232/(1-$BC232))))-IF($F232=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC232,PayEmp,$C232)))","v":0},{"$f":"IF($F232=\"Terminated\",0,IF($AA232=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C232,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMIFS(OverValue,OverEmp,$C232,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA232)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA232,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232))))))","v":0},{"$f":"IF($F232=\"Terminated\",0,IF($AA232=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C232,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMIFS(OverValue,OverEmp,$C232,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA232)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA232,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232))))))","v":0},{"$f":"IF($F232=\"Terminated\",0,IF($AA232=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C232,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMIFS(OverValue,OverEmp,$C232,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA232)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA232,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232))))))","v":0},{"$f":"IF($F232=\"Terminated\",0,IF($AA232=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C232,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMIFS(OverValue,OverEmp,$C232,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA232)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA232,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232))))))","v":0},0,0,{"$f":"IF($F232=\"Terminated\",0,IF($AA232=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C232,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMIFS(OverValue,OverEmp,$C232,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA232)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA232,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232)))))))","v":0},{"$f":"IF($F232=\"Terminated\",0,IF($AA232=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C232,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMIFS(OverValue,OverEmp,$C232,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA232)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA232,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232)))))))","v":0},{"$f":"IF($F232=\"Terminated\",0,IF($AA232=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C232,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMIFS(OverValue,OverEmp,$C232,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA232)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA232,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232)))))))","v":0},{"$f":"IF($F232=\"Terminated\",0,IF($AA232=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C232,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMIFS(OverValue,OverEmp,$C232,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA232)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA232,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC232,PayEmp,$C232)))))))","v":0},0,0,0,{"$f":"IF(OR($B232<=Setup!$E$12,$B232>=Setup!$D$12+1),0,IF($F232<>\"Active\",0,IF($AE232=\"Yes\",$AB232,((YEAR($AC232)*12)+MONTH($AC232))-((YEAR($AD232)*12)+MONTH($AD232)-1))))","v":0},{"$f":"IF(OR($B232<=Setup!$E$12,$B232>=Setup!$D$12+1),0,((YEAR($AC232)*12)+MONTH($AC232))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C232,EmpAll,COLUMN(Emp!$E$4),0)),$AC232,IF(VLOOKUP($C232,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C232,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C232,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C232,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C232,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A232=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C232,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMIFS(OverValue,OverEmp,$C232,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1)),IF(ISNA(VLOOKUP($C232,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG232,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C232,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C232,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C232,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C232,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C232,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F232=\"Terminated\",0,IF($AA232=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C232,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA232*12)+(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB232/3,0))*4)+(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB232/6,0))*2)+(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F232=\"Terminated\",0,IF($AA232=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C232,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA232*12)+(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB232/3,0))*4)+(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB232/6,0))*2)+(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F232=\"Terminated\",0,IF($AA232=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C232,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA232*12)+(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB232/3,0))*4)+(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB232/6,0))*2)+(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F232=\"Terminated\",0,IF($AA232=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C232,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA232*12)+(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB232/3,0))*4)+(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB232/6,0))*2)+(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F232=\"Terminated\",0,IF($AA232=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C232,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA232*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F232=\"Terminated\",0,IF($AA232=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C232,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA232*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F232=\"Terminated\",0,IF($AA232=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C232,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA232*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F232=\"Terminated\",0,IF($AA232=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C232,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC232),MONTH($AC232)+1,1),OverEnd,\">=\"&DATE(YEAR($AC232),MONTH($AC232),1))>0,SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA232*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C232)*(PayDate<=$AC232)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA232*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C232,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C232,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL232),($AR232*$AL232)-$AI232-$AK232,MAX(0,IF($AL232=\"B\",IF($AR232<Setup!$C$32,($AR232*Setup!$D$32)-$AI232-$AK232,(($AR232-VLOOKUP($AR232,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR232,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR232,TaxBracket2,1),0,1,1)-$AI232-$AK232),IF($AR232<Setup!$C$21,($AR232*Setup!$D$21)-$AI232-$AK232,(($AR232-VLOOKUP($AR232,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR232,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR232,TaxBracket1,1),0,1,1)-$AI232-$AK232))))","v":0},{"$f":"IF(ISNUMBER($AL232),($AX232*$AL232)-$AI232-$AK232,MAX(0,IF($AL232=\"B\",IF($AX232<Setup!$C$32,($AX232*Setup!$D$32)-$AI232-$AK232,(($AX232-VLOOKUP($AX232,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX232,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX232,TaxBracket2,1),0,1,1)-$AI232-$AK232),IF($AX232<Setup!$C$21,($AX232*Setup!$D$21)-$AI232-$AK232,(($AX232-VLOOKUP($AX232,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX232,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX232,TaxBracket1,1),0,1,1)-$AI232-$AK232))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A233)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B233,\"yyyy\")&TEXT($B233,\"mm\")&\"-\"&$C233)","v":"-"},{"$f":"IF(ROW($A233)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A233)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A233)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A233)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A233)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A233)-ROW($A$6)-IF(ROW($A233)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A233)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C233,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C233,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C233,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C233,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C233,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C233,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC233),MONTH($AC233)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C233,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC233),MONTH($AC233),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F233<>\"Active\",0,IF(COUNTIFS(OverEmp,$C233,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMIFS(OverValue,OverEmp,$C233,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1)),IF(AND($AC233>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C233)>0),SUMIFS(EmpIncrease,EmpCode,$C233),SUMIFS(EmpSalary,EmpCode,$C233))))","v":0},{"$f":"IF($F233<>\"Active\",0,IF(COUNTIFS(OverEmp,$C233,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMIFS(OverValue,OverEmp,$C233,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1)),0))","v":0},{"$f":"IF($F233<>\"Active\",0,IF(COUNTIFS(OverEmp,$C233,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMIFS(OverValue,OverEmp,$C233,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1)),IF(MONTH(B233)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C233),0)))","v":0},{"$f":"IF($F233<>\"Active\",0,IF(COUNTIFS(OverEmp,$C233,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMIFS(OverValue,OverEmp,$C233,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1)),0))","v":0},{"$f":"IF($F233<>\"Active\",0,IF(COUNTIFS(OverEmp,$C233,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMIFS(OverValue,OverEmp,$C233,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C233,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMIFS(OverValue,OverEmp,$C233,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1)),(($BA233/12*$AA233)+(BB233*IF(1-$BC233=0,0,BD233/(1-$BC233))))-IF($F233=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC233,PayEmp,$C233)))","v":0},{"$f":"IF($F233=\"Terminated\",0,IF($AA233=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C233,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMIFS(OverValue,OverEmp,$C233,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA233)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA233,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233))))))","v":0},{"$f":"IF($F233=\"Terminated\",0,IF($AA233=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C233,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMIFS(OverValue,OverEmp,$C233,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA233)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA233,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233))))))","v":0},{"$f":"IF($F233=\"Terminated\",0,IF($AA233=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C233,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMIFS(OverValue,OverEmp,$C233,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA233)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA233,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233))))))","v":0},{"$f":"IF($F233=\"Terminated\",0,IF($AA233=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C233,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMIFS(OverValue,OverEmp,$C233,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA233)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA233,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233))))))","v":0},0,0,{"$f":"IF($F233=\"Terminated\",0,IF($AA233=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C233,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMIFS(OverValue,OverEmp,$C233,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA233)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA233,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233)))))))","v":0},{"$f":"IF($F233=\"Terminated\",0,IF($AA233=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C233,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMIFS(OverValue,OverEmp,$C233,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA233)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA233,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233)))))))","v":0},{"$f":"IF($F233=\"Terminated\",0,IF($AA233=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C233,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMIFS(OverValue,OverEmp,$C233,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA233)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA233,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233)))))))","v":0},{"$f":"IF($F233=\"Terminated\",0,IF($AA233=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C233,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMIFS(OverValue,OverEmp,$C233,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA233)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA233,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC233,PayEmp,$C233)))))))","v":0},0,0,0,{"$f":"IF(OR($B233<=Setup!$E$12,$B233>=Setup!$D$12+1),0,IF($F233<>\"Active\",0,IF($AE233=\"Yes\",$AB233,((YEAR($AC233)*12)+MONTH($AC233))-((YEAR($AD233)*12)+MONTH($AD233)-1))))","v":0},{"$f":"IF(OR($B233<=Setup!$E$12,$B233>=Setup!$D$12+1),0,((YEAR($AC233)*12)+MONTH($AC233))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C233,EmpAll,COLUMN(Emp!$E$4),0)),$AC233,IF(VLOOKUP($C233,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C233,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C233,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C233,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C233,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A233=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C233,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMIFS(OverValue,OverEmp,$C233,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1)),IF(ISNA(VLOOKUP($C233,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG233,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C233,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C233,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C233,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C233,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C233,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F233=\"Terminated\",0,IF($AA233=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C233,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA233*12)+(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB233/3,0))*4)+(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB233/6,0))*2)+(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F233=\"Terminated\",0,IF($AA233=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C233,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA233*12)+(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB233/3,0))*4)+(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB233/6,0))*2)+(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F233=\"Terminated\",0,IF($AA233=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C233,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA233*12)+(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB233/3,0))*4)+(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB233/6,0))*2)+(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F233=\"Terminated\",0,IF($AA233=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C233,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA233*12)+(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB233/3,0))*4)+(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB233/6,0))*2)+(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F233=\"Terminated\",0,IF($AA233=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C233,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA233*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F233=\"Terminated\",0,IF($AA233=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C233,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA233*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F233=\"Terminated\",0,IF($AA233=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C233,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA233*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F233=\"Terminated\",0,IF($AA233=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C233,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC233),MONTH($AC233)+1,1),OverEnd,\">=\"&DATE(YEAR($AC233),MONTH($AC233),1))>0,SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA233*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C233)*(PayDate<=$AC233)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA233*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C233,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C233,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL233),($AR233*$AL233)-$AI233-$AK233,MAX(0,IF($AL233=\"B\",IF($AR233<Setup!$C$32,($AR233*Setup!$D$32)-$AI233-$AK233,(($AR233-VLOOKUP($AR233,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR233,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR233,TaxBracket2,1),0,1,1)-$AI233-$AK233),IF($AR233<Setup!$C$21,($AR233*Setup!$D$21)-$AI233-$AK233,(($AR233-VLOOKUP($AR233,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR233,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR233,TaxBracket1,1),0,1,1)-$AI233-$AK233))))","v":0},{"$f":"IF(ISNUMBER($AL233),($AX233*$AL233)-$AI233-$AK233,MAX(0,IF($AL233=\"B\",IF($AX233<Setup!$C$32,($AX233*Setup!$D$32)-$AI233-$AK233,(($AX233-VLOOKUP($AX233,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX233,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX233,TaxBracket2,1),0,1,1)-$AI233-$AK233),IF($AX233<Setup!$C$21,($AX233*Setup!$D$21)-$AI233-$AK233,(($AX233-VLOOKUP($AX233,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX233,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX233,TaxBracket1,1),0,1,1)-$AI233-$AK233))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A234)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B234,\"yyyy\")&TEXT($B234,\"mm\")&\"-\"&$C234)","v":"-"},{"$f":"IF(ROW($A234)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A234)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A234)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A234)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A234)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A234)-ROW($A$6)-IF(ROW($A234)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A234)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C234,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C234,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C234,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C234,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C234,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C234,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC234),MONTH($AC234)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C234,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC234),MONTH($AC234),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F234<>\"Active\",0,IF(COUNTIFS(OverEmp,$C234,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMIFS(OverValue,OverEmp,$C234,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1)),IF(AND($AC234>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C234)>0),SUMIFS(EmpIncrease,EmpCode,$C234),SUMIFS(EmpSalary,EmpCode,$C234))))","v":0},{"$f":"IF($F234<>\"Active\",0,IF(COUNTIFS(OverEmp,$C234,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMIFS(OverValue,OverEmp,$C234,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1)),0))","v":0},{"$f":"IF($F234<>\"Active\",0,IF(COUNTIFS(OverEmp,$C234,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMIFS(OverValue,OverEmp,$C234,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1)),IF(MONTH(B234)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C234),0)))","v":0},{"$f":"IF($F234<>\"Active\",0,IF(COUNTIFS(OverEmp,$C234,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMIFS(OverValue,OverEmp,$C234,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1)),0))","v":0},{"$f":"IF($F234<>\"Active\",0,IF(COUNTIFS(OverEmp,$C234,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMIFS(OverValue,OverEmp,$C234,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C234,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMIFS(OverValue,OverEmp,$C234,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1)),(($BA234/12*$AA234)+(BB234*IF(1-$BC234=0,0,BD234/(1-$BC234))))-IF($F234=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC234,PayEmp,$C234)))","v":0},{"$f":"IF($F234=\"Terminated\",0,IF($AA234=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C234,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMIFS(OverValue,OverEmp,$C234,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA234)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA234,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234))))))","v":0},{"$f":"IF($F234=\"Terminated\",0,IF($AA234=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C234,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMIFS(OverValue,OverEmp,$C234,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA234)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA234,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234))))))","v":0},{"$f":"IF($F234=\"Terminated\",0,IF($AA234=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C234,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMIFS(OverValue,OverEmp,$C234,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA234)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA234,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234))))))","v":0},{"$f":"IF($F234=\"Terminated\",0,IF($AA234=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C234,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMIFS(OverValue,OverEmp,$C234,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA234)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA234,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234))))))","v":0},0,0,{"$f":"IF($F234=\"Terminated\",0,IF($AA234=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C234,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMIFS(OverValue,OverEmp,$C234,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA234)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA234,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234)))))))","v":0},{"$f":"IF($F234=\"Terminated\",0,IF($AA234=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C234,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMIFS(OverValue,OverEmp,$C234,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA234)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA234,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234)))))))","v":0},{"$f":"IF($F234=\"Terminated\",0,IF($AA234=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C234,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMIFS(OverValue,OverEmp,$C234,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA234)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA234,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234)))))))","v":0},{"$f":"IF($F234=\"Terminated\",0,IF($AA234=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C234,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMIFS(OverValue,OverEmp,$C234,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA234)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA234,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC234,PayEmp,$C234)))))))","v":0},0,0,0,{"$f":"IF(OR($B234<=Setup!$E$12,$B234>=Setup!$D$12+1),0,IF($F234<>\"Active\",0,IF($AE234=\"Yes\",$AB234,((YEAR($AC234)*12)+MONTH($AC234))-((YEAR($AD234)*12)+MONTH($AD234)-1))))","v":0},{"$f":"IF(OR($B234<=Setup!$E$12,$B234>=Setup!$D$12+1),0,((YEAR($AC234)*12)+MONTH($AC234))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C234,EmpAll,COLUMN(Emp!$E$4),0)),$AC234,IF(VLOOKUP($C234,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C234,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C234,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C234,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C234,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A234=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C234,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMIFS(OverValue,OverEmp,$C234,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1)),IF(ISNA(VLOOKUP($C234,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG234,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C234,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C234,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C234,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C234,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C234,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F234=\"Terminated\",0,IF($AA234=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C234,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA234*12)+(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB234/3,0))*4)+(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB234/6,0))*2)+(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F234=\"Terminated\",0,IF($AA234=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C234,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA234*12)+(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB234/3,0))*4)+(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB234/6,0))*2)+(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F234=\"Terminated\",0,IF($AA234=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C234,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA234*12)+(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB234/3,0))*4)+(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB234/6,0))*2)+(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F234=\"Terminated\",0,IF($AA234=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C234,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA234*12)+(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB234/3,0))*4)+(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB234/6,0))*2)+(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F234=\"Terminated\",0,IF($AA234=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C234,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA234*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F234=\"Terminated\",0,IF($AA234=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C234,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA234*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F234=\"Terminated\",0,IF($AA234=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C234,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA234*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F234=\"Terminated\",0,IF($AA234=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C234,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC234),MONTH($AC234)+1,1),OverEnd,\">=\"&DATE(YEAR($AC234),MONTH($AC234),1))>0,SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA234*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C234)*(PayDate<=$AC234)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA234*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C234,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C234,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL234),($AR234*$AL234)-$AI234-$AK234,MAX(0,IF($AL234=\"B\",IF($AR234<Setup!$C$32,($AR234*Setup!$D$32)-$AI234-$AK234,(($AR234-VLOOKUP($AR234,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR234,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR234,TaxBracket2,1),0,1,1)-$AI234-$AK234),IF($AR234<Setup!$C$21,($AR234*Setup!$D$21)-$AI234-$AK234,(($AR234-VLOOKUP($AR234,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR234,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR234,TaxBracket1,1),0,1,1)-$AI234-$AK234))))","v":0},{"$f":"IF(ISNUMBER($AL234),($AX234*$AL234)-$AI234-$AK234,MAX(0,IF($AL234=\"B\",IF($AX234<Setup!$C$32,($AX234*Setup!$D$32)-$AI234-$AK234,(($AX234-VLOOKUP($AX234,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX234,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX234,TaxBracket2,1),0,1,1)-$AI234-$AK234),IF($AX234<Setup!$C$21,($AX234*Setup!$D$21)-$AI234-$AK234,(($AX234-VLOOKUP($AX234,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX234,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX234,TaxBracket1,1),0,1,1)-$AI234-$AK234))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A235)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B235,\"yyyy\")&TEXT($B235,\"mm\")&\"-\"&$C235)","v":"-"},{"$f":"IF(ROW($A235)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A235)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A235)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A235)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A235)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A235)-ROW($A$6)-IF(ROW($A235)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A235)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C235,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C235,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C235,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C235,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C235,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C235,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC235),MONTH($AC235)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C235,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC235),MONTH($AC235),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F235<>\"Active\",0,IF(COUNTIFS(OverEmp,$C235,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMIFS(OverValue,OverEmp,$C235,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1)),IF(AND($AC235>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C235)>0),SUMIFS(EmpIncrease,EmpCode,$C235),SUMIFS(EmpSalary,EmpCode,$C235))))","v":0},{"$f":"IF($F235<>\"Active\",0,IF(COUNTIFS(OverEmp,$C235,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMIFS(OverValue,OverEmp,$C235,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1)),0))","v":0},{"$f":"IF($F235<>\"Active\",0,IF(COUNTIFS(OverEmp,$C235,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMIFS(OverValue,OverEmp,$C235,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1)),IF(MONTH(B235)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C235),0)))","v":0},{"$f":"IF($F235<>\"Active\",0,IF(COUNTIFS(OverEmp,$C235,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMIFS(OverValue,OverEmp,$C235,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1)),0))","v":0},{"$f":"IF($F235<>\"Active\",0,IF(COUNTIFS(OverEmp,$C235,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMIFS(OverValue,OverEmp,$C235,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1)),0))","v":0},{"$f":"IF($AA235=0,0,SUM(OFFSET($G235,0,0,1,COLUMN($L$6)-COLUMN($G$6))))","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C235,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMIFS(OverValue,OverEmp,$C235,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1)),(($BA235/12*$AA235)+(BB235*IF(1-$BC235=0,0,BD235/(1-$BC235))))-IF($F235=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC235,PayEmp,$C235)))","v":0},{"$f":"IF($F235=\"Terminated\",0,IF($AA235=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C235,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMIFS(OverValue,OverEmp,$C235,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA235)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA235,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235))))))","v":0},{"$f":"IF($F235=\"Terminated\",0,IF($AA235=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C235,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMIFS(OverValue,OverEmp,$C235,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA235)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA235,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235))))))","v":0},{"$f":"IF($F235=\"Terminated\",0,IF($AA235=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C235,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMIFS(OverValue,OverEmp,$C235,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA235)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA235,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235))))))","v":0},{"$f":"IF($F235=\"Terminated\",0,IF($AA235=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C235,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMIFS(OverValue,OverEmp,$C235,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA235)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA235,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235))))))","v":0},{"$f":"SUM(OFFSET(M235,0,0,1,COLUMN($R$6)-COLUMN($M$6)))","v":0},{"$f":"ROUND(SUM(L235,-R235),2)","v":0},{"$f":"IF($F235=\"Terminated\",0,IF($AA235=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C235,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMIFS(OverValue,OverEmp,$C235,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA235)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA235,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235)))))))","v":0},{"$f":"IF($F235=\"Terminated\",0,IF($AA235=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C235,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMIFS(OverValue,OverEmp,$C235,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA235)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA235,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235)))))))","v":0},{"$f":"IF($F235=\"Terminated\",0,IF($AA235=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C235,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMIFS(OverValue,OverEmp,$C235,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA235)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA235,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235)))))))","v":0},{"$f":"IF($F235=\"Terminated\",0,IF($AA235=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C235,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMIFS(OverValue,OverEmp,$C235,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA235)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA235,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC235,PayEmp,$C235)))))))","v":0},0,{"$f":"L235+X235","v":0},0,{"$f":"IF(OR($B235<=Setup!$E$12,$B235>=Setup!$D$12+1),0,IF($F235<>\"Active\",0,IF($AE235=\"Yes\",$AB235,((YEAR($AC235)*12)+MONTH($AC235))-((YEAR($AD235)*12)+MONTH($AD235)-1))))","v":0},{"$f":"IF(OR($B235<=Setup!$E$12,$B235>=Setup!$D$12+1),0,((YEAR($AC235)*12)+MONTH($AC235))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C235,EmpAll,COLUMN(Emp!$E$4),0)),$AC235,IF(VLOOKUP($C235,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C235,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C235,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C235,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C235,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A235=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C235,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMIFS(OverValue,OverEmp,$C235,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1)),IF(ISNA(VLOOKUP($C235,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG235,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C235,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C235,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C235,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C235,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C235,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F235=\"Terminated\",0,IF($AA235=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C235,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA235*12)+(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB235/3,0))*4)+(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB235/6,0))*2)+(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F235=\"Terminated\",0,IF($AA235=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C235,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA235*12)+(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB235/3,0))*4)+(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB235/6,0))*2)+(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F235=\"Terminated\",0,IF($AA235=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C235,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA235*12)+(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB235/3,0))*4)+(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB235/6,0))*2)+(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F235=\"Terminated\",0,IF($AA235=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C235,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA235*12)+(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB235/3,0))*4)+(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB235/6,0))*2)+(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F235=\"Terminated\",0,IF($AA235=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C235,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA235*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F235=\"Terminated\",0,IF($AA235=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C235,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA235*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F235=\"Terminated\",0,IF($AA235=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C235,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA235*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F235=\"Terminated\",0,IF($AA235=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C235,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC235),MONTH($AC235)+1,1),OverEnd,\">=\"&DATE(YEAR($AC235),MONTH($AC235),1))>0,SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA235*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C235)*(PayDate<=$AC235)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA235*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C235,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C235,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},{"$f":"$AS235+SUM(OFFSET($AT235,0,0,1,COLUMN($AX$2)-COLUMN($AT$2)))","v":0},{"$f":"AR235-AX235","v":0},{"$f":"IF(ISNUMBER($AL235),($AR235*$AL235)-$AI235-$AK235,MAX(0,IF($AL235=\"B\",IF($AR235<Setup!$C$32,($AR235*Setup!$D$32)-$AI235-$AK235,(($AR235-VLOOKUP($AR235,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR235,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR235,TaxBracket2,1),0,1,1)-$AI235-$AK235),IF($AR235<Setup!$C$21,($AR235*Setup!$D$21)-$AI235-$AK235,(($AR235-VLOOKUP($AR235,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR235,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR235,TaxBracket1,1),0,1,1)-$AI235-$AK235))))","v":0},{"$f":"IF(ISNUMBER($AL235),($AX235*$AL235)-$AI235-$AK235,MAX(0,IF($AL235=\"B\",IF($AX235<Setup!$C$32,($AX235*Setup!$D$32)-$AI235-$AK235,(($AX235-VLOOKUP($AX235,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX235,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX235,TaxBracket2,1),0,1,1)-$AI235-$AK235),IF($AX235<Setup!$C$21,($AX235*Setup!$D$21)-$AI235-$AK235,(($AX235-VLOOKUP($AX235,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX235,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX235,TaxBracket1,1),0,1,1)-$AI235-$AK235))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A236)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B236,\"yyyy\")&TEXT($B236,\"mm\")&\"-\"&$C236)","v":"-"},{"$f":"IF(ROW($A236)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A236)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A236)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A236)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A236)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A236)-ROW($A$6)-IF(ROW($A236)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A236)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C236,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C236,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C236,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C236,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C236,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C236,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC236),MONTH($AC236)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C236,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC236),MONTH($AC236),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F236<>\"Active\",0,IF(COUNTIFS(OverEmp,$C236,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMIFS(OverValue,OverEmp,$C236,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1)),IF(AND($AC236>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C236)>0),SUMIFS(EmpIncrease,EmpCode,$C236),SUMIFS(EmpSalary,EmpCode,$C236))))","v":0},{"$f":"IF($F236<>\"Active\",0,IF(COUNTIFS(OverEmp,$C236,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMIFS(OverValue,OverEmp,$C236,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1)),0))","v":0},{"$f":"IF($F236<>\"Active\",0,IF(COUNTIFS(OverEmp,$C236,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMIFS(OverValue,OverEmp,$C236,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1)),IF(MONTH(B236)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C236),0)))","v":0},{"$f":"IF($F236<>\"Active\",0,IF(COUNTIFS(OverEmp,$C236,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMIFS(OverValue,OverEmp,$C236,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1)),0))","v":0},{"$f":"IF($F236<>\"Active\",0,IF(COUNTIFS(OverEmp,$C236,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMIFS(OverValue,OverEmp,$C236,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C236,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMIFS(OverValue,OverEmp,$C236,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1)),(($BA236/12*$AA236)+(BB236*IF(1-$BC236=0,0,BD236/(1-$BC236))))-IF($F236=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC236,PayEmp,$C236)))","v":0},{"$f":"IF($F236=\"Terminated\",0,IF($AA236=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C236,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMIFS(OverValue,OverEmp,$C236,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA236)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA236,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236))))))","v":0},{"$f":"IF($F236=\"Terminated\",0,IF($AA236=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C236,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMIFS(OverValue,OverEmp,$C236,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA236)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA236,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236))))))","v":0},{"$f":"IF($F236=\"Terminated\",0,IF($AA236=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C236,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMIFS(OverValue,OverEmp,$C236,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA236)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA236,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236))))))","v":0},{"$f":"IF($F236=\"Terminated\",0,IF($AA236=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C236,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMIFS(OverValue,OverEmp,$C236,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA236)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA236,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236))))))","v":0},0,0,{"$f":"IF($F236=\"Terminated\",0,IF($AA236=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C236,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMIFS(OverValue,OverEmp,$C236,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA236)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA236,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236)))))))","v":0},{"$f":"IF($F236=\"Terminated\",0,IF($AA236=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C236,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMIFS(OverValue,OverEmp,$C236,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA236)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA236,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236)))))))","v":0},{"$f":"IF($F236=\"Terminated\",0,IF($AA236=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C236,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMIFS(OverValue,OverEmp,$C236,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA236)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA236,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236)))))))","v":0},{"$f":"IF($F236=\"Terminated\",0,IF($AA236=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C236,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMIFS(OverValue,OverEmp,$C236,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA236)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA236,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC236,PayEmp,$C236)))))))","v":0},0,0,0,{"$f":"IF(OR($B236<=Setup!$E$12,$B236>=Setup!$D$12+1),0,IF($F236<>\"Active\",0,IF($AE236=\"Yes\",$AB236,((YEAR($AC236)*12)+MONTH($AC236))-((YEAR($AD236)*12)+MONTH($AD236)-1))))","v":0},{"$f":"IF(OR($B236<=Setup!$E$12,$B236>=Setup!$D$12+1),0,((YEAR($AC236)*12)+MONTH($AC236))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C236,EmpAll,COLUMN(Emp!$E$4),0)),$AC236,IF(VLOOKUP($C236,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C236,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C236,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C236,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C236,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A236=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C236,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMIFS(OverValue,OverEmp,$C236,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1)),IF(ISNA(VLOOKUP($C236,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG236,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C236,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C236,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C236,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C236,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C236,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F236=\"Terminated\",0,IF($AA236=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C236,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA236*12)+(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB236/3,0))*4)+(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB236/6,0))*2)+(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F236=\"Terminated\",0,IF($AA236=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C236,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA236*12)+(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB236/3,0))*4)+(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB236/6,0))*2)+(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F236=\"Terminated\",0,IF($AA236=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C236,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA236*12)+(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB236/3,0))*4)+(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB236/6,0))*2)+(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F236=\"Terminated\",0,IF($AA236=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C236,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA236*12)+(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB236/3,0))*4)+(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB236/6,0))*2)+(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F236=\"Terminated\",0,IF($AA236=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C236,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA236*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F236=\"Terminated\",0,IF($AA236=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C236,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA236*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F236=\"Terminated\",0,IF($AA236=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C236,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA236*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F236=\"Terminated\",0,IF($AA236=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C236,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC236),MONTH($AC236)+1,1),OverEnd,\">=\"&DATE(YEAR($AC236),MONTH($AC236),1))>0,SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA236*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C236)*(PayDate<=$AC236)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA236*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C236,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C236,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL236),($AR236*$AL236)-$AI236-$AK236,MAX(0,IF($AL236=\"B\",IF($AR236<Setup!$C$32,($AR236*Setup!$D$32)-$AI236-$AK236,(($AR236-VLOOKUP($AR236,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR236,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR236,TaxBracket2,1),0,1,1)-$AI236-$AK236),IF($AR236<Setup!$C$21,($AR236*Setup!$D$21)-$AI236-$AK236,(($AR236-VLOOKUP($AR236,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR236,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR236,TaxBracket1,1),0,1,1)-$AI236-$AK236))))","v":0},{"$f":"IF(ISNUMBER($AL236),($AX236*$AL236)-$AI236-$AK236,MAX(0,IF($AL236=\"B\",IF($AX236<Setup!$C$32,($AX236*Setup!$D$32)-$AI236-$AK236,(($AX236-VLOOKUP($AX236,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX236,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX236,TaxBracket2,1),0,1,1)-$AI236-$AK236),IF($AX236<Setup!$C$21,($AX236*Setup!$D$21)-$AI236-$AK236,(($AX236-VLOOKUP($AX236,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX236,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX236,TaxBracket1,1),0,1,1)-$AI236-$AK236))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A237)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B237,\"yyyy\")&TEXT($B237,\"mm\")&\"-\"&$C237)","v":"-"},{"$f":"IF(ROW($A237)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A237)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A237)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A237)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A237)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A237)-ROW($A$6)-IF(ROW($A237)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A237)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C237,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C237,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C237,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C237,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C237,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C237,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC237),MONTH($AC237)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C237,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC237),MONTH($AC237),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F237<>\"Active\",0,IF(COUNTIFS(OverEmp,$C237,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMIFS(OverValue,OverEmp,$C237,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1)),IF(AND($AC237>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C237)>0),SUMIFS(EmpIncrease,EmpCode,$C237),SUMIFS(EmpSalary,EmpCode,$C237))))","v":0},{"$f":"IF($F237<>\"Active\",0,IF(COUNTIFS(OverEmp,$C237,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMIFS(OverValue,OverEmp,$C237,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1)),0))","v":0},{"$f":"IF($F237<>\"Active\",0,IF(COUNTIFS(OverEmp,$C237,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMIFS(OverValue,OverEmp,$C237,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1)),IF(MONTH(B237)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C237),0)))","v":0},{"$f":"IF($F237<>\"Active\",0,IF(COUNTIFS(OverEmp,$C237,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMIFS(OverValue,OverEmp,$C237,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1)),0))","v":0},{"$f":"IF($F237<>\"Active\",0,IF(COUNTIFS(OverEmp,$C237,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMIFS(OverValue,OverEmp,$C237,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C237,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMIFS(OverValue,OverEmp,$C237,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1)),(($BA237/12*$AA237)+(BB237*IF(1-$BC237=0,0,BD237/(1-$BC237))))-IF($F237=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC237,PayEmp,$C237)))","v":0},{"$f":"IF($F237=\"Terminated\",0,IF($AA237=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C237,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMIFS(OverValue,OverEmp,$C237,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA237)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA237,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237))))))","v":0},{"$f":"IF($F237=\"Terminated\",0,IF($AA237=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C237,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMIFS(OverValue,OverEmp,$C237,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA237)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA237,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237))))))","v":0},{"$f":"IF($F237=\"Terminated\",0,IF($AA237=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C237,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMIFS(OverValue,OverEmp,$C237,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA237)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA237,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237))))))","v":0},{"$f":"IF($F237=\"Terminated\",0,IF($AA237=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C237,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMIFS(OverValue,OverEmp,$C237,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA237)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA237,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237))))))","v":0},0,0,{"$f":"IF($F237=\"Terminated\",0,IF($AA237=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C237,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMIFS(OverValue,OverEmp,$C237,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA237)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA237,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237)))))))","v":0},{"$f":"IF($F237=\"Terminated\",0,IF($AA237=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C237,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMIFS(OverValue,OverEmp,$C237,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA237)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA237,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237)))))))","v":0},{"$f":"IF($F237=\"Terminated\",0,IF($AA237=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C237,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMIFS(OverValue,OverEmp,$C237,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA237)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA237,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237)))))))","v":0},{"$f":"IF($F237=\"Terminated\",0,IF($AA237=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C237,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMIFS(OverValue,OverEmp,$C237,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA237)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA237,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC237,PayEmp,$C237)))))))","v":0},0,0,0,{"$f":"IF(OR($B237<=Setup!$E$12,$B237>=Setup!$D$12+1),0,IF($F237<>\"Active\",0,IF($AE237=\"Yes\",$AB237,((YEAR($AC237)*12)+MONTH($AC237))-((YEAR($AD237)*12)+MONTH($AD237)-1))))","v":0},{"$f":"IF(OR($B237<=Setup!$E$12,$B237>=Setup!$D$12+1),0,((YEAR($AC237)*12)+MONTH($AC237))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C237,EmpAll,COLUMN(Emp!$E$4),0)),$AC237,IF(VLOOKUP($C237,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C237,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C237,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C237,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C237,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A237=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C237,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMIFS(OverValue,OverEmp,$C237,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1)),IF(ISNA(VLOOKUP($C237,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG237,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C237,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C237,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C237,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C237,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C237,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F237=\"Terminated\",0,IF($AA237=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C237,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA237*12)+(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB237/3,0))*4)+(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB237/6,0))*2)+(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F237=\"Terminated\",0,IF($AA237=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C237,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA237*12)+(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB237/3,0))*4)+(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB237/6,0))*2)+(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F237=\"Terminated\",0,IF($AA237=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C237,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA237*12)+(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB237/3,0))*4)+(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB237/6,0))*2)+(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F237=\"Terminated\",0,IF($AA237=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C237,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA237*12)+(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB237/3,0))*4)+(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB237/6,0))*2)+(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F237=\"Terminated\",0,IF($AA237=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C237,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA237*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F237=\"Terminated\",0,IF($AA237=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C237,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA237*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F237=\"Terminated\",0,IF($AA237=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C237,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA237*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F237=\"Terminated\",0,IF($AA237=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C237,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC237),MONTH($AC237)+1,1),OverEnd,\">=\"&DATE(YEAR($AC237),MONTH($AC237),1))>0,SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA237*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C237)*(PayDate<=$AC237)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA237*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C237,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C237,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL237),($AR237*$AL237)-$AI237-$AK237,MAX(0,IF($AL237=\"B\",IF($AR237<Setup!$C$32,($AR237*Setup!$D$32)-$AI237-$AK237,(($AR237-VLOOKUP($AR237,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR237,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR237,TaxBracket2,1),0,1,1)-$AI237-$AK237),IF($AR237<Setup!$C$21,($AR237*Setup!$D$21)-$AI237-$AK237,(($AR237-VLOOKUP($AR237,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR237,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR237,TaxBracket1,1),0,1,1)-$AI237-$AK237))))","v":0},{"$f":"IF(ISNUMBER($AL237),($AX237*$AL237)-$AI237-$AK237,MAX(0,IF($AL237=\"B\",IF($AX237<Setup!$C$32,($AX237*Setup!$D$32)-$AI237-$AK237,(($AX237-VLOOKUP($AX237,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX237,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX237,TaxBracket2,1),0,1,1)-$AI237-$AK237),IF($AX237<Setup!$C$21,($AX237*Setup!$D$21)-$AI237-$AK237,(($AX237-VLOOKUP($AX237,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX237,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX237,TaxBracket1,1),0,1,1)-$AI237-$AK237))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A238)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B238,\"yyyy\")&TEXT($B238,\"mm\")&\"-\"&$C238)","v":"-"},{"$f":"IF(ROW($A238)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A238)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A238)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A238)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A238)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A238)-ROW($A$6)-IF(ROW($A238)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A238)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C238,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C238,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C238,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C238,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C238,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C238,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC238),MONTH($AC238)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C238,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC238),MONTH($AC238),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F238<>\"Active\",0,IF(COUNTIFS(OverEmp,$C238,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMIFS(OverValue,OverEmp,$C238,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1)),IF(AND($AC238>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C238)>0),SUMIFS(EmpIncrease,EmpCode,$C238),SUMIFS(EmpSalary,EmpCode,$C238))))","v":0},{"$f":"IF($F238<>\"Active\",0,IF(COUNTIFS(OverEmp,$C238,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMIFS(OverValue,OverEmp,$C238,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1)),0))","v":0},{"$f":"IF($F238<>\"Active\",0,IF(COUNTIFS(OverEmp,$C238,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMIFS(OverValue,OverEmp,$C238,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1)),IF(MONTH(B238)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C238),0)))","v":0},{"$f":"IF($F238<>\"Active\",0,IF(COUNTIFS(OverEmp,$C238,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMIFS(OverValue,OverEmp,$C238,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1)),0))","v":0},{"$f":"IF($F238<>\"Active\",0,IF(COUNTIFS(OverEmp,$C238,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMIFS(OverValue,OverEmp,$C238,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C238,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMIFS(OverValue,OverEmp,$C238,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1)),(($BA238/12*$AA238)+(BB238*IF(1-$BC238=0,0,BD238/(1-$BC238))))-IF($F238=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC238,PayEmp,$C238)))","v":0},{"$f":"IF($F238=\"Terminated\",0,IF($AA238=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C238,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMIFS(OverValue,OverEmp,$C238,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA238)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA238,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238))))))","v":0},{"$f":"IF($F238=\"Terminated\",0,IF($AA238=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C238,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMIFS(OverValue,OverEmp,$C238,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA238)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA238,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238))))))","v":0},{"$f":"IF($F238=\"Terminated\",0,IF($AA238=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C238,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMIFS(OverValue,OverEmp,$C238,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA238)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA238,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238))))))","v":0},{"$f":"IF($F238=\"Terminated\",0,IF($AA238=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C238,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMIFS(OverValue,OverEmp,$C238,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA238)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA238,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238))))))","v":0},0,0,{"$f":"IF($F238=\"Terminated\",0,IF($AA238=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C238,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMIFS(OverValue,OverEmp,$C238,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA238)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA238,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238)))))))","v":0},{"$f":"IF($F238=\"Terminated\",0,IF($AA238=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C238,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMIFS(OverValue,OverEmp,$C238,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA238)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA238,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238)))))))","v":0},{"$f":"IF($F238=\"Terminated\",0,IF($AA238=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C238,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMIFS(OverValue,OverEmp,$C238,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA238)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA238,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238)))))))","v":0},{"$f":"IF($F238=\"Terminated\",0,IF($AA238=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C238,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMIFS(OverValue,OverEmp,$C238,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA238)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA238,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC238,PayEmp,$C238)))))))","v":0},0,0,0,{"$f":"IF(OR($B238<=Setup!$E$12,$B238>=Setup!$D$12+1),0,IF($F238<>\"Active\",0,IF($AE238=\"Yes\",$AB238,((YEAR($AC238)*12)+MONTH($AC238))-((YEAR($AD238)*12)+MONTH($AD238)-1))))","v":0},{"$f":"IF(OR($B238<=Setup!$E$12,$B238>=Setup!$D$12+1),0,((YEAR($AC238)*12)+MONTH($AC238))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C238,EmpAll,COLUMN(Emp!$E$4),0)),$AC238,IF(VLOOKUP($C238,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C238,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C238,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C238,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C238,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A238=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C238,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMIFS(OverValue,OverEmp,$C238,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1)),IF(ISNA(VLOOKUP($C238,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG238,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C238,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C238,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C238,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C238,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C238,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F238=\"Terminated\",0,IF($AA238=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C238,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA238*12)+(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB238/3,0))*4)+(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB238/6,0))*2)+(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F238=\"Terminated\",0,IF($AA238=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C238,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA238*12)+(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB238/3,0))*4)+(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB238/6,0))*2)+(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F238=\"Terminated\",0,IF($AA238=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C238,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA238*12)+(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB238/3,0))*4)+(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB238/6,0))*2)+(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F238=\"Terminated\",0,IF($AA238=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C238,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA238*12)+(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB238/3,0))*4)+(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB238/6,0))*2)+(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F238=\"Terminated\",0,IF($AA238=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C238,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA238*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F238=\"Terminated\",0,IF($AA238=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C238,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA238*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F238=\"Terminated\",0,IF($AA238=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C238,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA238*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F238=\"Terminated\",0,IF($AA238=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C238,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC238),MONTH($AC238)+1,1),OverEnd,\">=\"&DATE(YEAR($AC238),MONTH($AC238),1))>0,SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA238*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C238)*(PayDate<=$AC238)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA238*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C238,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C238,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL238),($AR238*$AL238)-$AI238-$AK238,MAX(0,IF($AL238=\"B\",IF($AR238<Setup!$C$32,($AR238*Setup!$D$32)-$AI238-$AK238,(($AR238-VLOOKUP($AR238,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR238,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR238,TaxBracket2,1),0,1,1)-$AI238-$AK238),IF($AR238<Setup!$C$21,($AR238*Setup!$D$21)-$AI238-$AK238,(($AR238-VLOOKUP($AR238,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR238,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR238,TaxBracket1,1),0,1,1)-$AI238-$AK238))))","v":0},{"$f":"IF(ISNUMBER($AL238),($AX238*$AL238)-$AI238-$AK238,MAX(0,IF($AL238=\"B\",IF($AX238<Setup!$C$32,($AX238*Setup!$D$32)-$AI238-$AK238,(($AX238-VLOOKUP($AX238,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX238,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX238,TaxBracket2,1),0,1,1)-$AI238-$AK238),IF($AX238<Setup!$C$21,($AX238*Setup!$D$21)-$AI238-$AK238,(($AX238-VLOOKUP($AX238,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX238,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX238,TaxBracket1,1),0,1,1)-$AI238-$AK238))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A239)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B239,\"yyyy\")&TEXT($B239,\"mm\")&\"-\"&$C239)","v":"-"},{"$f":"IF(ROW($A239)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A239)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A239)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A239)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A239)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A239)-ROW($A$6)-IF(ROW($A239)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A239)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C239,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C239,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C239,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C239,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C239,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C239,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC239),MONTH($AC239)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C239,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC239),MONTH($AC239),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F239<>\"Active\",0,IF(COUNTIFS(OverEmp,$C239,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMIFS(OverValue,OverEmp,$C239,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1)),IF(AND($AC239>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C239)>0),SUMIFS(EmpIncrease,EmpCode,$C239),SUMIFS(EmpSalary,EmpCode,$C239))))","v":0},{"$f":"IF($F239<>\"Active\",0,IF(COUNTIFS(OverEmp,$C239,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMIFS(OverValue,OverEmp,$C239,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1)),0))","v":0},{"$f":"IF($F239<>\"Active\",0,IF(COUNTIFS(OverEmp,$C239,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMIFS(OverValue,OverEmp,$C239,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1)),IF(MONTH(B239)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C239),0)))","v":0},{"$f":"IF($F239<>\"Active\",0,IF(COUNTIFS(OverEmp,$C239,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMIFS(OverValue,OverEmp,$C239,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1)),0))","v":0},{"$f":"IF($F239<>\"Active\",0,IF(COUNTIFS(OverEmp,$C239,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMIFS(OverValue,OverEmp,$C239,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C239,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMIFS(OverValue,OverEmp,$C239,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1)),(($BA239/12*$AA239)+(BB239*IF(1-$BC239=0,0,BD239/(1-$BC239))))-IF($F239=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC239,PayEmp,$C239)))","v":0},{"$f":"IF($F239=\"Terminated\",0,IF($AA239=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C239,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMIFS(OverValue,OverEmp,$C239,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA239)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA239,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239))))))","v":0},{"$f":"IF($F239=\"Terminated\",0,IF($AA239=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C239,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMIFS(OverValue,OverEmp,$C239,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA239)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA239,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239))))))","v":0},{"$f":"IF($F239=\"Terminated\",0,IF($AA239=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C239,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMIFS(OverValue,OverEmp,$C239,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA239)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA239,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239))))))","v":0},{"$f":"IF($F239=\"Terminated\",0,IF($AA239=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C239,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMIFS(OverValue,OverEmp,$C239,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA239)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA239,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239))))))","v":0},0,0,{"$f":"IF($F239=\"Terminated\",0,IF($AA239=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C239,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMIFS(OverValue,OverEmp,$C239,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA239)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA239,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239)))))))","v":0},{"$f":"IF($F239=\"Terminated\",0,IF($AA239=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C239,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMIFS(OverValue,OverEmp,$C239,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA239)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA239,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239)))))))","v":0},{"$f":"IF($F239=\"Terminated\",0,IF($AA239=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C239,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMIFS(OverValue,OverEmp,$C239,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA239)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA239,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239)))))))","v":0},{"$f":"IF($F239=\"Terminated\",0,IF($AA239=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C239,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMIFS(OverValue,OverEmp,$C239,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA239)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA239,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC239,PayEmp,$C239)))))))","v":0},0,0,0,{"$f":"IF(OR($B239<=Setup!$E$12,$B239>=Setup!$D$12+1),0,IF($F239<>\"Active\",0,IF($AE239=\"Yes\",$AB239,((YEAR($AC239)*12)+MONTH($AC239))-((YEAR($AD239)*12)+MONTH($AD239)-1))))","v":0},{"$f":"IF(OR($B239<=Setup!$E$12,$B239>=Setup!$D$12+1),0,((YEAR($AC239)*12)+MONTH($AC239))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C239,EmpAll,COLUMN(Emp!$E$4),0)),$AC239,IF(VLOOKUP($C239,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C239,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C239,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C239,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C239,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A239=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C239,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMIFS(OverValue,OverEmp,$C239,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1)),IF(ISNA(VLOOKUP($C239,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG239,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C239,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C239,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C239,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C239,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C239,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F239=\"Terminated\",0,IF($AA239=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C239,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA239*12)+(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB239/3,0))*4)+(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB239/6,0))*2)+(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F239=\"Terminated\",0,IF($AA239=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C239,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA239*12)+(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB239/3,0))*4)+(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB239/6,0))*2)+(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F239=\"Terminated\",0,IF($AA239=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C239,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA239*12)+(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB239/3,0))*4)+(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB239/6,0))*2)+(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F239=\"Terminated\",0,IF($AA239=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C239,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA239*12)+(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB239/3,0))*4)+(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB239/6,0))*2)+(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F239=\"Terminated\",0,IF($AA239=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C239,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA239*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F239=\"Terminated\",0,IF($AA239=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C239,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA239*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F239=\"Terminated\",0,IF($AA239=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C239,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA239*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F239=\"Terminated\",0,IF($AA239=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C239,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC239),MONTH($AC239)+1,1),OverEnd,\">=\"&DATE(YEAR($AC239),MONTH($AC239),1))>0,SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA239*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C239)*(PayDate<=$AC239)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA239*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C239,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C239,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL239),($AR239*$AL239)-$AI239-$AK239,MAX(0,IF($AL239=\"B\",IF($AR239<Setup!$C$32,($AR239*Setup!$D$32)-$AI239-$AK239,(($AR239-VLOOKUP($AR239,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR239,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR239,TaxBracket2,1),0,1,1)-$AI239-$AK239),IF($AR239<Setup!$C$21,($AR239*Setup!$D$21)-$AI239-$AK239,(($AR239-VLOOKUP($AR239,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR239,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR239,TaxBracket1,1),0,1,1)-$AI239-$AK239))))","v":0},{"$f":"IF(ISNUMBER($AL239),($AX239*$AL239)-$AI239-$AK239,MAX(0,IF($AL239=\"B\",IF($AX239<Setup!$C$32,($AX239*Setup!$D$32)-$AI239-$AK239,(($AX239-VLOOKUP($AX239,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX239,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX239,TaxBracket2,1),0,1,1)-$AI239-$AK239),IF($AX239<Setup!$C$21,($AX239*Setup!$D$21)-$AI239-$AK239,(($AX239-VLOOKUP($AX239,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX239,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX239,TaxBracket1,1),0,1,1)-$AI239-$AK239))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A240)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B240,\"yyyy\")&TEXT($B240,\"mm\")&\"-\"&$C240)","v":"-"},{"$f":"IF(ROW($A240)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A240)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A240)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A240)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A240)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A240)-ROW($A$6)-IF(ROW($A240)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A240)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C240,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C240,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C240,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C240,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C240,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C240,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC240),MONTH($AC240)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C240,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC240),MONTH($AC240),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F240<>\"Active\",0,IF(COUNTIFS(OverEmp,$C240,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMIFS(OverValue,OverEmp,$C240,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1)),IF(AND($AC240>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C240)>0),SUMIFS(EmpIncrease,EmpCode,$C240),SUMIFS(EmpSalary,EmpCode,$C240))))","v":0},{"$f":"IF($F240<>\"Active\",0,IF(COUNTIFS(OverEmp,$C240,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMIFS(OverValue,OverEmp,$C240,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1)),0))","v":0},{"$f":"IF($F240<>\"Active\",0,IF(COUNTIFS(OverEmp,$C240,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMIFS(OverValue,OverEmp,$C240,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1)),IF(MONTH(B240)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C240),0)))","v":0},{"$f":"IF($F240<>\"Active\",0,IF(COUNTIFS(OverEmp,$C240,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMIFS(OverValue,OverEmp,$C240,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1)),0))","v":0},{"$f":"IF($F240<>\"Active\",0,IF(COUNTIFS(OverEmp,$C240,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMIFS(OverValue,OverEmp,$C240,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C240,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMIFS(OverValue,OverEmp,$C240,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1)),(($BA240/12*$AA240)+(BB240*IF(1-$BC240=0,0,BD240/(1-$BC240))))-IF($F240=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC240,PayEmp,$C240)))","v":0},{"$f":"IF($F240=\"Terminated\",0,IF($AA240=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C240,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMIFS(OverValue,OverEmp,$C240,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA240)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA240,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240))))))","v":0},{"$f":"IF($F240=\"Terminated\",0,IF($AA240=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C240,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMIFS(OverValue,OverEmp,$C240,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA240)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA240,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240))))))","v":0},{"$f":"IF($F240=\"Terminated\",0,IF($AA240=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C240,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMIFS(OverValue,OverEmp,$C240,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA240)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA240,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240))))))","v":0},{"$f":"IF($F240=\"Terminated\",0,IF($AA240=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C240,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMIFS(OverValue,OverEmp,$C240,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA240)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA240,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240))))))","v":0},0,0,{"$f":"IF($F240=\"Terminated\",0,IF($AA240=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C240,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMIFS(OverValue,OverEmp,$C240,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA240)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA240,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240)))))))","v":0},{"$f":"IF($F240=\"Terminated\",0,IF($AA240=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C240,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMIFS(OverValue,OverEmp,$C240,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA240)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA240,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240)))))))","v":0},{"$f":"IF($F240=\"Terminated\",0,IF($AA240=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C240,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMIFS(OverValue,OverEmp,$C240,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA240)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA240,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240)))))))","v":0},{"$f":"IF($F240=\"Terminated\",0,IF($AA240=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C240,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMIFS(OverValue,OverEmp,$C240,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA240)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA240,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC240,PayEmp,$C240)))))))","v":0},0,0,0,{"$f":"IF(OR($B240<=Setup!$E$12,$B240>=Setup!$D$12+1),0,IF($F240<>\"Active\",0,IF($AE240=\"Yes\",$AB240,((YEAR($AC240)*12)+MONTH($AC240))-((YEAR($AD240)*12)+MONTH($AD240)-1))))","v":0},{"$f":"IF(OR($B240<=Setup!$E$12,$B240>=Setup!$D$12+1),0,((YEAR($AC240)*12)+MONTH($AC240))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C240,EmpAll,COLUMN(Emp!$E$4),0)),$AC240,IF(VLOOKUP($C240,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C240,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C240,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C240,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C240,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A240=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C240,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMIFS(OverValue,OverEmp,$C240,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1)),IF(ISNA(VLOOKUP($C240,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG240,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C240,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C240,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C240,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C240,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C240,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F240=\"Terminated\",0,IF($AA240=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C240,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA240*12)+(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB240/3,0))*4)+(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB240/6,0))*2)+(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F240=\"Terminated\",0,IF($AA240=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C240,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA240*12)+(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB240/3,0))*4)+(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB240/6,0))*2)+(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F240=\"Terminated\",0,IF($AA240=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C240,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA240*12)+(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB240/3,0))*4)+(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB240/6,0))*2)+(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F240=\"Terminated\",0,IF($AA240=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C240,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA240*12)+(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB240/3,0))*4)+(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB240/6,0))*2)+(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F240=\"Terminated\",0,IF($AA240=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C240,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA240*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F240=\"Terminated\",0,IF($AA240=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C240,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA240*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F240=\"Terminated\",0,IF($AA240=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C240,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA240*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F240=\"Terminated\",0,IF($AA240=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C240,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC240),MONTH($AC240)+1,1),OverEnd,\">=\"&DATE(YEAR($AC240),MONTH($AC240),1))>0,SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA240*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C240)*(PayDate<=$AC240)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA240*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C240,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C240,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL240),($AR240*$AL240)-$AI240-$AK240,MAX(0,IF($AL240=\"B\",IF($AR240<Setup!$C$32,($AR240*Setup!$D$32)-$AI240-$AK240,(($AR240-VLOOKUP($AR240,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR240,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR240,TaxBracket2,1),0,1,1)-$AI240-$AK240),IF($AR240<Setup!$C$21,($AR240*Setup!$D$21)-$AI240-$AK240,(($AR240-VLOOKUP($AR240,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR240,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR240,TaxBracket1,1),0,1,1)-$AI240-$AK240))))","v":0},{"$f":"IF(ISNUMBER($AL240),($AX240*$AL240)-$AI240-$AK240,MAX(0,IF($AL240=\"B\",IF($AX240<Setup!$C$32,($AX240*Setup!$D$32)-$AI240-$AK240,(($AX240-VLOOKUP($AX240,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX240,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX240,TaxBracket2,1),0,1,1)-$AI240-$AK240),IF($AX240<Setup!$C$21,($AX240*Setup!$D$21)-$AI240-$AK240,(($AX240-VLOOKUP($AX240,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX240,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX240,TaxBracket1,1),0,1,1)-$AI240-$AK240))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A241)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B241,\"yyyy\")&TEXT($B241,\"mm\")&\"-\"&$C241)","v":"-"},{"$f":"IF(ROW($A241)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A241)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A241)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A241)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A241)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A241)-ROW($A$6)-IF(ROW($A241)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A241)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C241,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C241,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C241,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C241,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C241,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C241,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC241),MONTH($AC241)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C241,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC241),MONTH($AC241),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F241<>\"Active\",0,IF(COUNTIFS(OverEmp,$C241,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMIFS(OverValue,OverEmp,$C241,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1)),IF(AND($AC241>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C241)>0),SUMIFS(EmpIncrease,EmpCode,$C241),SUMIFS(EmpSalary,EmpCode,$C241))))","v":0},{"$f":"IF($F241<>\"Active\",0,IF(COUNTIFS(OverEmp,$C241,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMIFS(OverValue,OverEmp,$C241,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1)),0))","v":0},{"$f":"IF($F241<>\"Active\",0,IF(COUNTIFS(OverEmp,$C241,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMIFS(OverValue,OverEmp,$C241,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1)),IF(MONTH(B241)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C241),0)))","v":0},{"$f":"IF($F241<>\"Active\",0,IF(COUNTIFS(OverEmp,$C241,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMIFS(OverValue,OverEmp,$C241,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1)),0))","v":0},{"$f":"IF($F241<>\"Active\",0,IF(COUNTIFS(OverEmp,$C241,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMIFS(OverValue,OverEmp,$C241,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C241,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMIFS(OverValue,OverEmp,$C241,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1)),(($BA241/12*$AA241)+(BB241*IF(1-$BC241=0,0,BD241/(1-$BC241))))-IF($F241=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC241,PayEmp,$C241)))","v":0},{"$f":"IF($F241=\"Terminated\",0,IF($AA241=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C241,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMIFS(OverValue,OverEmp,$C241,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA241)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA241,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241))))))","v":0},{"$f":"IF($F241=\"Terminated\",0,IF($AA241=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C241,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMIFS(OverValue,OverEmp,$C241,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA241)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA241,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241))))))","v":0},{"$f":"IF($F241=\"Terminated\",0,IF($AA241=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C241,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMIFS(OverValue,OverEmp,$C241,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA241)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA241,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241))))))","v":0},{"$f":"IF($F241=\"Terminated\",0,IF($AA241=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C241,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMIFS(OverValue,OverEmp,$C241,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA241)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA241,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241))))))","v":0},0,0,{"$f":"IF($F241=\"Terminated\",0,IF($AA241=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C241,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMIFS(OverValue,OverEmp,$C241,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA241)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA241,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241)))))))","v":0},{"$f":"IF($F241=\"Terminated\",0,IF($AA241=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C241,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMIFS(OverValue,OverEmp,$C241,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA241)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA241,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241)))))))","v":0},{"$f":"IF($F241=\"Terminated\",0,IF($AA241=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C241,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMIFS(OverValue,OverEmp,$C241,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA241)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA241,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241)))))))","v":0},{"$f":"IF($F241=\"Terminated\",0,IF($AA241=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C241,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMIFS(OverValue,OverEmp,$C241,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA241)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA241,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC241,PayEmp,$C241)))))))","v":0},0,0,0,{"$f":"IF(OR($B241<=Setup!$E$12,$B241>=Setup!$D$12+1),0,IF($F241<>\"Active\",0,IF($AE241=\"Yes\",$AB241,((YEAR($AC241)*12)+MONTH($AC241))-((YEAR($AD241)*12)+MONTH($AD241)-1))))","v":0},{"$f":"IF(OR($B241<=Setup!$E$12,$B241>=Setup!$D$12+1),0,((YEAR($AC241)*12)+MONTH($AC241))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C241,EmpAll,COLUMN(Emp!$E$4),0)),$AC241,IF(VLOOKUP($C241,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C241,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C241,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C241,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C241,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A241=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C241,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMIFS(OverValue,OverEmp,$C241,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1)),IF(ISNA(VLOOKUP($C241,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG241,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C241,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C241,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C241,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C241,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C241,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F241=\"Terminated\",0,IF($AA241=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C241,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA241*12)+(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB241/3,0))*4)+(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB241/6,0))*2)+(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F241=\"Terminated\",0,IF($AA241=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C241,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA241*12)+(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB241/3,0))*4)+(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB241/6,0))*2)+(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F241=\"Terminated\",0,IF($AA241=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C241,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA241*12)+(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB241/3,0))*4)+(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB241/6,0))*2)+(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F241=\"Terminated\",0,IF($AA241=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C241,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA241*12)+(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB241/3,0))*4)+(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB241/6,0))*2)+(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F241=\"Terminated\",0,IF($AA241=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C241,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA241*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F241=\"Terminated\",0,IF($AA241=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C241,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA241*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F241=\"Terminated\",0,IF($AA241=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C241,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA241*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F241=\"Terminated\",0,IF($AA241=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C241,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC241),MONTH($AC241)+1,1),OverEnd,\">=\"&DATE(YEAR($AC241),MONTH($AC241),1))>0,SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA241*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C241)*(PayDate<=$AC241)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA241*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C241,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C241,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL241),($AR241*$AL241)-$AI241-$AK241,MAX(0,IF($AL241=\"B\",IF($AR241<Setup!$C$32,($AR241*Setup!$D$32)-$AI241-$AK241,(($AR241-VLOOKUP($AR241,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR241,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR241,TaxBracket2,1),0,1,1)-$AI241-$AK241),IF($AR241<Setup!$C$21,($AR241*Setup!$D$21)-$AI241-$AK241,(($AR241-VLOOKUP($AR241,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR241,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR241,TaxBracket1,1),0,1,1)-$AI241-$AK241))))","v":0},{"$f":"IF(ISNUMBER($AL241),($AX241*$AL241)-$AI241-$AK241,MAX(0,IF($AL241=\"B\",IF($AX241<Setup!$C$32,($AX241*Setup!$D$32)-$AI241-$AK241,(($AX241-VLOOKUP($AX241,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX241,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX241,TaxBracket2,1),0,1,1)-$AI241-$AK241),IF($AX241<Setup!$C$21,($AX241*Setup!$D$21)-$AI241-$AK241,(($AX241-VLOOKUP($AX241,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX241,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX241,TaxBracket1,1),0,1,1)-$AI241-$AK241))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A242)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B242,\"yyyy\")&TEXT($B242,\"mm\")&\"-\"&$C242)","v":"-"},{"$f":"IF(ROW($A242)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A242)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A242)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A242)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A242)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A242)-ROW($A$6)-IF(ROW($A242)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A242)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C242,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C242,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C242,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C242,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C242,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C242,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC242),MONTH($AC242)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C242,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC242),MONTH($AC242),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F242<>\"Active\",0,IF(COUNTIFS(OverEmp,$C242,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMIFS(OverValue,OverEmp,$C242,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1)),IF(AND($AC242>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C242)>0),SUMIFS(EmpIncrease,EmpCode,$C242),SUMIFS(EmpSalary,EmpCode,$C242))))","v":0},{"$f":"IF($F242<>\"Active\",0,IF(COUNTIFS(OverEmp,$C242,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMIFS(OverValue,OverEmp,$C242,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1)),0))","v":0},{"$f":"IF($F242<>\"Active\",0,IF(COUNTIFS(OverEmp,$C242,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMIFS(OverValue,OverEmp,$C242,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1)),IF(MONTH(B242)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C242),0)))","v":0},{"$f":"IF($F242<>\"Active\",0,IF(COUNTIFS(OverEmp,$C242,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMIFS(OverValue,OverEmp,$C242,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1)),0))","v":0},{"$f":"IF($F242<>\"Active\",0,IF(COUNTIFS(OverEmp,$C242,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMIFS(OverValue,OverEmp,$C242,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C242,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMIFS(OverValue,OverEmp,$C242,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1)),(($BA242/12*$AA242)+(BB242*IF(1-$BC242=0,0,BD242/(1-$BC242))))-IF($F242=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC242,PayEmp,$C242)))","v":0},{"$f":"IF($F242=\"Terminated\",0,IF($AA242=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C242,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMIFS(OverValue,OverEmp,$C242,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA242)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA242,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242))))))","v":0},{"$f":"IF($F242=\"Terminated\",0,IF($AA242=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C242,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMIFS(OverValue,OverEmp,$C242,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA242)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA242,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242))))))","v":0},{"$f":"IF($F242=\"Terminated\",0,IF($AA242=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C242,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMIFS(OverValue,OverEmp,$C242,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA242)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA242,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242))))))","v":0},{"$f":"IF($F242=\"Terminated\",0,IF($AA242=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C242,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMIFS(OverValue,OverEmp,$C242,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA242)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA242,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242))))))","v":0},0,0,{"$f":"IF($F242=\"Terminated\",0,IF($AA242=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C242,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMIFS(OverValue,OverEmp,$C242,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA242)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA242,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242)))))))","v":0},{"$f":"IF($F242=\"Terminated\",0,IF($AA242=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C242,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMIFS(OverValue,OverEmp,$C242,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA242)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA242,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242)))))))","v":0},{"$f":"IF($F242=\"Terminated\",0,IF($AA242=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C242,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMIFS(OverValue,OverEmp,$C242,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA242)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA242,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242)))))))","v":0},{"$f":"IF($F242=\"Terminated\",0,IF($AA242=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C242,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMIFS(OverValue,OverEmp,$C242,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA242)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA242,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC242,PayEmp,$C242)))))))","v":0},0,0,0,{"$f":"IF(OR($B242<=Setup!$E$12,$B242>=Setup!$D$12+1),0,IF($F242<>\"Active\",0,IF($AE242=\"Yes\",$AB242,((YEAR($AC242)*12)+MONTH($AC242))-((YEAR($AD242)*12)+MONTH($AD242)-1))))","v":0},{"$f":"IF(OR($B242<=Setup!$E$12,$B242>=Setup!$D$12+1),0,((YEAR($AC242)*12)+MONTH($AC242))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C242,EmpAll,COLUMN(Emp!$E$4),0)),$AC242,IF(VLOOKUP($C242,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C242,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C242,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C242,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C242,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A242=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C242,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMIFS(OverValue,OverEmp,$C242,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1)),IF(ISNA(VLOOKUP($C242,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG242,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C242,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C242,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C242,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C242,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C242,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F242=\"Terminated\",0,IF($AA242=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C242,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA242*12)+(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB242/3,0))*4)+(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB242/6,0))*2)+(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F242=\"Terminated\",0,IF($AA242=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C242,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA242*12)+(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB242/3,0))*4)+(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB242/6,0))*2)+(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F242=\"Terminated\",0,IF($AA242=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C242,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA242*12)+(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB242/3,0))*4)+(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB242/6,0))*2)+(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F242=\"Terminated\",0,IF($AA242=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C242,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA242*12)+(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB242/3,0))*4)+(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB242/6,0))*2)+(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F242=\"Terminated\",0,IF($AA242=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C242,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA242*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F242=\"Terminated\",0,IF($AA242=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C242,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA242*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F242=\"Terminated\",0,IF($AA242=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C242,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA242*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F242=\"Terminated\",0,IF($AA242=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C242,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC242),MONTH($AC242)+1,1),OverEnd,\">=\"&DATE(YEAR($AC242),MONTH($AC242),1))>0,SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA242*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C242)*(PayDate<=$AC242)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA242*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C242,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C242,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL242),($AR242*$AL242)-$AI242-$AK242,MAX(0,IF($AL242=\"B\",IF($AR242<Setup!$C$32,($AR242*Setup!$D$32)-$AI242-$AK242,(($AR242-VLOOKUP($AR242,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR242,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR242,TaxBracket2,1),0,1,1)-$AI242-$AK242),IF($AR242<Setup!$C$21,($AR242*Setup!$D$21)-$AI242-$AK242,(($AR242-VLOOKUP($AR242,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR242,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR242,TaxBracket1,1),0,1,1)-$AI242-$AK242))))","v":0},{"$f":"IF(ISNUMBER($AL242),($AX242*$AL242)-$AI242-$AK242,MAX(0,IF($AL242=\"B\",IF($AX242<Setup!$C$32,($AX242*Setup!$D$32)-$AI242-$AK242,(($AX242-VLOOKUP($AX242,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX242,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX242,TaxBracket2,1),0,1,1)-$AI242-$AK242),IF($AX242<Setup!$C$21,($AX242*Setup!$D$21)-$AI242-$AK242,(($AX242-VLOOKUP($AX242,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX242,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX242,TaxBracket1,1),0,1,1)-$AI242-$AK242))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A243)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B243,\"yyyy\")&TEXT($B243,\"mm\")&\"-\"&$C243)","v":"-"},{"$f":"IF(ROW($A243)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A243)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A243)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A243)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A243)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A243)-ROW($A$6)-IF(ROW($A243)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A243)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C243,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C243,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C243,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C243,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C243,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C243,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC243),MONTH($AC243)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C243,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC243),MONTH($AC243),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F243<>\"Active\",0,IF(COUNTIFS(OverEmp,$C243,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMIFS(OverValue,OverEmp,$C243,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1)),IF(AND($AC243>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C243)>0),SUMIFS(EmpIncrease,EmpCode,$C243),SUMIFS(EmpSalary,EmpCode,$C243))))","v":0},{"$f":"IF($F243<>\"Active\",0,IF(COUNTIFS(OverEmp,$C243,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMIFS(OverValue,OverEmp,$C243,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1)),0))","v":0},{"$f":"IF($F243<>\"Active\",0,IF(COUNTIFS(OverEmp,$C243,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMIFS(OverValue,OverEmp,$C243,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1)),IF(MONTH(B243)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C243),0)))","v":0},{"$f":"IF($F243<>\"Active\",0,IF(COUNTIFS(OverEmp,$C243,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMIFS(OverValue,OverEmp,$C243,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1)),0))","v":0},{"$f":"IF($F243<>\"Active\",0,IF(COUNTIFS(OverEmp,$C243,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMIFS(OverValue,OverEmp,$C243,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C243,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMIFS(OverValue,OverEmp,$C243,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1)),(($BA243/12*$AA243)+(BB243*IF(1-$BC243=0,0,BD243/(1-$BC243))))-IF($F243=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC243,PayEmp,$C243)))","v":0},{"$f":"IF($F243=\"Terminated\",0,IF($AA243=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C243,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMIFS(OverValue,OverEmp,$C243,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA243)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA243,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243))))))","v":0},{"$f":"IF($F243=\"Terminated\",0,IF($AA243=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C243,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMIFS(OverValue,OverEmp,$C243,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA243)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA243,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243))))))","v":0},{"$f":"IF($F243=\"Terminated\",0,IF($AA243=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C243,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMIFS(OverValue,OverEmp,$C243,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA243)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA243,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243))))))","v":0},{"$f":"IF($F243=\"Terminated\",0,IF($AA243=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C243,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMIFS(OverValue,OverEmp,$C243,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA243)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA243,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243))))))","v":0},0,0,{"$f":"IF($F243=\"Terminated\",0,IF($AA243=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C243,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMIFS(OverValue,OverEmp,$C243,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA243)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA243,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243)))))))","v":0},{"$f":"IF($F243=\"Terminated\",0,IF($AA243=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C243,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMIFS(OverValue,OverEmp,$C243,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA243)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA243,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243)))))))","v":0},{"$f":"IF($F243=\"Terminated\",0,IF($AA243=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C243,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMIFS(OverValue,OverEmp,$C243,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA243)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA243,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243)))))))","v":0},{"$f":"IF($F243=\"Terminated\",0,IF($AA243=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C243,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMIFS(OverValue,OverEmp,$C243,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA243)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA243,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC243,PayEmp,$C243)))))))","v":0},0,0,0,{"$f":"IF(OR($B243<=Setup!$E$12,$B243>=Setup!$D$12+1),0,IF($F243<>\"Active\",0,IF($AE243=\"Yes\",$AB243,((YEAR($AC243)*12)+MONTH($AC243))-((YEAR($AD243)*12)+MONTH($AD243)-1))))","v":0},{"$f":"IF(OR($B243<=Setup!$E$12,$B243>=Setup!$D$12+1),0,((YEAR($AC243)*12)+MONTH($AC243))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C243,EmpAll,COLUMN(Emp!$E$4),0)),$AC243,IF(VLOOKUP($C243,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C243,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C243,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C243,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C243,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A243=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C243,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMIFS(OverValue,OverEmp,$C243,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1)),IF(ISNA(VLOOKUP($C243,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG243,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C243,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C243,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},17235,{"$f":"IF(ISNA(VLOOKUP($C243,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C243,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C243,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F243=\"Terminated\",0,IF($AA243=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C243,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA243*12)+(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB243/3,0))*4)+(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB243/6,0))*2)+(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F243=\"Terminated\",0,IF($AA243=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C243,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA243*12)+(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB243/3,0))*4)+(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB243/6,0))*2)+(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F243=\"Terminated\",0,IF($AA243=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C243,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA243*12)+(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB243/3,0))*4)+(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB243/6,0))*2)+(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F243=\"Terminated\",0,IF($AA243=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C243,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA243*12)+(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB243/3,0))*4)+(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB243/6,0))*2)+(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F243=\"Terminated\",0,IF($AA243=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C243,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA243*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F243=\"Terminated\",0,IF($AA243=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C243,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA243*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F243=\"Terminated\",0,IF($AA243=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C243,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA243*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F243=\"Terminated\",0,IF($AA243=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C243,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC243),MONTH($AC243)+1,1),OverEnd,\">=\"&DATE(YEAR($AC243),MONTH($AC243),1))>0,SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA243*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C243)*(PayDate<=$AC243)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA243*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C243,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C243,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL243),($AR243*$AL243)-$AI243-$AK243,MAX(0,IF($AL243=\"B\",IF($AR243<Setup!$C$32,($AR243*Setup!$D$32)-$AI243-$AK243,(($AR243-VLOOKUP($AR243,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR243,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR243,TaxBracket2,1),0,1,1)-$AI243-$AK243),IF($AR243<Setup!$C$21,($AR243*Setup!$D$21)-$AI243-$AK243,(($AR243-VLOOKUP($AR243,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR243,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR243,TaxBracket1,1),0,1,1)-$AI243-$AK243))))","v":0},{"$f":"IF(ISNUMBER($AL243),($AX243*$AL243)-$AI243-$AK243,MAX(0,IF($AL243=\"B\",IF($AX243<Setup!$C$32,($AX243*Setup!$D$32)-$AI243-$AK243,(($AX243-VLOOKUP($AX243,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX243,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX243,TaxBracket2,1),0,1,1)-$AI243-$AK243),IF($AX243<Setup!$C$21,($AX243*Setup!$D$21)-$AI243-$AK243,(($AX243-VLOOKUP($AX243,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX243,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX243,TaxBracket1,1),0,1,1)-$AI243-$AK243))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A244)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B244,\"yyyy\")&TEXT($B244,\"mm\")&\"-\"&$C244)","v":"-"},{"$f":"IF(ROW($A244)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A244)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A244)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A244)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A244)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A244)-ROW($A$6)-IF(ROW($A244)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A244)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C244,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C244,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C244,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C244,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C244,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C244,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC244),MONTH($AC244)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C244,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC244),MONTH($AC244),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F244<>\"Active\",0,IF(COUNTIFS(OverEmp,$C244,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMIFS(OverValue,OverEmp,$C244,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1)),IF(AND($AC244>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C244)>0),SUMIFS(EmpIncrease,EmpCode,$C244),SUMIFS(EmpSalary,EmpCode,$C244))))","v":0},{"$f":"IF($F244<>\"Active\",0,IF(COUNTIFS(OverEmp,$C244,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMIFS(OverValue,OverEmp,$C244,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1)),0))","v":0},{"$f":"IF($F244<>\"Active\",0,IF(COUNTIFS(OverEmp,$C244,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMIFS(OverValue,OverEmp,$C244,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1)),IF(MONTH(B244)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C244),0)))","v":0},{"$f":"IF($F244<>\"Active\",0,IF(COUNTIFS(OverEmp,$C244,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMIFS(OverValue,OverEmp,$C244,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1)),0))","v":0},{"$f":"IF($F244<>\"Active\",0,IF(COUNTIFS(OverEmp,$C244,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMIFS(OverValue,OverEmp,$C244,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1)),0))","v":0},{"$f":"IF($AA244=0,0,SUM(OFFSET($G244,0,0,1,COLUMN($L$6)-COLUMN($G$6))))","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C244,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMIFS(OverValue,OverEmp,$C244,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1)),(($BA244/12*$AA244)+(BB244*IF(1-$BC244=0,0,BD244/(1-$BC244))))-IF($F244=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC244,PayEmp,$C244)))","v":0},{"$f":"IF($F244=\"Terminated\",0,IF($AA244=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C244,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMIFS(OverValue,OverEmp,$C244,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA244)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA244,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244))))))","v":0},{"$f":"IF($F244=\"Terminated\",0,IF($AA244=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C244,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMIFS(OverValue,OverEmp,$C244,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA244)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA244,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244))))))","v":0},{"$f":"IF($F244=\"Terminated\",0,IF($AA244=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C244,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMIFS(OverValue,OverEmp,$C244,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA244)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA244,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244))))))","v":0},{"$f":"IF($F244=\"Terminated\",0,IF($AA244=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C244,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMIFS(OverValue,OverEmp,$C244,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA244)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA244,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244))))))","v":0},{"$f":"SUM(OFFSET(M244,0,0,1,COLUMN($R$6)-COLUMN($M$6)))","v":0},{"$f":"ROUND(SUM(L244,-R244),2)","v":0},{"$f":"IF($F244=\"Terminated\",0,IF($AA244=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C244,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMIFS(OverValue,OverEmp,$C244,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA244)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA244,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244)))))))","v":0},{"$f":"IF($F244=\"Terminated\",0,IF($AA244=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C244,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMIFS(OverValue,OverEmp,$C244,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA244)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA244,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244)))))))","v":0},{"$f":"IF($F244=\"Terminated\",0,IF($AA244=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C244,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMIFS(OverValue,OverEmp,$C244,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA244)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA244,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244)))))))","v":0},{"$f":"IF($F244=\"Terminated\",0,IF($AA244=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C244,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMIFS(OverValue,OverEmp,$C244,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA244)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA244,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC244,PayEmp,$C244)))))))","v":0},{"$f":"SUM(OFFSET($T244,0,0,1,COLUMN($X$6)-COLUMN($T$7)))","v":0},{"$f":"L244+X244","v":0},{"$f":"ROUND(SUM(R244,X244),2)","v":0},{"$f":"IF(OR($B244<=Setup!$E$12,$B244>=Setup!$D$12+1),0,IF($F244<>\"Active\",0,IF($AE244=\"Yes\",$AB244,((YEAR($AC244)*12)+MONTH($AC244))-((YEAR($AD244)*12)+MONTH($AD244)-1))))","v":0},{"$f":"IF(OR($B244<=Setup!$E$12,$B244>=Setup!$D$12+1),0,((YEAR($AC244)*12)+MONTH($AC244))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},{"$f":"DATE(YEAR($B244),MONTH($B244),DAY($B244))","v":45351},{"$f":"IF(ISNA(VLOOKUP($C244,EmpAll,COLUMN(Emp!$E$4),0)),$AC244,IF(VLOOKUP($C244,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C244,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C244,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C244,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C244,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A244=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C244,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMIFS(OverValue,OverEmp,$C244,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1)),IF(ISNA(VLOOKUP($C244,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG244,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C244,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C244,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},{"$f":"IF(ISNA(VLOOKUP($AJ244,RebateList,4,0)),VLOOKUP(\"A\",RebateList,3,0),VLOOKUP($AJ244,RebateList,4,0))","v":17235},{"$f":"IF(ISNA(VLOOKUP($C244,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C244,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C244,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F244=\"Terminated\",0,IF($AA244=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C244,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA244*12)+(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB244/3,0))*4)+(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB244/6,0))*2)+(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F244=\"Terminated\",0,IF($AA244=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C244,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA244*12)+(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB244/3,0))*4)+(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB244/6,0))*2)+(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F244=\"Terminated\",0,IF($AA244=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C244,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA244*12)+(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB244/3,0))*4)+(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB244/6,0))*2)+(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F244=\"Terminated\",0,IF($AA244=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C244,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA244*12)+(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB244/3,0))*4)+(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB244/6,0))*2)+(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},{"$f":"$AM244+SUM(OFFSET($AM244,0,1,1,COLUMN($AR$2)-COLUMN($AM$2)-1))","v":0},0,{"$f":"-IF($F244=\"Terminated\",0,IF($AA244=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C244,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA244*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F244=\"Terminated\",0,IF($AA244=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C244,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA244*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F244=\"Terminated\",0,IF($AA244=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C244,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA244*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F244=\"Terminated\",0,IF($AA244=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C244,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC244),MONTH($AC244)+1,1),OverEnd,\">=\"&DATE(YEAR($AC244),MONTH($AC244),1))>0,SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA244*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C244)*(PayDate<=$AC244)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA244*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C244,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C244,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},{"$f":"$AS244+SUM(OFFSET($AT244,0,0,1,COLUMN($AX$2)-COLUMN($AT$2)))","v":0},{"$f":"AR244-AX244","v":0},{"$f":"IF(ISNUMBER($AL244),($AR244*$AL244)-$AI244-$AK244,MAX(0,IF($AL244=\"B\",IF($AR244<Setup!$C$32,($AR244*Setup!$D$32)-$AI244-$AK244,(($AR244-VLOOKUP($AR244,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR244,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR244,TaxBracket2,1),0,1,1)-$AI244-$AK244),IF($AR244<Setup!$C$21,($AR244*Setup!$D$21)-$AI244-$AK244,(($AR244-VLOOKUP($AR244,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR244,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR244,TaxBracket1,1),0,1,1)-$AI244-$AK244))))","v":0},{"$f":"IF(ISNUMBER($AL244),($AX244*$AL244)-$AI244-$AK244,MAX(0,IF($AL244=\"B\",IF($AX244<Setup!$C$32,($AX244*Setup!$D$32)-$AI244-$AK244,(($AX244-VLOOKUP($AX244,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX244,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX244,TaxBracket2,1),0,1,1)-$AI244-$AK244),IF($AX244<Setup!$C$21,($AX244*Setup!$D$21)-$AI244-$AK244,(($AX244-VLOOKUP($AX244,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX244,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX244,TaxBracket1,1),0,1,1)-$AI244-$AK244))))","v":0},{"$f":"AZ244-BA244","v":0},0,0,0]
[{"$f":"IF(ROW($A245)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B245,\"yyyy\")&TEXT($B245,\"mm\")&\"-\"&$C245)","v":"-"},{"$f":"IF(ROW($A245)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A245)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A245)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A245)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A245)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A245)-ROW($A$6)-IF(ROW($A245)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A245)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C245,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C245,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C245,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C245,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C245,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C245,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC245),MONTH($AC245)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C245,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC245),MONTH($AC245),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F245<>\"Active\",0,IF(COUNTIFS(OverEmp,$C245,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMIFS(OverValue,OverEmp,$C245,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1)),IF(AND($AC245>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C245)>0),SUMIFS(EmpIncrease,EmpCode,$C245),SUMIFS(EmpSalary,EmpCode,$C245))))","v":0},{"$f":"IF($F245<>\"Active\",0,IF(COUNTIFS(OverEmp,$C245,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMIFS(OverValue,OverEmp,$C245,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1)),0))","v":0},{"$f":"IF($F245<>\"Active\",0,IF(COUNTIFS(OverEmp,$C245,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMIFS(OverValue,OverEmp,$C245,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1)),IF(MONTH(B245)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C245),0)))","v":0},{"$f":"IF($F245<>\"Active\",0,IF(COUNTIFS(OverEmp,$C245,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMIFS(OverValue,OverEmp,$C245,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1)),0))","v":0},{"$f":"IF($F245<>\"Active\",0,IF(COUNTIFS(OverEmp,$C245,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMIFS(OverValue,OverEmp,$C245,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C245,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMIFS(OverValue,OverEmp,$C245,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1)),(($BA245/12*$AA245)+(BB245*IF(1-$BC245=0,0,BD245/(1-$BC245))))-IF($F245=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC245,PayEmp,$C245)))","v":0},{"$f":"IF($F245=\"Terminated\",0,IF($AA245=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C245,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMIFS(OverValue,OverEmp,$C245,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA245)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA245,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245))))))","v":0},{"$f":"IF($F245=\"Terminated\",0,IF($AA245=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C245,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMIFS(OverValue,OverEmp,$C245,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA245)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA245,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245))))))","v":0},{"$f":"IF($F245=\"Terminated\",0,IF($AA245=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C245,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMIFS(OverValue,OverEmp,$C245,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA245)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA245,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245))))))","v":0},{"$f":"IF($F245=\"Terminated\",0,IF($AA245=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C245,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMIFS(OverValue,OverEmp,$C245,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA245)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA245,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245))))))","v":0},0,0,{"$f":"IF($F245=\"Terminated\",0,IF($AA245=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C245,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMIFS(OverValue,OverEmp,$C245,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA245)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA245,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245)))))))","v":0},{"$f":"IF($F245=\"Terminated\",0,IF($AA245=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C245,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMIFS(OverValue,OverEmp,$C245,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA245)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA245,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245)))))))","v":0},{"$f":"IF($F245=\"Terminated\",0,IF($AA245=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C245,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMIFS(OverValue,OverEmp,$C245,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA245)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA245,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245)))))))","v":0},{"$f":"IF($F245=\"Terminated\",0,IF($AA245=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C245,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMIFS(OverValue,OverEmp,$C245,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA245)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA245,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC245,PayEmp,$C245)))))))","v":0},0,0,0,{"$f":"IF(OR($B245<=Setup!$E$12,$B245>=Setup!$D$12+1),0,IF($F245<>\"Active\",0,IF($AE245=\"Yes\",$AB245,((YEAR($AC245)*12)+MONTH($AC245))-((YEAR($AD245)*12)+MONTH($AD245)-1))))","v":0},{"$f":"IF(OR($B245<=Setup!$E$12,$B245>=Setup!$D$12+1),0,((YEAR($AC245)*12)+MONTH($AC245))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C245,EmpAll,COLUMN(Emp!$E$4),0)),$AC245,IF(VLOOKUP($C245,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C245,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C245,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C245,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C245,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A245=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C245,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMIFS(OverValue,OverEmp,$C245,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1)),IF(ISNA(VLOOKUP($C245,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG245,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C245,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C245,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},{"$f":"IF(ISNA(VLOOKUP($AJ245,RebateList,4,0)),VLOOKUP(\"A\",RebateList,3,0),VLOOKUP($AJ245,RebateList,4,0))","v":17235},{"$f":"IF(ISNA(VLOOKUP($C245,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C245,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C245,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F245=\"Terminated\",0,IF($AA245=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C245,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA245*12)+(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB245/3,0))*4)+(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB245/6,0))*2)+(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F245=\"Terminated\",0,IF($AA245=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C245,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA245*12)+(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB245/3,0))*4)+(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB245/6,0))*2)+(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F245=\"Terminated\",0,IF($AA245=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C245,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA245*12)+(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB245/3,0))*4)+(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB245/6,0))*2)+(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F245=\"Terminated\",0,IF($AA245=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C245,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA245*12)+(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB245/3,0))*4)+(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB245/6,0))*2)+(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F245=\"Terminated\",0,IF($AA245=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C245,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA245*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F245=\"Terminated\",0,IF($AA245=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C245,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA245*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F245=\"Terminated\",0,IF($AA245=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C245,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA245*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F245=\"Terminated\",0,IF($AA245=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C245,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC245),MONTH($AC245)+1,1),OverEnd,\">=\"&DATE(YEAR($AC245),MONTH($AC245),1))>0,SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA245*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C245)*(PayDate<=$AC245)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA245*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C245,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C245,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL245),($AR245*$AL245)-$AI245-$AK245,MAX(0,IF($AL245=\"B\",IF($AR245<Setup!$C$32,($AR245*Setup!$D$32)-$AI245-$AK245,(($AR245-VLOOKUP($AR245,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR245,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR245,TaxBracket2,1),0,1,1)-$AI245-$AK245),IF($AR245<Setup!$C$21,($AR245*Setup!$D$21)-$AI245-$AK245,(($AR245-VLOOKUP($AR245,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR245,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR245,TaxBracket1,1),0,1,1)-$AI245-$AK245))))","v":0},{"$f":"IF(ISNUMBER($AL245),($AX245*$AL245)-$AI245-$AK245,MAX(0,IF($AL245=\"B\",IF($AX245<Setup!$C$32,($AX245*Setup!$D$32)-$AI245-$AK245,(($AX245-VLOOKUP($AX245,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX245,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX245,TaxBracket2,1),0,1,1)-$AI245-$AK245),IF($AX245<Setup!$C$21,($AX245*Setup!$D$21)-$AI245-$AK245,(($AX245-VLOOKUP($AX245,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX245,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX245,TaxBracket1,1),0,1,1)-$AI245-$AK245))))","v":0},0,0,0,0]
[{"$f":"IF(ROW($A246)-ROW($A$6)>EmpCount*12,\"-\",TEXT($B246,\"yyyy\")&TEXT($B246,\"mm\")&\"-\"&$C246)","v":"-"},{"$f":"IF(ROW($A246)-ROW($A$6)>EmpCount*12,Setup!$D$12,DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A246)-ROW($A$6)-1)/EmpCount,0),IF(Setup!$C$14>DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A246)-ROW($A$6)-1)/EmpCount,0)+1,0)),DAY(DATE(YEAR(Setup!$F$12),MONTH(Setup!$F$12)+ROUNDDOWN((ROW($A246)-ROW($A$6)-1)/EmpCount,0)+1,0)),Setup!$C$14)))","v":45351},{"$f":"IF(ROW($A246)-ROW($A$6)>EmpCount*12,\"-\",OFFSET(Emp!$A$4,ROW($A246)-ROW($A$6)-IF(ROW($A246)-ROW($A$6)>EmpCount,ROUNDDOWN((ROW($A246)-ROW($A$6)-1)/EmpCount,0)*EmpCount,0),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C246,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($C246,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C246,EmpAll,COLUMN(Emp!$C$4),0)),\"-\",VLOOKUP($C246,EmpAll,COLUMN(Emp!$C$4),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($C246,EmpAll,COLUMN(Emp!$A$4),0)),\"-\",IF(AND(VLOOKUP($C246,EmpAll,COLUMN(Emp!$E$4),0)<>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$E$4),0)>=DATE(YEAR($AC246),MONTH($AC246)+1,0)),\"Inactive\",IF(AND(VLOOKUP($C246,EmpAll,COLUMN(Emp!$F$4),0)<>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$F$4),0)<=DATE(YEAR($AC246),MONTH($AC246),0)),\"Terminated\",\"Active\")))","v":"-"},{"$f":"IF($F246<>\"Active\",0,IF(COUNTIFS(OverEmp,$C246,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMIFS(OverValue,OverEmp,$C246,OverEarn,G$2,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1)),IF(AND($AC246>=Setup!$E$10,SUMIFS(EmpIncrease,EmpCode,$C246)>0),SUMIFS(EmpIncrease,EmpCode,$C246),SUMIFS(EmpSalary,EmpCode,$C246))))","v":0},{"$f":"IF($F246<>\"Active\",0,IF(COUNTIFS(OverEmp,$C246,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMIFS(OverValue,OverEmp,$C246,OverEarn,H$2,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1)),0))","v":0},{"$f":"IF($F246<>\"Active\",0,IF(COUNTIFS(OverEmp,$C246,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMIFS(OverValue,OverEmp,$C246,OverEarn,I$2,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1)),IF(MONTH(B246)=Setup!$C$15,SUMIFS(EmpBonus,EmpCode,$C246),0)))","v":0},{"$f":"IF($F246<>\"Active\",0,IF(COUNTIFS(OverEmp,$C246,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMIFS(OverValue,OverEmp,$C246,OverEarn,J$2,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1)),0))","v":0},{"$f":"IF($F246<>\"Active\",0,IF(COUNTIFS(OverEmp,$C246,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMIFS(OverValue,OverEmp,$C246,OverEarn,K$2,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1)),0))","v":0},0,{"$f":"IF(COUNTIFS(OverEmp,$C246,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMIFS(OverValue,OverEmp,$C246,OverTax,M$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1)),(($BA246/12*$AA246)+(BB246*IF(1-$BC246=0,0,BD246/(1-$BC246))))-IF($F246=\"Terminated\",0,SUMIFS(PayTaxDeduct,PayDate,\"<\"&$AC246,PayEmp,$C246)))","v":0},{"$f":"IF($F246=\"Terminated\",0,IF($AA246=0,0,IF(ISNA(MATCH(N$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C246,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMIFS(OverValue,OverEmp,$C246,OverDeduct,N$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1)),IF(OR(N$2=\"Fixed\",N$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1))*$AA246)-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246),IF(ISNA(MATCH(N$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(PayEarnCode=N$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(PayEarnCode=N$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(N$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,N$4)))*(PayEarnValues))),IF(ISNUMBER(N$3),N$3/12*$AA246,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(N$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(N$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(N$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(N$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246))))))","v":0},{"$f":"IF($F246=\"Terminated\",0,IF($AA246=0,0,IF(ISNA(MATCH(O$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C246,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMIFS(OverValue,OverEmp,$C246,OverDeduct,O$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1)),IF(OR(O$2=\"Fixed\",O$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1))*$AA246)-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246),IF(ISNA(MATCH(O$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(PayEarnCode=O$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(PayEarnCode=O$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(O$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,O$4)))*(PayEarnValues))),IF(ISNUMBER(O$3),O$3/12*$AA246,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(O$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(O$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(O$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(O$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246))))))","v":0},{"$f":"IF($F246=\"Terminated\",0,IF($AA246=0,0,IF(ISNA(MATCH(P$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C246,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMIFS(OverValue,OverEmp,$C246,OverDeduct,P$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1)),IF(OR(P$2=\"Fixed\",P$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1))*$AA246)-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246),IF(ISNA(MATCH(P$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(PayEarnCode=P$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(PayEarnCode=P$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(P$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,P$4)))*(PayEarnValues))),IF(ISNUMBER(P$3),P$3/12*$AA246,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(P$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(P$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(P$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(P$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246))))))","v":0},{"$f":"IF($F246=\"Terminated\",0,IF($AA246=0,0,IF(ISNA(MATCH(Q$5,DedListItem,0)),0,IF(COUNTIFS(OverEmp,$C246,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMIFS(OverValue,OverEmp,$C246,OverDeduct,Q$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1)),IF(OR(Q$2=\"Fixed\",Q$2=\"Not Used\"),(IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1))*$AA246)-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246),IF(ISNA(MATCH(Q$2,EarnListItem,0))=FALSE,IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(PayEarnCode=Q$2)*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(PayEarnCode=Q$2)*(PayEarnValues)))*IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)),(MIN(IF(OFFSET(Setup!$G$73,MATCH(Q$5,DedListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,Q$4)))*(PayEarnValues))),IF(ISNUMBER(Q$3),Q$3/12*$AA246,IgnoreMin)))*IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(Q$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(Q$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(Q$5,DedListItem,0),0,1,1)))-SUMIFS(OFFSET(Q$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246))))))","v":0},0,0,{"$f":"IF($F246=\"Terminated\",0,IF($AA246=0,0,IF(ISNA(MATCH(T$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C246,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMIFS(OverValue,OverEmp,$C246,OverComp,T$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1)),IF(OR(T$2=\"Fixed\",T$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)*$AA246)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246),IF(ISNA(MATCH(T$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(PayDedList=T$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246),(MIN(IF(OFFSET(Setup!$G$81,MATCH(T$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,T$4)))*(PayEarnValues))),IF(ISNUMBER(T$3),T$3/12*$AA246,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(T$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(T$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246)))))))","v":0},{"$f":"IF($F246=\"Terminated\",0,IF($AA246=0,0,IF(ISNA(MATCH(U$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C246,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMIFS(OverValue,OverEmp,$C246,OverComp,U$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1)),IF(OR(U$2=\"Fixed\",U$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)*$AA246)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246),IF(ISNA(MATCH(U$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(PayDedList=U$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246),(MIN(IF(OFFSET(Setup!$G$81,MATCH(U$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,U$4)))*(PayEarnValues))),IF(ISNUMBER(U$3),U$3/12*$AA246,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(U$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(U$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246)))))))","v":0},{"$f":"IF($F246=\"Terminated\",0,IF($AA246=0,0,IF(ISNA(MATCH(V$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C246,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMIFS(OverValue,OverEmp,$C246,OverComp,V$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1)),IF(OR(V$2=\"Fixed\",V$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)*$AA246)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246),IF(ISNA(MATCH(V$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(PayDedList=V$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246),(MIN(IF(OFFSET(Setup!$G$81,MATCH(V$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,V$4)))*(PayEarnValues))),IF(ISNUMBER(V$3),V$3/12*$AA246,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(V$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(V$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246)))))))","v":0},{"$f":"IF($F246=\"Terminated\",0,IF($AA246=0,0,IF(ISNA(MATCH(W$5,CompListItem,0)),0,IF(COUNTIFS(OverEmp,$C246,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMIFS(OverValue,OverEmp,$C246,OverComp,W$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1)),IF(OR(W$2=\"Fixed\",W$2=\"Not Used\"),(OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)*$AA246)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246),IF(ISNA(MATCH(W$2,DedListItem,0))=FALSE,(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(PayDedList=W$2)*(PayDedValues))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1))-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246),(MIN(IF(OFFSET(Setup!$G$81,MATCH(W$5,CompListItem,0),0,1,1)=\"Taxable\",SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnTax)*(PayEarnValues)),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,W$4)))*(PayEarnValues))),IF(ISNUMBER(W$3),W$3/12*$AA246,IgnoreMin)))*OFFSET(Setup!$E$81,MATCH(W$5,CompListItem,0),0,1,1)-SUMIFS(OFFSET(W$6,1,0,PayCount,1),PayDate,\"<\"&$AC246,PayEmp,$C246)))))))","v":0},0,0,0,{"$f":"IF(OR($B246<=Setup!$E$12,$B246>=Setup!$D$12+1),0,IF($F246<>\"Active\",0,IF($AE246=\"Yes\",$AB246,((YEAR($AC246)*12)+MONTH($AC246))-((YEAR($AD246)*12)+MONTH($AD246)-1))))","v":0},{"$f":"IF(OR($B246<=Setup!$E$12,$B246>=Setup!$D$12+1),0,((YEAR($AC246)*12)+MONTH($AC246))-((YEAR(Setup!$E$12)*12)+MONTH(Setup!$E$12)))","v":12},45351,{"$f":"IF(ISNA(VLOOKUP($C246,EmpAll,COLUMN(Emp!$E$4),0)),$AC246,IF(VLOOKUP($C246,EmpAll,COLUMN(Emp!$E$4),0)<=Setup!$E$12,DATE(YEAR(Setup!$E$12),MONTH(Setup!$E$12)+1,1),VLOOKUP($C246,EmpAll,COLUMN(Emp!$E$4),0)))","v":"2024-02-29"},{"$f":"IF(ISNA(VLOOKUP($C246,EmpAll,COLUMN(Emp!$G$1),0)),\"-\",IF(VLOOKUP($C246,EmpAll,COLUMN(Emp!$G$1),0)=0,\"-\",VLOOKUP($C246,EmpAll,COLUMN(Emp!$G$1),0)))","v":"-"},{"$f":"IF(A246=PaySlip!$G$3,1,0)","v":0},{"$f":"IF(COUNTIFS(OverEmp,$C246,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMIFS(OverValue,OverEmp,$C246,OverMed,\"MED\",OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1)),IF(ISNA(VLOOKUP($C246,EmpAll,COLUMN(Emp!$N$4),0)),0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$N$4),0)))","v":0},{"$f":"VLOOKUP($AG246,MedList,COLUMN(Setup!$C$49),1)","v":0},0,{"$f":"IF(ISNA(VLOOKUP($C246,EmpAll,COLUMN(Emp!$L$4),0)),\"None!\",VLOOKUP($C246,EmpAll,COLUMN(Emp!$L$4),0))","v":"None!"},{"$f":"IF(ISNA(VLOOKUP($AJ246,RebateList,4,0)),VLOOKUP(\"A\",RebateList,3,0),VLOOKUP($AJ246,RebateList,4,0))","v":17235},{"$f":"IF(ISNA(VLOOKUP($C246,Employees[],COLUMN(Emp!$M$4),0))=TRUE,\"Error!\",IF(VLOOKUP($C246,Employees[],COLUMN(Emp!$M$4),0)=0,\"Yes\",VLOOKUP($C246,Employees[],COLUMN(Emp!$M$4),0)))","v":"Error!"},0,{"$f":"-IF($F246=\"Terminated\",0,IF($AA246=0,0,IF(ISNA(MATCH(AN$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C246,OverDeduct,AN$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AN$3,IF(OR(AN$1=\"Fixed\",AN$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AN$3,IF(ISNA(MATCH(AN$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AN$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AN$3,(MIN(((SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA246*12)+(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB246/3,0))*4)+(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB246/6,0))*2)+(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AN$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AN$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(AN$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(AN$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AN$5,DedListItem,0),0,1,1))*AN$3))),IF(ISNUMBER(AN$4),AN$4,IgnoreMin)))))","v":0},{"$f":"-IF($F246=\"Terminated\",0,IF($AA246=0,0,IF(ISNA(MATCH(AO$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C246,OverDeduct,AO$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AO$3,IF(OR(AO$1=\"Fixed\",AO$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AO$3,IF(ISNA(MATCH(AO$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AO$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AO$3,(MIN(((SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA246*12)+(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB246/3,0))*4)+(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB246/6,0))*2)+(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AO$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AO$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(AO$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(AO$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AO$5,DedListItem,0),0,1,1))*AO$3))),IF(ISNUMBER(AO$4),AO$4,IgnoreMin)))))","v":0},{"$f":"-IF($F246=\"Terminated\",0,IF($AA246=0,0,IF(ISNA(MATCH(AP$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C246,OverDeduct,AP$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AP$3,IF(OR(AP$1=\"Fixed\",AP$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AP$3,IF(ISNA(MATCH(AP$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AP$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AP$3,(MIN(((SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA246*12)+(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB246/3,0))*4)+(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB246/6,0))*2)+(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AP$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AP$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(AP$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(AP$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AP$5,DedListItem,0),0,1,1))*AP$3))),IF(ISNUMBER(AP$4),AP$4,IgnoreMin)))))","v":0},{"$f":"-IF($F246=\"Terminated\",0,IF($AA246=0,0,IF(ISNA(MATCH(AQ$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C246,OverDeduct,AQ$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AQ$3,IF(OR(AQ$1=\"Fixed\",AQ$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AQ$3,IF(ISNA(MATCH(AQ$1,EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AQ$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AQ$3,(MIN(((SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA246*12)+(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Quarterly\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB246/3,0))*4)+(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Bi-Annual\")*(PayEarnValues))/MAX(1,ROUNDDOWN($AB246/6,0))*2)+(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AQ$2)))*(PayEarnType=\"Annual\")*(PayEarnValues)))),IF(ISNUMBER(OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AQ$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(AQ$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(AQ$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AQ$5,DedListItem,0),0,1,1))*AQ$3))),IF(ISNUMBER(AQ$4),AQ$4,IgnoreMin)))))","v":0},0,0,{"$f":"-IF($F246=\"Terminated\",0,IF($AA246=0,0,IF(ISNA(MATCH(AT$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C246,OverDeduct,AT$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AT$3,IF(OR(AT$1=\"Fixed\",AT$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AT$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AT$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AT$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AT$3,(MIN(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AT$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA246*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AT$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(AT$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(AT$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AT$5,DedListItem,0),0,1,1))*AT$3))),IF(ISNUMBER(AT$4),AT$4,IgnoreMin)))))","v":0},{"$f":"-IF($F246=\"Terminated\",0,IF($AA246=0,0,IF(ISNA(MATCH(AU$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C246,OverDeduct,AU$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AU$3,IF(OR(AU$1=\"Fixed\",AU$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AU$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AU$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AU$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AU$3,(MIN(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AU$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA246*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AU$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(AU$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(AU$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AU$5,DedListItem,0),0,1,1))*AU$3))),IF(ISNUMBER(AU$4),AU$4,IgnoreMin)))))","v":0},{"$f":"-IF($F246=\"Terminated\",0,IF($AA246=0,0,IF(ISNA(MATCH(AV$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C246,OverDeduct,AV$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AV$3,IF(OR(AV$1=\"Fixed\",AV$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AV$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AV$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AV$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AV$3,(MIN(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AV$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA246*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AV$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(AV$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(AV$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AV$5,DedListItem,0),0,1,1))*AV$3))),IF(ISNUMBER(AV$4),AV$4,IgnoreMin)))))","v":0},{"$f":"-IF($F246=\"Terminated\",0,IF($AA246=0,0,IF(ISNA(MATCH(AW$5,PayDedList,0)),0,MIN(IF(COUNTIFS(OverEmp,$C246,OverDeduct,AW$5,OverDate,\"<\"&DATE(YEAR($AC246),MONTH($AC246)+1,1),OverEnd,\">=\"&DATE(YEAR($AC246),MONTH($AC246),1))>0,SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AW$3,IF(OR(AW$1=\"Fixed\",AW$1=\"Not Used\"),SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AW$3,IF(ISNA(MATCH(OFFSET($N$2,0,MATCH(AW$5,PayDedList,0)-1,1,1),EarnListItem,0))=FALSE,SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(OFFSET($N$6,1,MATCH(AW$5,PayDedList,0)-1,PayCount,1)))/$AA246*12*AW$3,(MIN(SUMPRODUCT((PayEmp=$C246)*(PayDate<=$AC246)*(ISERROR(SEARCH(PayEarnCode,AW$2)))*(PayEarnType=\"Monthly\")*(PayEarnValues))/$AA246*12,IF(ISNUMBER(OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1)),OFFSET($N$3,0,MATCH(AW$5,PayDedList,0)-1,1,1),IgnoreMin)))*IF(COUNTIFS(EmpNo,$C246,OFFSET(Emp!$R$4,1,MATCH(AW$5,DedListItem,0)-1,EmpCount,1),\"<>\")>0,VLOOKUP($C246,EmpAll,COLUMN(Emp!$R$4)+MATCH(AW$5,DedListItem,0)-1,0),OFFSET(Setup!$E$73,MATCH(AW$5,DedListItem,0),0,1,1))*AW$3))),IF(ISNUMBER(AW$4),AW$4,IgnoreMin)))))","v":0},0,0,{"$f":"IF(ISNUMBER($AL246),($AR246*$AL246)-$AI246-$AK246,MAX(0,IF($AL246=\"B\",IF($AR246<Setup!$C$32,($AR246*Setup!$D$32)-$AI246-$AK246,(($AR246-VLOOKUP($AR246,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AR246,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AR246,TaxBracket2,1),0,1,1)-$AI246-$AK246),IF($AR246<Setup!$C$21,($AR246*Setup!$D$21)-$AI246-$AK246,(($AR246-VLOOKUP($AR246,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AR246,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AR246,TaxBracket1,1),0,1,1)-$AI246-$AK246))))","v":0},{"$f":"IF(ISNUMBER($AL246),($AX246*$AL246)-$AI246-$AK246,MAX(0,IF($AL246=\"B\",IF($AX246<Setup!$C$32,($AX246*Setup!$D$32)-$AI246-$AK246,(($AX246-VLOOKUP($AX246,TaxAll2,1,1))*OFFSET(Setup!$D$32,MATCH($AX246,TaxBracket2,1),0,1,1))+OFFSET(Setup!$E$31,MATCH($AX246,TaxBracket2,1),0,1,1)-$AI246-$AK246),IF($AX246<Setup!$C$21,($AX246*Setup!$D$21)-$AI246-$AK246,(($AX246-VLOOKUP($AX246,TaxAll1,1,1))*OFFSET(Setup!$D$21,MATCH($AX246,TaxBracket1,1),0,1,1))+OFFSET(Setup!$E$20,MATCH($AX246,TaxBracket1,1),0,1,1)-$AI246-$AK246))))","v":0},0,0,0,0]

{"sheet":"Override","index":6,"n_rows":11,"n_cols":11,"rows_kept":11,"cut":false,"hidden":true,"merged":[]}
[{"$f":"Setup!$C$4","v":"Example (Pty) Limited"}]
["Deduction Override"]
["© www.excel-skills.com"]
["Override Date","Employee Number","Earnings Code","Income Tax Code","Medical Tax Credit Code","Deduction Code","Co-Contrib Code","Override Value","Override End Date","Employee Name","End Date"]
[45108,"EXS002",null,null,"MED",null,null,3,45350,{"$f":"IF(ISNA(VLOOKUP($B5,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($B5,EmpAll,COLUMN(Emp!$B$4),0))","v":"Smith F"},{"$f":"IF(ISBLANK(A5),Setup!$D$12,IF(ISBLANK(I5),DATE(YEAR(A5),MONTH(A5)+1,0),DATE(YEAR(I5),MONTH(I5)+1,0)))","v":45351}]
[45010,"EXS004","B",null,null,null,null,3600,null,{"$f":"IF(ISNA(VLOOKUP($B6,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($B6,EmpAll,COLUMN(Emp!$B$4),0))","v":"Osborne S"},{"$f":"IF(ISBLANK(A6),Setup!$D$12,IF(ISBLANK(I6),DATE(YEAR(A6),MONTH(A6)+1,0),DATE(YEAR(I6),MONTH(I6)+1,0)))","v":45016}]
[45194,"EXS003","D",null,null,null,null,10000,null,{"$f":"IF(ISNA(VLOOKUP($B7,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($B7,EmpAll,COLUMN(Emp!$B$4),0))","v":"Wilson PG"},{"$f":"IF(ISBLANK(A7),Setup!$D$12,IF(ISBLANK(I7),DATE(YEAR(A7),MONTH(A7)+1,0),DATE(YEAR(I7),MONTH(I7)+1,0)))","v":45199}]
[45200,"EXS003",null,null,null,"LOAN",null,2000,45350,{"$f":"IF(ISNA(VLOOKUP($B8,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($B8,EmpAll,COLUMN(Emp!$B$4),0))","v":"Wilson PG"},{"$f":"IF(ISBLANK(A8),Setup!$D$12,IF(ISBLANK(I8),DATE(YEAR(A8),MONTH(A8)+1,0),DATE(YEAR(I8),MONTH(I8)+1,0)))","v":45351}]
[null,null,null,null,null,null,null,null,null,{"$f":"IF(ISNA(VLOOKUP($B9,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($B9,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISBLANK(A9),Setup!$D$12,IF(ISBLANK(I9),DATE(YEAR(A9),MONTH(A9)+1,0),DATE(YEAR(I9),MONTH(I9)+1,0)))","v":45351}]
[null,null,null,null,null,null,null,null,null,{"$f":"IF(ISNA(VLOOKUP($B10,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($B10,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISBLANK(A10),Setup!$D$12,IF(ISBLANK(I10),DATE(YEAR(A10),MONTH(A10)+1,0),DATE(YEAR(I10),MONTH(I10)+1,0)))","v":45351}]
[null,null,null,null,null,null,null,null,null,{"$f":"IF(ISNA(VLOOKUP($B11,EmpAll,COLUMN(Emp!$B$4),0)),\"-\",VLOOKUP($B11,EmpAll,COLUMN(Emp!$B$4),0))","v":"-"},{"$f":"IF(ISBLANK(A11),Setup!$D$12,IF(ISBLANK(I11),DATE(YEAR(A11),MONTH(A11)+1,0),DATE(YEAR(I11),MONTH(I11)+1,0)))","v":45351}]

{"sheet":"PaySlip","index":7,"n_rows":44,"n_cols":7,"rows_kept":44,"cut":false,"hidden":true,"merged":[[7,1,7,6],[11,2,11,3]]}
[]
[null,{"$f":"Setup!$C$4","v":"Example (Pty) Limited"},null,null,null,null,"Monthly Salary Payslip"]
[null,{"$f":"Setup!$C$5","v":"Building Name, Street Address, Suburb, City, Code"},null,null,null,"Payslip Number","202402-EXS001"]
[null,{"$f":"\"Registration No: \"&Setup!$C$6","v":"Registration No: 2017 000000 00"},null,null,null,"Payment Date",{"$f":"IF(ISNA(VLOOKUP($G$3,Payroll[],COLUMN(Payroll!$AC$6),0))=TRUE,\"select payslip no!\",VLOOKUP($G$3,Payroll[],COLUMN(Payroll!$AC$6),0))","v":45347}]
[null,{"$f":"\"Telephone No: \"&Setup!$C$7","v":"Telephone No: +27 21 999 9999"},null,null,null,"Pay Period Number",{"$f":"IF(ISNA(VLOOKUP($G$3,Payroll[],COLUMN(Payroll!$AA$6),0))=TRUE,\"-\",VLOOKUP($G$3,Payroll[],COLUMN(Payroll!$AA$6),0))","v":12}]
[null,{"$f":"\"E-mail: \"&Setup!$C$8","v":"E-mail: hr@example.com"},null,null,null,"Gross Annual Salary",{"$f":"IF(ISNA(VLOOKUP($G$3,Payroll[],COLUMN(Payroll!$BE$6),0))=TRUE,\"-\",VLOOKUP($G$3,Payroll[],COLUMN(Payroll!$BE$6),0))","v":1980000}]
[null,"© www.excel-skills.com"]
[null,"Employee Details"]
[null,"Employee Name",{"$f":"IF(ISNA(VLOOKUP($C$11,Employees[],COLUMN(Emp!$B$4),0))=TRUE,\"invalid employee number!\",VLOOKUP($C$11,Employees[],COLUMN(Emp!$B$4),0))","v":"Taylor AE"}]
[null,"Residential Address",{"$f":"IF(ISNA(VLOOKUP($C$11,Employees[],COLUMN(Emp!$K$4),0))=TRUE,\"-\",VLOOKUP($C$11,Employees[],COLUMN(Emp!$K$4),0))","v":"Building Name, Street Address, Suburb, City, Code"}]
[null,"Employee Number",{"$f":"IF(ISNA(VLOOKUP($G$3,Payroll[],COLUMN(Payroll!$C$6),0))=TRUE,\"-\",VLOOKUP($G$3,Payroll[],COLUMN(Payroll!$C$6),0))","v":"EXS001"},null,null,"ID Number",{"$f":"IF(ISNA(VLOOKUP($C$11,Employees[],COLUMN(Emp!$I$4),0))=TRUE,\"-\",TEXT(VLOOKUP($C$11,Employees[],COLUMN(Emp!$I$4),0),\"0000000000000\"))","v":"111111 1111 001"}]
[null,"Date of Employment",{"$f":"IF(ISNA(VLOOKUP($C$11,Employees[],COLUMN(Emp!$D$4),0))=TRUE,\"-\",VLOOKUP($C$11,Employees[],COLUMN(Emp!$D$4),0))","v":40603},null,null,"Tax Number",{"$f":"IF(ISNA(VLOOKUP($C$11,Employees[],COLUMN(Emp!$J$4),0))=TRUE,\"-\",VLOOKUP($C$11,Employees[],COLUMN(Emp!$J$4),0))","v":"000 000 001"}]
[null,"Job Title",{"$f":"IF(ISNA(VLOOKUP($C$11,Employees[],COLUMN(Emp!$H$4),0))=TRUE,\"-\",VLOOKUP($C$11,Employees[],COLUMN(Emp!$H$4),0))","v":"CEO"},null,null,"Department",{"$f":"IF(ISNA(VLOOKUP($C$11,Employees[],COLUMN(Emp!$C$4),0))=TRUE,\"-\",IF(ISNA(VLOOKUP(VLOOKUP($C$11,Employees[],COLUMN(Emp!$C$4),0),DeptAll,COLUMN(Setup!$B$89),0)),\"-\",VLOOKUP(VLOOKUP($C$11,Employees[],COLUMN(Emp!$C$4),0),DeptAll,COLUMN(Setup!$B$89),0)))","v":"Management"}]
[]
[null,{"$f":"\"Monthly Pay for \"&TEXT($G$4,\"mmmm yyyy\")","v":"Monthly Pay for February 2024"},null,null,"Year-To-Date Totals"]
[null,"Earnings",null,null,"Earnings"]
[{"$f":"IF(ISERROR(INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(1:1)),1))=TRUE,\"-\",INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(1:1)),1))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($A17,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A17,EarnListAll,COLUMN(Setup!$B$64),0))","v":"Basic Salary"},null,{"$f":"IF(ISNA(MATCH($A17,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A17,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":165000},{"$f":"IF(ISNA(VLOOKUP($A17,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A17,EarnListAll,COLUMN(Setup!$B$64),0))","v":"Basic Salary"},null,{"$f":"IF(ISNA(MATCH($A17,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A17,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":1830000}]
[{"$f":"IF(ISERROR(INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(2:2)),1))=TRUE,\"-\",INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(2:2)),1))","v":"C"},{"$f":"IF(ISNA(VLOOKUP($A18,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A18,EarnListAll,COLUMN(Setup!$B$64),0))","v":"Annual Bonus"},null,{"$f":"IF(ISNA(MATCH($A18,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A18,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":0},{"$f":"IF(ISNA(VLOOKUP($A18,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A18,EarnListAll,COLUMN(Setup!$B$64),0))","v":"Annual Bonus"},null,{"$f":"IF(ISNA(MATCH($A18,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A18,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":150000}]
[{"$f":"IF(ISERROR(INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(3:3)),1))=TRUE,\"-\",INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(3:3)),1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A19,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A19,EarnListAll,COLUMN(Setup!$B$64),0))","v":""},null,{"$f":"IF(ISNA(MATCH($A19,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A19,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":""},{"$f":"IF(ISNA(VLOOKUP($A19,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A19,EarnListAll,COLUMN(Setup!$B$64),0))","v":""},null,{"$f":"IF(ISNA(MATCH($A19,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A19,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":""}]
[{"$f":"IF(ISERROR(INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(4:4)),1))=TRUE,\"-\",INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(4:4)),1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A20,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A20,EarnListAll,COLUMN(Setup!$B$64),0))","v":""},null,{"$f":"IF(ISNA(MATCH($A20,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A20,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":""},{"$f":"IF(ISNA(VLOOKUP($A20,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A20,EarnListAll,COLUMN(Setup!$B$64),0))","v":""},null,{"$f":"IF(ISNA(MATCH($A20,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A20,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":""}]
[{"$f":"IF(ISERROR(INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(5:5)),1))=TRUE,\"-\",INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(5:5)),1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A21,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A21,EarnListAll,COLUMN(Setup!$B$64),0))","v":""},null,{"$f":"IF(ISNA(MATCH($A21,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A21,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":""},{"$f":"IF(ISNA(VLOOKUP($A21,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A21,EarnListAll,COLUMN(Setup!$B$64),0))","v":""},null,{"$f":"IF(ISNA(MATCH($A21,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A21,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":""}]
[{"$f":"IF(ISERROR(INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(6:6)),1))=TRUE,\"-\",INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(6:6)),1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A22,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A22,EarnListAll,COLUMN(Setup!$B$64),0))","v":""},null,{"$f":"IF(ISNA(MATCH($A22,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A22,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":""},{"$f":"IF(ISNA(VLOOKUP($A22,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A22,EarnListAll,COLUMN(Setup!$B$64),0))","v":""},null,{"$f":"IF(ISNA(MATCH($A22,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A22,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":""}]
[{"$f":"IF(ISERROR(INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(7:7)),1))=TRUE,\"-\",INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(7:7)),1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A23,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A23,EarnListAll,COLUMN(Setup!$B$64),0))","v":""},null,{"$f":"IF(ISNA(MATCH($A23,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A23,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":""},{"$f":"IF(ISNA(VLOOKUP($A23,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A23,EarnListAll,COLUMN(Setup!$B$64),0))","v":""},null,{"$f":"IF(ISNA(MATCH($A23,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A23,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":""}]
[{"$f":"IF(ISERROR(INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(8:8)),1))=TRUE,\"-\",INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(8:8)),1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A24,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A24,EarnListAll,COLUMN(Setup!$B$64),0))","v":""},null,{"$f":"IF(ISNA(MATCH($A24,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A24,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":""},{"$f":"IF(ISNA(VLOOKUP($A24,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A24,EarnListAll,COLUMN(Setup!$B$64),0))","v":""},null,{"$f":"IF(ISNA(MATCH($A24,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A24,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":""}]
[{"$f":"IF(ISERROR(INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(#REF!)),1))=TRUE,\"-\",INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(#REF!)),1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A25,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A25,EarnListAll,COLUMN(Setup!$B$64),0))","v":""},null,{"$f":"IF(ISNA(MATCH($A25,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A25,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":""},{"$f":"IF(ISNA(VLOOKUP($A25,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A25,EarnListAll,COLUMN(Setup!$B$64),0))","v":""},null,{"$f":"IF(ISNA(MATCH($A25,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A25,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":""}]
[{"$f":"IF(ISERROR(INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(9:9)),1))=TRUE,\"-\",INDEX(SlipEarn,SMALL(IF(SlipEarnValue<>0,ROW(SlipEarnValue)-ROW(Setup!$B$119)),ROW(9:9)),1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A26,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A26,EarnListAll,COLUMN(Setup!$B$64),0))","v":""},null,{"$f":"IF(ISNA(MATCH($A26,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A26,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":""},{"$f":"IF(ISNA(VLOOKUP($A26,EarnListAll,COLUMN(Setup!$B$64),0)),\"\",VLOOKUP($A26,EarnListAll,COLUMN(Setup!$B$64),0))","v":""},null,{"$f":"IF(ISNA(MATCH($A26,PayEarnCode,0)),\"\",SUMIFS(OFFSET(Payroll!$G$6,1,MATCH($A26,PayEarnCode,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":""}]
[null,"Total",null,{"$f":"SUM(D16:D26)","v":165000},"Total",null,{"$f":"SUM(G16:G26)","v":1980000}]
[null,"Deductions",null,null,"Deductions"]
[{"$f":"IF(ISERROR(INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(1:1)),1))=TRUE,\"-\",INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(1:1)),1))","v":"TAX"},{"$f":"IF($A29=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A29,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A29,DedListAll,COLUMN(Setup!$B$73),0)))","v":"Income Tax"},null,{"$f":"IF(ISNA(MATCH($A29,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A29,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":51805.128787878901},{"$f":"IF($A29=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A29,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A29,DedListAll,COLUMN(Setup!$B$73),0)))","v":"Income Tax"},null,{"$f":"IF(ISNA(MATCH($A29,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A29,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":616187}]
[{"$f":"IF(ISERROR(INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(2:2)),1))=TRUE,\"-\",INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(2:2)),1))","v":"UIF"},{"$f":"IF($A30=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A30,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A30,DedListAll,COLUMN(Setup!$B$73),0)))","v":"Unemployment Insurance"},null,{"$f":"IF(ISNA(MATCH($A30,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A30,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":177.12000000000012},{"$f":"IF($A30=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A30,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A30,DedListAll,COLUMN(Setup!$B$73),0)))","v":"Unemployment Insurance"},null,{"$f":"IF(ISNA(MATCH($A30,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A30,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":2125.44}]
[{"$f":"IF(ISERROR(INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(3:3)),1))=TRUE,\"-\",INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(3:3)),1))","v":"PENS"},{"$f":"IF($A31=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A31,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A31,DedListAll,COLUMN(Setup!$B$73),0)))","v":"Pension Fund"},null,{"$f":"IF(ISNA(MATCH($A31,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A31,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":12375},{"$f":"IF($A31=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A31,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A31,DedListAll,COLUMN(Setup!$B$73),0)))","v":"Pension Fund"},null,{"$f":"IF(ISNA(MATCH($A31,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A31,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":148500}]
[{"$f":"IF(ISERROR(INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(4:4)),1))=TRUE,\"-\",INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(4:4)),1))","v":"-"},{"$f":"IF($A32=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A32,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A32,DedListAll,COLUMN(Setup!$B$73),0)))","v":""},null,{"$f":"IF(ISNA(MATCH($A32,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A32,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":""},{"$f":"IF($A32=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A32,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A32,DedListAll,COLUMN(Setup!$B$73),0)))","v":""},null,{"$f":"IF(ISNA(MATCH($A32,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A32,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":""}]
[{"$f":"IF(ISERROR(INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(5:5)),1))=TRUE,\"-\",INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(5:5)),1))","v":"-"},{"$f":"IF($A33=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A33,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A33,DedListAll,COLUMN(Setup!$B$73),0)))","v":""},null,{"$f":"IF(ISNA(MATCH($A33,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A33,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":""},{"$f":"IF($A33=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A33,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A33,DedListAll,COLUMN(Setup!$B$73),0)))","v":""},null,{"$f":"IF(ISNA(MATCH($A33,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A33,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":""}]
[{"$f":"IF(ISERROR(INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(6:6)),1))=TRUE,\"-\",INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(6:6)),1))","v":"-"},{"$f":"IF($A34=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A34,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A34,DedListAll,COLUMN(Setup!$B$73),0)))","v":""},null,{"$f":"IF(ISNA(MATCH($A34,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A34,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":""},{"$f":"IF($A34=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A34,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A34,DedListAll,COLUMN(Setup!$B$73),0)))","v":""},null,{"$f":"IF(ISNA(MATCH($A34,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A34,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":""}]
[{"$f":"IF(ISERROR(INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(7:7)),1))=TRUE,\"-\",INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(7:7)),1))","v":"-"},{"$f":"IF($A35=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A35,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A35,DedListAll,COLUMN(Setup!$B$73),0)))","v":""},null,{"$f":"IF(ISNA(MATCH($A35,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A35,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":""},{"$f":"IF($A35=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A35,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A35,DedListAll,COLUMN(Setup!$B$73),0)))","v":""},null,{"$f":"IF(ISNA(MATCH($A35,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A35,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":""}]
[{"$f":"IF(ISERROR(INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(8:8)),1))=TRUE,\"-\",INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(8:8)),1))","v":"-"},{"$f":"IF($A36=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A36,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A36,DedListAll,COLUMN(Setup!$B$73),0)))","v":""},null,{"$f":"IF(ISNA(MATCH($A36,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A36,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":""},{"$f":"IF($A36=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A36,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A36,DedListAll,COLUMN(Setup!$B$73),0)))","v":""},null,{"$f":"IF(ISNA(MATCH($A36,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A36,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":""}]
[{"$f":"IF(ISERROR(INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(9:9)),1))=TRUE,\"-\",INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(9:9)),1))","v":"-"},{"$f":"IF($A37=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A37,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A37,DedListAll,COLUMN(Setup!$B$73),0)))","v":""},null,{"$f":"IF(ISNA(MATCH($A37,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A37,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":""},{"$f":"IF($A37=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A37,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A37,DedListAll,COLUMN(Setup!$B$73),0)))","v":""},null,{"$f":"IF(ISNA(MATCH($A37,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A37,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":""}]
[{"$f":"IF(ISERROR(INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(10:10)),1))=TRUE,\"-\",INDEX(SlipDeduct,SMALL(IF(SlipDeductValue<>0,ROW(SlipDeductValue)-ROW(Setup!$D$119)),ROW(10:10)),1))","v":"-"},{"$f":"IF($A38=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A38,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A38,DedListAll,COLUMN(Setup!$B$73),0)))","v":""},null,{"$f":"IF(ISNA(MATCH($A38,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A38,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,$G$4))","v":""},{"$f":"IF($A38=Payroll!$M$5,\"Income Tax\",IF(ISNA(VLOOKUP($A38,DedListAll,COLUMN(Setup!$B$73),0)),\"\",VLOOKUP($A38,DedListAll,COLUMN(Setup!$B$73),0)))","v":""},null,{"$f":"IF(ISNA(MATCH($A38,PayDedListAll,0)),\"\",SUMIFS(OFFSET(Payroll!$M$6,1,MATCH($A38,PayDedListAll,0)-1,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4))","v":""}]
[null,"Total",null,{"$f":"SUM(D28:D38)","v":64357.248787878903},"Total",null,{"$f":"SUM(G28:G38)","v":766812.44}]
[]
[null,{"$f":"\"Net Pay For \"&TEXT($G$4,\"mmmm yyyy\")","v":"Net Pay For February 2024"},null,{"$f":"D27-D39","v":100642.7512121211},"Year-To-Date Net Pay",null,{"$f":"G27-G39","v":1213187.56}]
[]
[null,"MTD Company Contributions",null,{"$f":"SUMIFS(OFFSET(Payroll!$X$6,1,0,PayCount,1),PayEmp,$C$11,PayDate,$G$4)","v":1827.1200000000001},null,"Medical Tax Credit",{"$f":"IF(ISNA(VLOOKUP($G$3,Payroll[],COLUMN(Payroll!$AI$6),0))=TRUE,\"-\",VLOOKUP($G$3,Payroll[],COLUMN(Payroll!$AI$6),0))","v":17592}]
[null,"YTD Company Contributions",null,{"$f":"SUMIFS(OFFSET(Payroll!$X$6,1,0,PayCount,1),PayEmp,$C$11,PayDate,\"<=\"&$G$4)","v":21925.439999999995}]

{"sheet":"Summary","index":8,"n_rows":17,"n_cols":24,"rows_kept":17,"cut":false,"hidden":true,"merged":[]}
[{"$f":"Setup!$C$4","v":"Example (Pty) Limited"},null,{"$f":"IF(ISBLANK($D$2),\"*\",$D$2)","v":"*"},"Department","Employee No"]
["Payroll Summary",null,{"$f":"IF(ISBLANK($E$2),\"*\",$E$2)","v":"*"},null,null,{"$f":"IF(ISBLANK($E$2),\"All Employees\",IF(ISNA(VLOOKUP($E$2,EmpAll,COLUMN(Emp!$B$4),0)),\"Error!\",VLOOKUP($E$2,EmpAll,COLUMN(Emp!$B$4),0)))","v":"All Employees"}]
["© www.excel-skills.com",{"$f":"SUBTOTAL(109,OFFSET(B$5,1,0,SumCount,1))","v":4760050},{"$f":"SUBTOTAL(109,OFFSET(C$5,1,0,SumCount,1))","v":3600},{"$f":"SUBTOTAL(109,OFFSET(D$5,1,0,SumCount,1))","v":362000},{"$f":"SUBTOTAL(109,OFFSET(E$5,1,0,SumCount,1))","v":10000},{"$f":"SUBTOTAL(109,OFFSET(F$5,1,0,SumCount,1))","v":0},{"$f":"SUBTOTAL(109,OFFSET(G$5,1,0,SumCount,1))","v":5135650},{"$f":"SUBTOTAL(109,OFFSET(H$5,1,0,SumCount,1))","v":1234908.0000000002},{"$f":"SUBTOTAL(109,OFFSET(I$5,1,0,SumCount,1))","v":18582.320000000003},{"$f":"SUBTOTAL(109,OFFSET(J$5,1,0,SumCount,1))","v":148500},{"$f":"SUBTOTAL(109,OFFSET(K$5,1,0,SumCount,1))","v":16000},{"$f":"SUBTOTAL(109,OFFSET(L$5,1,0,SumCount,1))","v":0},{"$f":"SUBTOTAL(109,OFFSET(M$5,1,0,SumCount,1))","v":1417990.3199999998},{"$f":"SUBTOTAL(109,OFFSET(N$5,1,0,SumCount,1))","v":3717659.68},{"$f":"SUBTOTAL(109,OFFSET(O$5,1,0,SumCount,1))","v":18582.320000000003},{"$f":"SUBTOTAL(109,OFFSET(P$5,1,0,SumCount,1))","v":51256.5},{"$f":"SUBTOTAL(109,OFFSET(Q$5,1,0,SumCount,1))","v":0},{"$f":"SUBTOTAL(109,OFFSET(R$5,1,0,SumCount,1))","v":0},{"$f":"SUBTOTAL(109,OFFSET(S$5,1,0,SumCount,1))","v":69838.820000000007},{"$f":"SUBTOTAL(109,OFFSET(T$5,1,0,SumCount,1))","v":1487829.14},{"$f":"SUBTOTAL(109,OFFSET(U$5,1,0,SumCount,1))","v":5205488.82}]
[null,{"$f":"IF(COLUMN(B$1)-COLUMN($B$1)+1<=EarnListCount,OFFSET(Setup!$E$64,COLUMN(B$1)-COLUMN($B$1)+1,0,1,1),\"Not Used\")","v":"Basic"},{"$f":"IF(COLUMN(C$1)-COLUMN($B$1)+1<=EarnListCount,OFFSET(Setup!$E$64,COLUMN(C$1)-COLUMN($B$1)+1,0,1,1),\"Not Used\")","v":"Leave"},{"$f":"IF(COLUMN(D$1)-COLUMN($B$1)+1<=EarnListCount,OFFSET(Setup!$E$64,COLUMN(D$1)-COLUMN($B$1)+1,0,1,1),\"Not Used\")","v":"Bonus"},{"$f":"IF(COLUMN(E$1)-COLUMN($B$1)+1<=EarnListCount,OFFSET(Setup!$E$64,COLUMN(E$1)-COLUMN($B$1)+1,0,1,1),\"Not Used\")","v":"Loan"},{"$f":"IF(COLUMN(F$1)-COLUMN($B$1)+1<=EarnListCount,OFFSET(Setup!$E$64,COLUMN(F$1)-COLUMN($B$1)+1,0,1,1),\"Not Used\")","v":"Not Used"},"Total","TAX",{"$f":"IF(COLUMN(I$1)-COLUMN($I$1)+1>DedListCount,\"Not Used\",OFFSET(Setup!$A$73,COLUMN(I$1)-COLUMN($I$1)+1,0,1,1))","v":"UIF"},{"$f":"IF(COLUMN(J$1)-COLUMN($I$1)+1>DedListCount,\"Not Used\",OFFSET(Setup!$A$73,COLUMN(J$1)-COLUMN($I$1)+1,0,1,1))","v":"PENS"},{"$f":"IF(COLUMN(K$1)-COLUMN($I$1)+1>DedListCount,\"Not Used\",OFFSET(Setup!$A$73,COLUMN(K$1)-COLUMN($I$1)+1,0,1,1))","v":"LOAN"},{"$f":"IF(COLUMN(L$1)-COLUMN($I$1)+1>DedListCount,\"Not Used\",OFFSET(Setup!$A$73,COLUMN(L$1)-COLUMN($I$1)+1,0,1,1))","v":"DED4"},"Total","Net",{"$f":"IF(COLUMN(O$1)-COLUMN($O$1)+1>CompListCount,\"Not Used\",OFFSET(Setup!$A$81,COLUMN(O$1)-COLUMN($O$1)+1,0,1,1))","v":"UIF"},{"$f":"IF(COLUMN(P$1)-COLUMN($O$1)+1>CompListCount,\"Not Used\",OFFSET(Setup!$A$81,COLUMN(P$1)-COLUMN($O$1)+1,0,1,1))","v":"SDL"},{"$f":"IF(COLUMN(Q$1)-COLUMN($O$1)+1>CompListCount,\"Not Used\",OFFSET(Setup!$A$81,COLUMN(Q$1)-COLUMN($O$1)+1,0,1,1))","v":"CO3"},{"$f":"IF(COLUMN(R$1)-COLUMN($O$1)+1>CompListCount,\"Not Used\",OFFSET(Setup!$A$81,COLUMN(R$1)-COLUMN($O$1)+1,0,1,1))","v":"CO4"},"Total","Total","Total","UIF"]
["Month","Earnings1","Earnings2","Earnings3","Earnings4","Earnings5","Gross Pay","Income Tax (PAYE)","Deduct1","Deduct2","Deduct3","Deduct4","Total Deductions","Net Pay","Co-Contrib1","Co-Contrib2","Co-Contrib3","Co-Contrib4","Total Co Contributions","Deductions & Co-Contrib","Total Cost To Company","User \nDefined1","User \nDefined2","User \nDefined3"]
[{"$f":"DATE(YEAR(A7),MONTH(A7),0)","v":"2023-03-31"},{"$f":"IF(OR(ISBLANK(B$4),B$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(B$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A6),MONTH($A6),1),PayDate,\"<\"&DATE(YEAR($A6),MONTH($A6)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":387000},{"$f":"IF(OR(ISBLANK(C$4),C$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(C$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A6),MONTH($A6),1),PayDate,\"<\"&DATE(YEAR($A6),MONTH($A6)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":3600},{"$f":"IF(OR(ISBLANK(D$4),D$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(D$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A6),MONTH($A6),1),PayDate,\"<\"&DATE(YEAR($A6),MONTH($A6)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(E$4),E$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(E$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A6),MONTH($A6),1),PayDate,\"<\"&DATE(YEAR($A6),MONTH($A6)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(F$4),F$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(F$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A6),MONTH($A6),1),PayDate,\"<\"&DATE(YEAR($A6),MONTH($A6)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"SUM(OFFSET($B6,0,0,1,COLUMN(G$1)-COLUMN($B$1)))","v":390600},{"$f":"SUMIFS(PayTaxDeduct,PayDate,\">=\"&DATE(YEAR($A6),MONTH($A6),1),PayDate,\"<\"&DATE(YEAR($A6),MONTH($A6)+1,1),PayDept,$C$1,PayEmp,$C$2)","v":90756},{"$f":"IF(OR(ISBLANK(I$4),I$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(I$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A6),MONTH($A6),1),PayDate,\"<\"&DATE(YEAR($A6),MONTH($A6)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1478.48},{"$f":"IF(OR(ISBLANK(J$4),J$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(J$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A6),MONTH($A6),1),PayDate,\"<\"&DATE(YEAR($A6),MONTH($A6)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":11250},{"$f":"IF(OR(ISBLANK(K$4),K$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(K$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A6),MONTH($A6),1),PayDate,\"<\"&DATE(YEAR($A6),MONTH($A6)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":500},{"$f":"IF(OR(ISBLANK(L$4),L$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(L$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A6),MONTH($A6),1),PayDate,\"<\"&DATE(YEAR($A6),MONTH($A6)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"SUM(OFFSET($H6,0,0,1,COLUMN(M$1)-COLUMN($H$1)))","v":103984.48},{"$f":"SUM(G6,-M6)","v":286615.52},{"$f":"IF(OR(ISBLANK(O$4),O$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(O$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A6),MONTH($A6),1),PayDate,\"<\"&DATE(YEAR($A6),MONTH($A6)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1478.48},{"$f":"IF(OR(ISBLANK(P$4),P$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(P$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A6),MONTH($A6),1),PayDate,\"<\"&DATE(YEAR($A6),MONTH($A6)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":3906},{"$f":"IF(OR(ISBLANK(Q$4),Q$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(Q$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A6),MONTH($A6),1),PayDate,\"<\"&DATE(YEAR($A6),MONTH($A6)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(R$4),R$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(R$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A6),MONTH($A6),1),PayDate,\"<\"&DATE(YEAR($A6),MONTH($A6)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"SUM(OFFSET($O6,0,0,1,COLUMN(S$1)-COLUMN($O$1)))","v":5384.48},{"$f":"M6+S6","v":109368.95999999999},{"$f":"G6+S6","v":395984.48},{"$f":"IF(ISBLANK(V$4),0,SUMIFS(OFFSET($H6,0,0,1,COLUMN($U$1)-COLUMN($H$1)),OFFSET($H$4,0,0,1,COLUMN($U$1)-COLUMN($H$1)),V$4))","v":2956.96},0,0]
[{"$f":"DATE(YEAR(A8),MONTH(A8),0)","v":"2023-04-30"},{"$f":"IF(OR(ISBLANK(B$4),B$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(B$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A7),MONTH($A7),1),PayDate,\"<\"&DATE(YEAR($A7),MONTH($A7)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":387000},{"$f":"IF(OR(ISBLANK(C$4),C$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(C$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A7),MONTH($A7),1),PayDate,\"<\"&DATE(YEAR($A7),MONTH($A7)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(D$4),D$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(D$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A7),MONTH($A7),1),PayDate,\"<\"&DATE(YEAR($A7),MONTH($A7)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(E$4),E$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(E$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A7),MONTH($A7),1),PayDate,\"<\"&DATE(YEAR($A7),MONTH($A7)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(F$4),F$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(F$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A7),MONTH($A7),1),PayDate,\"<\"&DATE(YEAR($A7),MONTH($A7)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},387000,90108,{"$f":"IF(OR(ISBLANK(I$4),I$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(I$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A7),MONTH($A7),1),PayDate,\"<\"&DATE(YEAR($A7),MONTH($A7)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1460.24},{"$f":"IF(OR(ISBLANK(J$4),J$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(J$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A7),MONTH($A7),1),PayDate,\"<\"&DATE(YEAR($A7),MONTH($A7)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":11250},{"$f":"IF(OR(ISBLANK(K$4),K$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(K$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A7),MONTH($A7),1),PayDate,\"<\"&DATE(YEAR($A7),MONTH($A7)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":500},{"$f":"IF(OR(ISBLANK(L$4),L$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(L$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A7),MONTH($A7),1),PayDate,\"<\"&DATE(YEAR($A7),MONTH($A7)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},103318.24,283681.76,{"$f":"IF(OR(ISBLANK(O$4),O$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(O$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A7),MONTH($A7),1),PayDate,\"<\"&DATE(YEAR($A7),MONTH($A7)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1460.24},{"$f":"IF(OR(ISBLANK(P$4),P$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(P$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A7),MONTH($A7),1),PayDate,\"<\"&DATE(YEAR($A7),MONTH($A7)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":3870},{"$f":"IF(OR(ISBLANK(Q$4),Q$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(Q$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A7),MONTH($A7),1),PayDate,\"<\"&DATE(YEAR($A7),MONTH($A7)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(R$4),R$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(R$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A7),MONTH($A7),1),PayDate,\"<\"&DATE(YEAR($A7),MONTH($A7)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},5330.24,108648.48000000001,392330.23999999999,2920.48,0,0]
[{"$f":"DATE(YEAR(A9),MONTH(A9),0)","v":"2023-05-31"},{"$f":"IF(OR(ISBLANK(B$4),B$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(B$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A8),MONTH($A8),1),PayDate,\"<\"&DATE(YEAR($A8),MONTH($A8)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":387000},{"$f":"IF(OR(ISBLANK(C$4),C$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(C$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A8),MONTH($A8),1),PayDate,\"<\"&DATE(YEAR($A8),MONTH($A8)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(D$4),D$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(D$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A8),MONTH($A8),1),PayDate,\"<\"&DATE(YEAR($A8),MONTH($A8)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(E$4),E$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(E$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A8),MONTH($A8),1),PayDate,\"<\"&DATE(YEAR($A8),MONTH($A8)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(F$4),F$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(F$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A8),MONTH($A8),1),PayDate,\"<\"&DATE(YEAR($A8),MONTH($A8)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},387000,90107.999999999985,{"$f":"IF(OR(ISBLANK(I$4),I$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(I$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A8),MONTH($A8),1),PayDate,\"<\"&DATE(YEAR($A8),MONTH($A8)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1451.3600000000001},{"$f":"IF(OR(ISBLANK(J$4),J$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(J$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A8),MONTH($A8),1),PayDate,\"<\"&DATE(YEAR($A8),MONTH($A8)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":11250},{"$f":"IF(OR(ISBLANK(K$4),K$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(K$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A8),MONTH($A8),1),PayDate,\"<\"&DATE(YEAR($A8),MONTH($A8)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":500},{"$f":"IF(OR(ISBLANK(L$4),L$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(L$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A8),MONTH($A8),1),PayDate,\"<\"&DATE(YEAR($A8),MONTH($A8)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},103309.35999999999,283690.64,{"$f":"IF(OR(ISBLANK(O$4),O$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(O$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A8),MONTH($A8),1),PayDate,\"<\"&DATE(YEAR($A8),MONTH($A8)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1451.3600000000001},{"$f":"IF(OR(ISBLANK(P$4),P$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(P$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A8),MONTH($A8),1),PayDate,\"<\"&DATE(YEAR($A8),MONTH($A8)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":3870},{"$f":"IF(OR(ISBLANK(Q$4),Q$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(Q$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A8),MONTH($A8),1),PayDate,\"<\"&DATE(YEAR($A8),MONTH($A8)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(R$4),R$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(R$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A8),MONTH($A8),1),PayDate,\"<\"&DATE(YEAR($A8),MONTH($A8)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},5321.3600000000006,108630.71999999999,392321.36,2902.7200000000003,0,0]
[{"$f":"DATE(YEAR(A10),MONTH(A10),0)","v":"2023-06-30"},{"$f":"IF(OR(ISBLANK(B$4),B$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(B$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A9),MONTH($A9),1),PayDate,\"<\"&DATE(YEAR($A9),MONTH($A9)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":391150},{"$f":"IF(OR(ISBLANK(C$4),C$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(C$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A9),MONTH($A9),1),PayDate,\"<\"&DATE(YEAR($A9),MONTH($A9)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(D$4),D$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(D$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A9),MONTH($A9),1),PayDate,\"<\"&DATE(YEAR($A9),MONTH($A9)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(E$4),E$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(E$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A9),MONTH($A9),1),PayDate,\"<\"&DATE(YEAR($A9),MONTH($A9)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(F$4),F$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(F$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A9),MONTH($A9),1),PayDate,\"<\"&DATE(YEAR($A9),MONTH($A9)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},391150,91187.000000000015,{"$f":"IF(OR(ISBLANK(I$4),I$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(I$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A9),MONTH($A9),1),PayDate,\"<\"&DATE(YEAR($A9),MONTH($A9)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1451.3600000000001},{"$f":"IF(OR(ISBLANK(J$4),J$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(J$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A9),MONTH($A9),1),PayDate,\"<\"&DATE(YEAR($A9),MONTH($A9)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":11250},{"$f":"IF(OR(ISBLANK(K$4),K$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(K$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A9),MONTH($A9),1),PayDate,\"<\"&DATE(YEAR($A9),MONTH($A9)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":500},{"$f":"IF(OR(ISBLANK(L$4),L$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(L$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A9),MONTH($A9),1),PayDate,\"<\"&DATE(YEAR($A9),MONTH($A9)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},104388.36000000002,286761.64,{"$f":"IF(OR(ISBLANK(O$4),O$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(O$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A9),MONTH($A9),1),PayDate,\"<\"&DATE(YEAR($A9),MONTH($A9)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1451.3600000000001},{"$f":"IF(OR(ISBLANK(P$4),P$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(P$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A9),MONTH($A9),1),PayDate,\"<\"&DATE(YEAR($A9),MONTH($A9)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":3911.5},{"$f":"IF(OR(ISBLANK(Q$4),Q$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(Q$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A9),MONTH($A9),1),PayDate,\"<\"&DATE(YEAR($A9),MONTH($A9)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(R$4),R$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(R$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A9),MONTH($A9),1),PayDate,\"<\"&DATE(YEAR($A9),MONTH($A9)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},5362.8600000000006,109751.22000000002,396512.86,2902.7200000000003,0,0]
[{"$f":"DATE(YEAR(A11),MONTH(A11),0)","v":"2023-07-31"},{"$f":"IF(OR(ISBLANK(B$4),B$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(B$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A10),MONTH($A10),1),PayDate,\"<\"&DATE(YEAR($A10),MONTH($A10)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":391150},{"$f":"IF(OR(ISBLANK(C$4),C$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(C$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A10),MONTH($A10),1),PayDate,\"<\"&DATE(YEAR($A10),MONTH($A10)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(D$4),D$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(D$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A10),MONTH($A10),1),PayDate,\"<\"&DATE(YEAR($A10),MONTH($A10)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(E$4),E$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(E$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A10),MONTH($A10),1),PayDate,\"<\"&DATE(YEAR($A10),MONTH($A10)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(F$4),F$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(F$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A10),MONTH($A10),1),PayDate,\"<\"&DATE(YEAR($A10),MONTH($A10)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},391150,90367.000000000015,{"$f":"IF(OR(ISBLANK(I$4),I$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(I$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A10),MONTH($A10),1),PayDate,\"<\"&DATE(YEAR($A10),MONTH($A10)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1451.3600000000001},{"$f":"IF(OR(ISBLANK(J$4),J$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(J$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A10),MONTH($A10),1),PayDate,\"<\"&DATE(YEAR($A10),MONTH($A10)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":11250},{"$f":"IF(OR(ISBLANK(K$4),K$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(K$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A10),MONTH($A10),1),PayDate,\"<\"&DATE(YEAR($A10),MONTH($A10)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":500},{"$f":"IF(OR(ISBLANK(L$4),L$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(L$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A10),MONTH($A10),1),PayDate,\"<\"&DATE(YEAR($A10),MONTH($A10)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},103568.36000000002,287581.64,{"$f":"IF(OR(ISBLANK(O$4),O$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(O$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A10),MONTH($A10),1),PayDate,\"<\"&DATE(YEAR($A10),MONTH($A10)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1451.3600000000001},{"$f":"IF(OR(ISBLANK(P$4),P$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(P$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A10),MONTH($A10),1),PayDate,\"<\"&DATE(YEAR($A10),MONTH($A10)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":3911.5},{"$f":"IF(OR(ISBLANK(Q$4),Q$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(Q$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A10),MONTH($A10),1),PayDate,\"<\"&DATE(YEAR($A10),MONTH($A10)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(R$4),R$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(R$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A10),MONTH($A10),1),PayDate,\"<\"&DATE(YEAR($A10),MONTH($A10)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},5362.8600000000006,108931.22000000002,396512.86,2902.7200000000003,0,0]
["2023-08-31",{"$f":"IF(OR(ISBLANK(B$4),B$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(B$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A11),MONTH($A11),1),PayDate,\"<\"&DATE(YEAR($A11),MONTH($A11)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":391150},{"$f":"IF(OR(ISBLANK(C$4),C$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(C$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A11),MONTH($A11),1),PayDate,\"<\"&DATE(YEAR($A11),MONTH($A11)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(D$4),D$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(D$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A11),MONTH($A11),1),PayDate,\"<\"&DATE(YEAR($A11),MONTH($A11)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(E$4),E$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(E$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A11),MONTH($A11),1),PayDate,\"<\"&DATE(YEAR($A11),MONTH($A11)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(F$4),F$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(F$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A11),MONTH($A11),1),PayDate,\"<\"&DATE(YEAR($A11),MONTH($A11)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},391150,91022.999999999956,{"$f":"IF(OR(ISBLANK(I$4),I$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(I$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A11),MONTH($A11),1),PayDate,\"<\"&DATE(YEAR($A11),MONTH($A11)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1451.3600000000001},{"$f":"IF(OR(ISBLANK(J$4),J$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(J$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A11),MONTH($A11),1),PayDate,\"<\"&DATE(YEAR($A11),MONTH($A11)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":11250},{"$f":"IF(OR(ISBLANK(K$4),K$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(K$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A11),MONTH($A11),1),PayDate,\"<\"&DATE(YEAR($A11),MONTH($A11)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":500},{"$f":"IF(OR(ISBLANK(L$4),L$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(L$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A11),MONTH($A11),1),PayDate,\"<\"&DATE(YEAR($A11),MONTH($A11)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},104224.35999999996,286925.64,{"$f":"IF(OR(ISBLANK(O$4),O$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(O$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A11),MONTH($A11),1),PayDate,\"<\"&DATE(YEAR($A11),MONTH($A11)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1451.3600000000001},{"$f":"IF(OR(ISBLANK(P$4),P$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(P$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A11),MONTH($A11),1),PayDate,\"<\"&DATE(YEAR($A11),MONTH($A11)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":3911.5},{"$f":"IF(OR(ISBLANK(Q$4),Q$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(Q$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A11),MONTH($A11),1),PayDate,\"<\"&DATE(YEAR($A11),MONTH($A11)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(R$4),R$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(R$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A11),MONTH($A11),1),PayDate,\"<\"&DATE(YEAR($A11),MONTH($A11)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},5362.8600000000006,109587.21999999996,396512.86,2902.7200000000003,0,0]
["2023-09-30",{"$f":"IF(OR(ISBLANK(B$4),B$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(B$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A12),MONTH($A12),1),PayDate,\"<\"&DATE(YEAR($A12),MONTH($A12)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":391150},{"$f":"IF(OR(ISBLANK(C$4),C$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(C$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A12),MONTH($A12),1),PayDate,\"<\"&DATE(YEAR($A12),MONTH($A12)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(D$4),D$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(D$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A12),MONTH($A12),1),PayDate,\"<\"&DATE(YEAR($A12),MONTH($A12)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(E$4),E$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(E$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A12),MONTH($A12),1),PayDate,\"<\"&DATE(YEAR($A12),MONTH($A12)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":10000},{"$f":"IF(OR(ISBLANK(F$4),F$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(F$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A12),MONTH($A12),1),PayDate,\"<\"&DATE(YEAR($A12),MONTH($A12)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},401150,91023.000000000073,{"$f":"IF(OR(ISBLANK(I$4),I$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(I$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A12),MONTH($A12),1),PayDate,\"<\"&DATE(YEAR($A12),MONTH($A12)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1451.3599999999997},{"$f":"IF(OR(ISBLANK(J$4),J$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(J$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A12),MONTH($A12),1),PayDate,\"<\"&DATE(YEAR($A12),MONTH($A12)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":11250},{"$f":"IF(OR(ISBLANK(K$4),K$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(K$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A12),MONTH($A12),1),PayDate,\"<\"&DATE(YEAR($A12),MONTH($A12)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":500},{"$f":"IF(OR(ISBLANK(L$4),L$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(L$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A12),MONTH($A12),1),PayDate,\"<\"&DATE(YEAR($A12),MONTH($A12)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},104224.36000000007,296925.6399999999,{"$f":"IF(OR(ISBLANK(O$4),O$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(O$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A12),MONTH($A12),1),PayDate,\"<\"&DATE(YEAR($A12),MONTH($A12)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1451.3599999999997},{"$f":"IF(OR(ISBLANK(P$4),P$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(P$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A12),MONTH($A12),1),PayDate,\"<\"&DATE(YEAR($A12),MONTH($A12)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":3911.5},{"$f":"IF(OR(ISBLANK(Q$4),Q$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(Q$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A12),MONTH($A12),1),PayDate,\"<\"&DATE(YEAR($A12),MONTH($A12)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(R$4),R$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(R$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A12),MONTH($A12),1),PayDate,\"<\"&DATE(YEAR($A12),MONTH($A12)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},5362.86,109587.22000000007,406512.86,2902.7199999999993,0,0]
["2023-10-31",{"$f":"IF(OR(ISBLANK(B$4),B$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(B$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A13),MONTH($A13),1),PayDate,\"<\"&DATE(YEAR($A13),MONTH($A13)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":391150},{"$f":"IF(OR(ISBLANK(C$4),C$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(C$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A13),MONTH($A13),1),PayDate,\"<\"&DATE(YEAR($A13),MONTH($A13)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(D$4),D$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(D$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A13),MONTH($A13),1),PayDate,\"<\"&DATE(YEAR($A13),MONTH($A13)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(E$4),E$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(E$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A13),MONTH($A13),1),PayDate,\"<\"&DATE(YEAR($A13),MONTH($A13)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(F$4),F$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(F$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A13),MONTH($A13),1),PayDate,\"<\"&DATE(YEAR($A13),MONTH($A13)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},391150,91022.999999999956,{"$f":"IF(OR(ISBLANK(I$4),I$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(I$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A13),MONTH($A13),1),PayDate,\"<\"&DATE(YEAR($A13),MONTH($A13)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1451.3600000000001},{"$f":"IF(OR(ISBLANK(J$4),J$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(J$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A13),MONTH($A13),1),PayDate,\"<\"&DATE(YEAR($A13),MONTH($A13)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":11250},{"$f":"IF(OR(ISBLANK(K$4),K$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(K$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A13),MONTH($A13),1),PayDate,\"<\"&DATE(YEAR($A13),MONTH($A13)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":2500},{"$f":"IF(OR(ISBLANK(L$4),L$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(L$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A13),MONTH($A13),1),PayDate,\"<\"&DATE(YEAR($A13),MONTH($A13)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},106224.35999999996,284925.64,{"$f":"IF(OR(ISBLANK(O$4),O$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(O$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A13),MONTH($A13),1),PayDate,\"<\"&DATE(YEAR($A13),MONTH($A13)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1451.3600000000001},{"$f":"IF(OR(ISBLANK(P$4),P$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(P$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A13),MONTH($A13),1),PayDate,\"<\"&DATE(YEAR($A13),MONTH($A13)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":3911.5},{"$f":"IF(OR(ISBLANK(Q$4),Q$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(Q$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A13),MONTH($A13),1),PayDate,\"<\"&DATE(YEAR($A13),MONTH($A13)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(R$4),R$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(R$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A13),MONTH($A13),1),PayDate,\"<\"&DATE(YEAR($A13),MONTH($A13)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},5362.8600000000006,111587.21999999996,396512.86,2902.7200000000003,0,0]
["2023-11-30",{"$f":"IF(OR(ISBLANK(B$4),B$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(B$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A14),MONTH($A14),1),PayDate,\"<\"&DATE(YEAR($A14),MONTH($A14)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":391150},{"$f":"IF(OR(ISBLANK(C$4),C$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(C$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A14),MONTH($A14),1),PayDate,\"<\"&DATE(YEAR($A14),MONTH($A14)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(D$4),D$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(D$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A14),MONTH($A14),1),PayDate,\"<\"&DATE(YEAR($A14),MONTH($A14)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(E$4),E$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(E$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A14),MONTH($A14),1),PayDate,\"<\"&DATE(YEAR($A14),MONTH($A14)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(F$4),F$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(F$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A14),MONTH($A14),1),PayDate,\"<\"&DATE(YEAR($A14),MONTH($A14)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},391150,91022.999999999971,{"$f":"IF(OR(ISBLANK(I$4),I$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(I$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A14),MONTH($A14),1),PayDate,\"<\"&DATE(YEAR($A14),MONTH($A14)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1451.3599999999997},{"$f":"IF(OR(ISBLANK(J$4),J$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(J$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A14),MONTH($A14),1),PayDate,\"<\"&DATE(YEAR($A14),MONTH($A14)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":11250},{"$f":"IF(OR(ISBLANK(K$4),K$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(K$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A14),MONTH($A14),1),PayDate,\"<\"&DATE(YEAR($A14),MONTH($A14)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":2500},{"$f":"IF(OR(ISBLANK(L$4),L$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(L$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A14),MONTH($A14),1),PayDate,\"<\"&DATE(YEAR($A14),MONTH($A14)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},106224.35999999997,284925.64,{"$f":"IF(OR(ISBLANK(O$4),O$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(O$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A14),MONTH($A14),1),PayDate,\"<\"&DATE(YEAR($A14),MONTH($A14)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1451.3599999999997},{"$f":"IF(OR(ISBLANK(P$4),P$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(P$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A14),MONTH($A14),1),PayDate,\"<\"&DATE(YEAR($A14),MONTH($A14)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":3911.5},{"$f":"IF(OR(ISBLANK(Q$4),Q$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(Q$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A14),MONTH($A14),1),PayDate,\"<\"&DATE(YEAR($A14),MONTH($A14)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(R$4),R$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(R$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A14),MONTH($A14),1),PayDate,\"<\"&DATE(YEAR($A14),MONTH($A14)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},5362.86,111587.21999999997,396512.86,2902.7199999999993,0,0]
["2023-12-31",{"$f":"IF(OR(ISBLANK(B$4),B$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(B$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A15),MONTH($A15),1),PayDate,\"<\"&DATE(YEAR($A15),MONTH($A15)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":391150},{"$f":"IF(OR(ISBLANK(C$4),C$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(C$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A15),MONTH($A15),1),PayDate,\"<\"&DATE(YEAR($A15),MONTH($A15)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(D$4),D$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(D$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A15),MONTH($A15),1),PayDate,\"<\"&DATE(YEAR($A15),MONTH($A15)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":362000},{"$f":"IF(OR(ISBLANK(E$4),E$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(E$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A15),MONTH($A15),1),PayDate,\"<\"&DATE(YEAR($A15),MONTH($A15)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(F$4),F$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(F$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A15),MONTH($A15),1),PayDate,\"<\"&DATE(YEAR($A15),MONTH($A15)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},753150,210964.5000000002,{"$f":"IF(OR(ISBLANK(I$4),I$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(I$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A15),MONTH($A15),1),PayDate,\"<\"&DATE(YEAR($A15),MONTH($A15)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":2371.36},{"$f":"IF(OR(ISBLANK(J$4),J$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(J$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A15),MONTH($A15),1),PayDate,\"<\"&DATE(YEAR($A15),MONTH($A15)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":22500},{"$f":"IF(OR(ISBLANK(K$4),K$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(K$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A15),MONTH($A15),1),PayDate,\"<\"&DATE(YEAR($A15),MONTH($A15)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":2500},{"$f":"IF(OR(ISBLANK(L$4),L$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(L$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A15),MONTH($A15),1),PayDate,\"<\"&DATE(YEAR($A15),MONTH($A15)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},238335.86000000019,514814.13999999978,{"$f":"IF(OR(ISBLANK(O$4),O$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(O$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A15),MONTH($A15),1),PayDate,\"<\"&DATE(YEAR($A15),MONTH($A15)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":2371.36},{"$f":"IF(OR(ISBLANK(P$4),P$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(P$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A15),MONTH($A15),1),PayDate,\"<\"&DATE(YEAR($A15),MONTH($A15)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":7531.5},{"$f":"IF(OR(ISBLANK(Q$4),Q$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(Q$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A15),MONTH($A15),1),PayDate,\"<\"&DATE(YEAR($A15),MONTH($A15)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(R$4),R$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(R$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A15),MONTH($A15),1),PayDate,\"<\"&DATE(YEAR($A15),MONTH($A15)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},9902.86,248238.7200000002,763052.86,4742.72,0,0]
[{"$f":"DATE(YEAR(A17),MONTH(A17),0)","v":"2024-01-31"},{"$f":"IF(OR(ISBLANK(B$4),B$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(B$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A16),MONTH($A16),1),PayDate,\"<\"&DATE(YEAR($A16),MONTH($A16)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":430500},{"$f":"IF(OR(ISBLANK(C$4),C$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(C$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A16),MONTH($A16),1),PayDate,\"<\"&DATE(YEAR($A16),MONTH($A16)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(D$4),D$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(D$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A16),MONTH($A16),1),PayDate,\"<\"&DATE(YEAR($A16),MONTH($A16)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(E$4),E$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(E$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A16),MONTH($A16),1),PayDate,\"<\"&DATE(YEAR($A16),MONTH($A16)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(F$4),F$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(F$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A16),MONTH($A16),1),PayDate,\"<\"&DATE(YEAR($A16),MONTH($A16)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},430500,103448.45454545419,{"$f":"IF(OR(ISBLANK(I$4),I$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(I$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A16),MONTH($A16),1),PayDate,\"<\"&DATE(YEAR($A16),MONTH($A16)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1556.36},{"$f":"IF(OR(ISBLANK(J$4),J$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(J$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A16),MONTH($A16),1),PayDate,\"<\"&DATE(YEAR($A16),MONTH($A16)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":12375},{"$f":"IF(OR(ISBLANK(K$4),K$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(K$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A16),MONTH($A16),1),PayDate,\"<\"&DATE(YEAR($A16),MONTH($A16)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":2500},{"$f":"IF(OR(ISBLANK(L$4),L$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(L$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A16),MONTH($A16),1),PayDate,\"<\"&DATE(YEAR($A16),MONTH($A16)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},119879.8145454542,310620.18545454578,{"$f":"IF(OR(ISBLANK(O$4),O$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(O$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A16),MONTH($A16),1),PayDate,\"<\"&DATE(YEAR($A16),MONTH($A16)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1556.36},{"$f":"IF(OR(ISBLANK(P$4),P$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(P$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A16),MONTH($A16),1),PayDate,\"<\"&DATE(YEAR($A16),MONTH($A16)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":4305},{"$f":"IF(OR(ISBLANK(Q$4),Q$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(Q$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A16),MONTH($A16),1),PayDate,\"<\"&DATE(YEAR($A16),MONTH($A16)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(R$4),R$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(R$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A16),MONTH($A16),1),PayDate,\"<\"&DATE(YEAR($A16),MONTH($A16)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},5861.36,125741.1745454542,436361.36,3112.72,0,0]
[{"$f":"Setup!$D$12","v":"2024-02-29"},{"$f":"IF(OR(ISBLANK(B$4),B$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(B$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A17),MONTH($A17),1),PayDate,\"<\"&DATE(YEAR($A17),MONTH($A17)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":430500},{"$f":"IF(OR(ISBLANK(C$4),C$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(C$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A17),MONTH($A17),1),PayDate,\"<\"&DATE(YEAR($A17),MONTH($A17)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(D$4),D$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(D$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A17),MONTH($A17),1),PayDate,\"<\"&DATE(YEAR($A17),MONTH($A17)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(E$4),E$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(E$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A17),MONTH($A17),1),PayDate,\"<\"&DATE(YEAR($A17),MONTH($A17)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(F$4),F$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$G$6,1,COLUMN(F$1)-COLUMN($B$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A17),MONTH($A17),1),PayDate,\"<\"&DATE(YEAR($A17),MONTH($A17)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},430500,103877.0454545456,{"$f":"IF(OR(ISBLANK(I$4),I$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(I$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A17),MONTH($A17),1),PayDate,\"<\"&DATE(YEAR($A17),MONTH($A17)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1556.3600000000001},{"$f":"IF(OR(ISBLANK(J$4),J$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(J$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A17),MONTH($A17),1),PayDate,\"<\"&DATE(YEAR($A17),MONTH($A17)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":12375},{"$f":"IF(OR(ISBLANK(K$4),K$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(K$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A17),MONTH($A17),1),PayDate,\"<\"&DATE(YEAR($A17),MONTH($A17)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":2500},{"$f":"IF(OR(ISBLANK(L$4),L$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$N$6,1,COLUMN(L$1)-COLUMN($I$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A17),MONTH($A17),1),PayDate,\"<\"&DATE(YEAR($A17),MONTH($A17)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},120308.4054545456,310191.59454545437,{"$f":"IF(OR(ISBLANK(O$4),O$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(O$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A17),MONTH($A17),1),PayDate,\"<\"&DATE(YEAR($A17),MONTH($A17)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":1556.3600000000001},{"$f":"IF(OR(ISBLANK(P$4),P$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(P$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A17),MONTH($A17),1),PayDate,\"<\"&DATE(YEAR($A17),MONTH($A17)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":4305},{"$f":"IF(OR(ISBLANK(Q$4),Q$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(Q$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A17),MONTH($A17),1),PayDate,\"<\"&DATE(YEAR($A17),MONTH($A17)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},{"$f":"IF(OR(ISBLANK(R$4),R$4=\"Not Used\"),0,SUMIFS(OFFSET(Payroll!$T$6,1,COLUMN(R$1)-COLUMN($O$1),PayCount,1),PayDate,\">=\"&DATE(YEAR($A17),MONTH($A17),1),PayDate,\"<\"&DATE(YEAR($A17),MONTH($A17)+1,1),PayDept,$C$1,PayEmp,$C$2))","v":0},5861.3600000000006,126169.7654545456,436361.36,3112.7200000000003,0,0]

{"sheet":"MonthEmp","index":9,"n_rows":55,"n_cols":14,"rows_kept":55,"cut":false,"hidden":true,"merged":[[0,2,0,3],[1,2,1,3]]}
[{"$f":"Setup!$C$4","v":"Example (Pty) Limited"},null,"Measurement"]
["Monthly Analysis by Employee",null,"Net Pay",null,{"$f":"IF(ISBLANK($C$2),\"Net Pay\",$C$2)","v":"Net Pay"},{"$f":"IF(ISNA(VLOOKUP($E$2,MonthMeasure,COLUMN(Setup!$C$110)-1,0)),Setup!$C$111,VLOOKUP($E$2,MonthMeasure,COLUMN(Setup!$C$110)-1,0))","v":19}]
["© www.excel-skills.com",null,{"$f":"SUBTOTAL(109,OFFSET(C$5,1,0,MonthCount,1))","v":286615.53000000003},{"$f":"SUBTOTAL(109,OFFSET(D$5,1,0,MonthCount,1))","v":283681.77},{"$f":"SUBTOTAL(109,OFFSET(E$5,1,0,MonthCount,1))","v":283690.65000000002},{"$f":"SUBTOTAL(109,OFFSET(F$5,1,0,MonthCount,1))","v":286761.64999999997},{"$f":"SUBTOTAL(109,OFFSET(G$5,1,0,MonthCount,1))","v":287581.64999999997},{"$f":"SUBTOTAL(109,OFFSET(H$5,1,0,MonthCount,1))","v":286925.64999999997},{"$f":"SUBTOTAL(109,OFFSET(I$5,1,0,MonthCount,1))","v":296925.64999999997},{"$f":"SUBTOTAL(109,OFFSET(J$5,1,0,MonthCount,1))","v":284925.65000000002},{"$f":"SUBTOTAL(109,OFFSET(K$5,1,0,MonthCount,1))","v":284925.65000000002},{"$f":"SUBTOTAL(109,OFFSET(L$5,1,0,MonthCount,1))","v":514814.14999999997},{"$f":"SUBTOTAL(109,OFFSET(M$5,1,0,MonthCount,1))","v":310620.19},{"$f":"SUBTOTAL(109,OFFSET(N$5,1,0,MonthCount,1))","v":310191.59999999998}]
[null,null,{"$f":"DATE(YEAR(D$4),MONTH(D$4),0)","v":"2023-03-31"},"2023-04-30","2023-05-31","2023-06-30","2023-07-31","2023-08-31","2023-09-30","2023-10-31","2023-11-30","2023-12-31",{"$f":"DATE(YEAR(N$4),MONTH(N$4),0)","v":"2024-01-31"},{"$f":"Setup!$D$12","v":"2024-02-29"}]
["Employee Number","Employee Name","Month1","Month2","Month3","Month4","Month5","Month6","Month7","Month8","Month9","Month10","Month11","Month12"]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C6)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C6)-ROW($C$5),0,1,1))","v":"EXS001"},{"$f":"IF(ISNA(VLOOKUP($A6,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A6,EmpAll,COLUMN(Emp!$B$1),0))","v":"Taylor AE"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A6,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":92961.05},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A6,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":92961.05},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A6,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":92961.05},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A6,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":92961.05},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A6,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":92961.05},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A6,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":92961.05},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A6,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":92961.05},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A6,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":92961.05},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A6,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":92961.05},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A6,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":174823.55},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A6,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":101071.84},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A6,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":100642.75}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C7)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C7)-ROW($C$5),0,1,1))","v":"EXS002"},{"$f":"IF(ISNA(VLOOKUP($A7,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A7,EmpAll,COLUMN(Emp!$B$1),0))","v":"Smith F"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A7,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":81160.55},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A7,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":81160.55},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A7,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":81160.55},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A7,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":81160.55},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A7,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":81980.55},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A7,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":81324.55},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A7,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":81324.55},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A7,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":81324.55},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A7,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":81324.55},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A7,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":152124.54999999999},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A7,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":88404.55},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A7,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":88404.55}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C8)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C8)-ROW($C$5),0,1,1))","v":"EXS003"},{"$f":"IF(ISNA(VLOOKUP($A8,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A8,EmpAll,COLUMN(Emp!$B$1),0))","v":"Wilson PG"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A8,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":13950.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A8,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":13950.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A8,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":13950.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A8,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":13950.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A8,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":13950.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A8,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":13950.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A8,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":23950.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A8,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":11950.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A8,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":11950.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A8,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":24100.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A8,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":13165.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A8,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":13165.25}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C9)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C9)-ROW($C$5),0,1,1))","v":"EXS004"},{"$f":"IF(ISNA(VLOOKUP($A9,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A9,EmpAll,COLUMN(Emp!$B$1),0))","v":"Osborne S"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A9,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":16375.13},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A9,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":13441.37},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A9,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":13450.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A9,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":13450.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A9,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":13450.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A9,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":13450.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A9,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":13450.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A9,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":13450.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A9,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":13450.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A9,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":25600.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A9,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":14665.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A9,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":14665.25}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C10)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C10)-ROW($C$5),0,1,1))","v":"EXS005"},{"$f":"IF(ISNA(VLOOKUP($A10,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A10,EmpAll,COLUMN(Emp!$B$1),0))","v":"Miller R"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A10,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A10,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A10,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A10,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A10,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A10,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A10,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A10,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A10,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A10,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":18003},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A10,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A10,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C11)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C11)-ROW($C$5),0,1,1))","v":"EXS006"},{"$f":"IF(ISNA(VLOOKUP($A11,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A11,EmpAll,COLUMN(Emp!$B$1),0))","v":"Andrews MS"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A11,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A11,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A11,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A11,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A11,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A11,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A11,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A11,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A11,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A11,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":18003},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A11,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":10709.75},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A11,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":10710.25}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C12)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C12)-ROW($C$5),0,1,1))","v":"EXS007"},{"$f":"IF(ISNA(VLOOKUP($A12,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A12,EmpAll,COLUMN(Emp!$B$1),0))","v":"Phillips KE"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A12,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":21339.8},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A12,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":21339.8},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A12,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":21339.8},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A12,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A12,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A12,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A12,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A12,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A12,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A12,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A12,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A12,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C13)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C13)-ROW($C$5),0,1,1))","v":"EXS008"},{"$f":"IF(ISNA(VLOOKUP($A13,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A13,EmpAll,COLUMN(Emp!$B$1),0))","v":"Matthews B"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A13,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A13,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A13,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A13,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A13,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A13,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A13,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A13,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A13,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A13,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":16016.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A13,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":9536.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A13,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":9536.25}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C14)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C14)-ROW($C$5),0,1,1))","v":"EXS009"},{"$f":"IF(ISNA(VLOOKUP($A14,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A14,EmpAll,COLUMN(Emp!$B$1),0))","v":"Brown JT"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A14,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A14,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A14,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A14,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A14,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A14,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A14,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A14,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A14,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A14,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":16016.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A14,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":9536.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A14,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":9536.25}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C15)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C15)-ROW($C$5),0,1,1))","v":"EXS010"},{"$f":"IF(ISNA(VLOOKUP($A15,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A15,EmpAll,COLUMN(Emp!$B$1),0))","v":"Lewis I"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A15,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A15,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A15,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A15,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A15,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A15,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A15,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A15,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A15,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":8726.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A15,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":16016.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A15,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":9536.25},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A15,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":9536.25}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C16)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C16)-ROW($C$5),0,1,1))","v":"EXS011"},{"$f":"IF(ISNA(VLOOKUP($A16,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A16,EmpAll,COLUMN(Emp!$B$1),0))","v":"Newport GD"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A16,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A16,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A16,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A16,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A16,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A16,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A16,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A16,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A16,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A16,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A16,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":5940},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A16,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":5940}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C17)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C17)-ROW($C$5),0,1,1))","v":"EXS012"},{"$f":"IF(ISNA(VLOOKUP($A17,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A17,EmpAll,COLUMN(Emp!$B$1),0))","v":"Williams VS"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A17,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A17,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A17,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A17,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A17,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A17,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A17,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A17,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A17,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A17,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A17,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":5940},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A17,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":5940}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C18)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C18)-ROW($C$5),0,1,1))","v":"EXS013"},{"$f":"IF(ISNA(VLOOKUP($A18,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A18,EmpAll,COLUMN(Emp!$B$1),0))","v":"East WD"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A18,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A18,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A18,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A18,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A18,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A18,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A18,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A18,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A18,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":4950},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A18,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":9900},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A18,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":5940},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A18,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":5940}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C19)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C19)-ROW($C$5),0,1,1))","v":"EXS014"},{"$f":"IF(ISNA(VLOOKUP($A19,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A19,EmpAll,COLUMN(Emp!$B$1),0))","v":"Ross Q"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A19,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A19,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A19,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A19,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":24410.799999999999},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A19,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":24410.799999999999},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A19,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":24410.799999999999},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A19,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":24410.799999999999},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A19,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":24410.799999999999},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A19,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":24410.799999999999},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A19,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":24410.799999999999},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A19,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":25779.8},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A19,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":25779.8}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C20)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C20)-ROW($C$5),0,1,1))","v":"EXS015"},{"$f":"IF(ISNA(VLOOKUP($A20,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A20,EmpAll,COLUMN(Emp!$B$1),0))","v":"Graham L"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A20,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A20,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A20,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A20,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A20,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A20,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A20,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A20,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A20,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A20,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A20,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":10395},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A20,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":10395}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C21)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C21)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A21,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A21,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A21,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A21,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A21,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A21,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A21,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A21,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A21,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A21,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A21,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A21,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A21,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A21,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C22)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C22)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A22,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A22,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A22,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A22,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A22,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A22,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A22,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A22,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A22,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A22,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A22,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A22,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A22,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A22,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C23)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C23)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A23,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A23,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A23,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A23,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A23,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A23,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A23,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A23,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A23,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A23,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A23,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A23,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A23,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A23,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C24)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C24)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A24,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A24,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A24,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A24,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A24,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A24,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A24,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A24,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A24,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A24,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A24,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A24,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A24,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A24,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C25)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C25)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A25,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A25,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A25,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A25,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A25,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A25,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A25,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A25,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A25,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A25,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A25,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A25,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A25,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A25,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C26)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C26)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A26,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A26,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A26,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A26,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A26,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A26,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A26,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A26,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A26,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A26,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A26,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A26,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A26,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A26,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C27)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C27)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A27,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A27,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A27,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A27,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A27,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A27,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A27,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A27,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A27,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A27,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A27,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A27,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A27,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A27,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C28)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C28)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A28,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A28,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A28,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A28,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A28,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A28,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A28,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A28,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A28,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A28,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A28,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A28,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A28,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A28,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C29)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C29)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A29,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A29,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A29,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A29,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A29,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A29,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A29,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A29,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A29,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A29,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A29,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A29,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A29,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A29,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C30)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C30)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A30,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A30,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A30,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A30,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A30,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A30,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A30,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A30,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A30,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A30,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A30,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A30,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A30,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A30,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C31)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C31)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A31,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A31,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A31,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A31,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A31,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A31,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A31,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A31,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A31,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A31,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A31,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A31,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A31,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A31,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C32)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C32)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A32,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A32,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A32,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A32,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A32,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A32,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A32,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A32,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A32,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A32,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A32,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A32,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A32,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A32,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C33)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C33)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A33,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A33,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A33,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A33,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A33,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A33,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A33,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A33,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A33,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A33,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A33,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A33,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A33,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A33,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C34)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C34)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A34,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A34,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A34,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A34,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A34,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A34,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A34,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A34,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A34,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A34,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A34,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A34,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A34,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A34,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C35)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C35)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A35,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A35,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A35,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A35,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A35,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A35,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A35,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A35,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A35,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A35,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A35,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A35,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A35,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A35,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C36)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C36)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A36,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A36,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A36,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A36,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A36,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A36,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A36,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A36,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A36,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A36,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A36,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A36,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A36,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A36,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C37)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C37)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A37,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A37,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A37,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A37,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A37,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A37,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A37,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A37,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A37,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A37,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A37,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A37,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A37,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A37,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C38)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C38)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A38,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A38,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A38,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A38,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A38,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A38,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A38,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A38,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A38,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A38,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A38,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A38,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A38,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A38,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C39)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C39)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A39,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A39,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A39,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A39,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A39,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A39,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A39,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A39,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A39,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A39,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A39,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A39,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A39,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A39,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C40)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C40)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A40,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A40,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A40,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A40,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A40,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A40,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A40,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A40,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A40,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A40,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A40,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A40,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A40,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A40,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C41)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C41)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A41,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A41,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A41,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A41,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A41,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A41,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A41,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A41,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A41,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A41,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A41,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A41,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A41,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A41,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C42)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C42)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A42,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A42,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A42,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A42,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A42,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A42,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A42,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A42,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A42,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A42,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A42,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A42,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A42,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A42,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C43)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C43)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A43,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A43,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A43,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A43,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A43,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A43,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A43,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A43,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A43,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A43,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A43,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A43,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A43,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A43,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C44)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C44)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A44,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A44,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A44,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A44,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A44,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A44,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A44,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A44,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A44,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A44,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A44,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A44,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A44,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A44,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C45)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C45)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A45,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A45,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A45,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A45,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A45,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A45,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A45,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A45,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A45,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A45,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A45,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A45,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A45,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A45,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C46)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C46)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A46,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A46,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A46,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A46,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A46,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A46,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A46,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A46,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A46,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A46,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A46,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A46,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A46,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A46,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C47)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C47)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A47,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A47,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A47,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A47,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A47,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A47,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A47,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A47,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A47,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A47,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A47,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A47,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A47,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A47,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C48)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C48)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A48,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A48,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A48,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A48,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A48,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A48,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A48,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A48,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A48,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A48,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A48,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A48,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A48,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A48,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C49)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C49)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A49,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A49,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A49,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A49,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A49,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A49,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A49,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A49,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A49,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A49,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A49,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A49,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A49,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A49,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C50)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C50)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A50,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A50,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A50,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A50,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A50,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A50,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A50,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A50,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A50,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A50,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A50,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A50,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A50,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A50,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C51)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C51)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A51,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A51,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A51,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A51,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A51,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A51,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A51,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A51,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A51,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A51,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A51,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A51,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A51,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A51,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C52)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C52)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A52,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A52,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A52,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A52,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A52,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A52,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A52,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A52,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A52,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A52,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A52,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A52,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A52,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A52,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C53)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C53)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A53,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A53,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A53,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A53,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A53,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A53,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A53,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A53,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A53,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A53,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A53,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A53,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A53,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A53,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C54)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C54)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A54,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A54,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A54,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A54,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A54,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A54,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A54,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A54,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A54,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A54,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A54,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A54,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A54,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A54,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]
[{"$f":"IF(OFFSET(Emp!$A$4,ROW($C55)-ROW($C$5),0,1,1)=0,\"-\",OFFSET(Emp!$A$4,ROW($C55)-ROW($C$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A55,EmpAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A55,EmpAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A55,PayDate,\">=\"&DATE(YEAR(C$4),MONTH(C$4),1),PayDate,\"<\"&DATE(YEAR(C$4),MONTH(C$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A55,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A55,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A55,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A55,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A55,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A55,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A55,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A55,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A55,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A55,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$F$2-1,PayCount,1),PayEmp,$A55,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0}]

{"sheet":"MonthDept","index":10,"n_rows":20,"n_cols":15,"rows_kept":20,"cut":false,"hidden":true,"merged":[[0,3,0,4],[1,3,1,4]]}
[{"$f":"Setup!$C$4","v":"Example (Pty) Limited"},null,null,"Measurement"]
["Monthly Analysis by Department",null,null,"Cost to Company",null,{"$f":"IF(ISBLANK($D$2),\"Cost to Company\",$D$2)","v":"Cost to Company"},{"$f":"IF(ISNA(VLOOKUP($F$2,MonthMeasure,COLUMN(Setup!$C$110)-1,0)),Setup!$C$111,VLOOKUP($F$2,MonthMeasure,COLUMN(Setup!$C$110)-1,0))","v":25}]
["© www.excel-skills.com",null,null,{"$f":"SUBTOTAL(109,OFFSET(D$5,1,0,MonthCount,1))","v":395984.48},{"$f":"SUBTOTAL(109,OFFSET(E$5,1,0,MonthCount,1))","v":392330.23999999999},{"$f":"SUBTOTAL(109,OFFSET(F$5,1,0,MonthCount,1))","v":392321.36},{"$f":"SUBTOTAL(109,OFFSET(G$5,1,0,MonthCount,1))","v":396512.86},{"$f":"SUBTOTAL(109,OFFSET(H$5,1,0,MonthCount,1))","v":396512.86},{"$f":"SUBTOTAL(109,OFFSET(I$5,1,0,MonthCount,1))","v":396512.86},{"$f":"SUBTOTAL(109,OFFSET(J$5,1,0,MonthCount,1))","v":406512.86},{"$f":"SUBTOTAL(109,OFFSET(K$5,1,0,MonthCount,1))","v":396512.86},{"$f":"SUBTOTAL(109,OFFSET(L$5,1,0,MonthCount,1))","v":396512.86},{"$f":"SUBTOTAL(109,OFFSET(M$5,1,0,MonthCount,1))","v":763052.86},{"$f":"SUBTOTAL(109,OFFSET(N$5,1,0,MonthCount,1))","v":436361.36},{"$f":"SUBTOTAL(109,OFFSET(O$5,1,0,MonthCount,1))","v":436361.36}]
[null,null,null,{"$f":"DATE(YEAR(E$4),MONTH(E$4),0)","v":"2023-03-31"},"2023-04-30","2023-05-31","2023-06-30","2023-07-31","2023-08-31","2023-09-30","2023-10-31","2023-11-30","2023-12-31",{"$f":"DATE(YEAR(O$4),MONTH(O$4),0)","v":"2024-01-31"},{"$f":"Setup!$D$12","v":"2024-02-29"}]
["Department Code","Department Name","Cost Centre","Month1","Month2","Month3","Month4","Month5","Month6","Month7","Month8","Month9","Month10","Month11","Month12"]
[{"$f":"IF(ROW($D6)-ROW($D$6)+1>DeptCount,\"-\",OFFSET(Setup!$A$89,ROW($D6)-ROW($D$5),0,1,1))","v":"M"},{"$f":"IF(ISNA(VLOOKUP($A6,DeptAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A6,DeptAll,COLUMN(Emp!$B$1),0))","v":"Management"},{"$f":"IF(ISNA(VLOOKUP($A6,DeptAll,COLUMN(Emp!$E$1),0))=TRUE,\"-\",VLOOKUP($A6,DeptAll,COLUMN(Emp!$E$1),0))","v":"IS-330"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A6,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":273054.24},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A6,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":273054.24},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A6,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":273054.24},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A6,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":273054.24},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A6,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":273054.24},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A6,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":273054.24},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A6,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":273054.24},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A6,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":273054.24},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A6,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":273054.24},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A6,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":545754.24},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A6,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":300324.24},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A6,PayDate,\">=\"&DATE(YEAR(O$4),MONTH(O$4),1),PayDate,\"<\"&DATE(YEAR(O$4),MONTH(O$4)+1,1))","v":300324.24}]
[{"$f":"IF(ROW($D7)-ROW($D$6)+1>DeptCount,\"-\",OFFSET(Setup!$A$89,ROW($D7)-ROW($D$5),0,1,1))","v":"S"},{"$f":"IF(ISNA(VLOOKUP($A7,DeptAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A7,DeptAll,COLUMN(Emp!$B$1),0))","v":"Sales"},{"$f":"IF(ISNA(VLOOKUP($A7,DeptAll,COLUMN(Emp!$E$1),0))=TRUE,\"-\",VLOOKUP($A7,DeptAll,COLUMN(Emp!$E$1),0))","v":"IS-340"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A7,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":54663.119999999995},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A7,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":51008.88},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A7,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":51000},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A7,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":51000},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A7,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":51000},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A7,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":51000},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A7,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":61000},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A7,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":51000},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A7,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":51000},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A7,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":102000},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A7,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":55590},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A7,PayDate,\">=\"&DATE(YEAR(O$4),MONTH(O$4),1),PayDate,\"<\"&DATE(YEAR(O$4),MONTH(O$4)+1,1))","v":55590}]
[{"$f":"IF(ROW($D8)-ROW($D$6)+1>DeptCount,\"-\",OFFSET(Setup!$A$89,ROW($D8)-ROW($D$5),0,1,1))","v":"A"},{"$f":"IF(ISNA(VLOOKUP($A8,DeptAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A8,DeptAll,COLUMN(Emp!$B$1),0))","v":"Admin"},{"$f":"IF(ISNA(VLOOKUP($A8,DeptAll,COLUMN(Emp!$E$1),0))=TRUE,\"-\",VLOOKUP($A8,DeptAll,COLUMN(Emp!$E$1),0))","v":"IS-350"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A8,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":68267.12},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A8,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":68267.12},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A8,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":68267.12},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A8,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":72458.62},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A8,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":72458.62},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A8,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":72458.62},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A8,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":72458.62},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A8,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":72458.62},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A8,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":72458.62},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A8,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":115298.62},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A8,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":80447.12},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A8,PayDate,\">=\"&DATE(YEAR(O$4),MONTH(O$4),1),PayDate,\"<\"&DATE(YEAR(O$4),MONTH(O$4)+1,1))","v":80447.12}]
[{"$f":"IF(ROW($D9)-ROW($D$6)+1>DeptCount,\"-\",OFFSET(Setup!$A$89,ROW($D9)-ROW($D$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A9,DeptAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A9,DeptAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A9,DeptAll,COLUMN(Emp!$E$1),0))=TRUE,\"-\",VLOOKUP($A9,DeptAll,COLUMN(Emp!$E$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A9,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A9,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A9,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A9,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A9,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A9,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A9,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A9,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A9,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A9,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A9,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A9,PayDate,\">=\"&DATE(YEAR(O$4),MONTH(O$4),1),PayDate,\"<\"&DATE(YEAR(O$4),MONTH(O$4)+1,1))","v":0}]
[{"$f":"IF(ROW($D10)-ROW($D$6)+1>DeptCount,\"-\",OFFSET(Setup!$A$89,ROW($D10)-ROW($D$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A10,DeptAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A10,DeptAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A10,DeptAll,COLUMN(Emp!$E$1),0))=TRUE,\"-\",VLOOKUP($A10,DeptAll,COLUMN(Emp!$E$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A10,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A10,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A10,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A10,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A10,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A10,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A10,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A10,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A10,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A10,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A10,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A10,PayDate,\">=\"&DATE(YEAR(O$4),MONTH(O$4),1),PayDate,\"<\"&DATE(YEAR(O$4),MONTH(O$4)+1,1))","v":0}]
[{"$f":"IF(ROW($D11)-ROW($D$6)+1>DeptCount,\"-\",OFFSET(Setup!$A$89,ROW($D11)-ROW($D$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A11,DeptAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A11,DeptAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A11,DeptAll,COLUMN(Emp!$E$1),0))=TRUE,\"-\",VLOOKUP($A11,DeptAll,COLUMN(Emp!$E$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A11,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A11,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A11,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A11,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A11,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A11,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A11,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A11,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A11,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A11,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A11,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A11,PayDate,\">=\"&DATE(YEAR(O$4),MONTH(O$4),1),PayDate,\"<\"&DATE(YEAR(O$4),MONTH(O$4)+1,1))","v":0}]
[{"$f":"IF(ROW($D12)-ROW($D$6)+1>DeptCount,\"-\",OFFSET(Setup!$A$89,ROW($D12)-ROW($D$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A12,DeptAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A12,DeptAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A12,DeptAll,COLUMN(Emp!$E$1),0))=TRUE,\"-\",VLOOKUP($A12,DeptAll,COLUMN(Emp!$E$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A12,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A12,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A12,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A12,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A12,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A12,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A12,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A12,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A12,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A12,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A12,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A12,PayDate,\">=\"&DATE(YEAR(O$4),MONTH(O$4),1),PayDate,\"<\"&DATE(YEAR(O$4),MONTH(O$4)+1,1))","v":0}]
[{"$f":"IF(ROW($D13)-ROW($D$6)+1>DeptCount,\"-\",OFFSET(Setup!$A$89,ROW($D13)-ROW($D$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A13,DeptAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A13,DeptAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A13,DeptAll,COLUMN(Emp!$E$1),0))=TRUE,\"-\",VLOOKUP($A13,DeptAll,COLUMN(Emp!$E$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A13,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A13,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A13,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A13,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A13,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A13,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A13,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A13,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A13,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A13,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A13,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A13,PayDate,\">=\"&DATE(YEAR(O$4),MONTH(O$4),1),PayDate,\"<\"&DATE(YEAR(O$4),MONTH(O$4)+1,1))","v":0}]
[{"$f":"IF(ROW($D14)-ROW($D$6)+1>DeptCount,\"-\",OFFSET(Setup!$A$89,ROW($D14)-ROW($D$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A14,DeptAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A14,DeptAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A14,DeptAll,COLUMN(Emp!$E$1),0))=TRUE,\"-\",VLOOKUP($A14,DeptAll,COLUMN(Emp!$E$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A14,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A14,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A14,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A14,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A14,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A14,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A14,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A14,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A14,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A14,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A14,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A14,PayDate,\">=\"&DATE(YEAR(O$4),MONTH(O$4),1),PayDate,\"<\"&DATE(YEAR(O$4),MONTH(O$4)+1,1))","v":0}]
[{"$f":"IF(ROW($D15)-ROW($D$6)+1>DeptCount,\"-\",OFFSET(Setup!$A$89,ROW($D15)-ROW($D$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A15,DeptAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A15,DeptAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A15,DeptAll,COLUMN(Emp!$E$1),0))=TRUE,\"-\",VLOOKUP($A15,DeptAll,COLUMN(Emp!$E$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A15,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A15,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A15,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A15,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A15,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A15,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A15,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A15,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A15,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A15,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A15,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A15,PayDate,\">=\"&DATE(YEAR(O$4),MONTH(O$4),1),PayDate,\"<\"&DATE(YEAR(O$4),MONTH(O$4)+1,1))","v":0}]
[{"$f":"IF(ROW($D16)-ROW($D$6)+1>DeptCount,\"-\",OFFSET(Setup!$A$89,ROW($D16)-ROW($D$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A16,DeptAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A16,DeptAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A16,DeptAll,COLUMN(Emp!$E$1),0))=TRUE,\"-\",VLOOKUP($A16,DeptAll,COLUMN(Emp!$E$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A16,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A16,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A16,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A16,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A16,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A16,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A16,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A16,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A16,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A16,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A16,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A16,PayDate,\">=\"&DATE(YEAR(O$4),MONTH(O$4),1),PayDate,\"<\"&DATE(YEAR(O$4),MONTH(O$4)+1,1))","v":0}]
[{"$f":"IF(ROW($D17)-ROW($D$6)+1>DeptCount,\"-\",OFFSET(Setup!$A$89,ROW($D17)-ROW($D$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A17,DeptAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A17,DeptAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A17,DeptAll,COLUMN(Emp!$E$1),0))=TRUE,\"-\",VLOOKUP($A17,DeptAll,COLUMN(Emp!$E$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A17,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A17,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A17,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A17,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A17,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A17,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A17,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A17,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A17,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A17,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A17,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A17,PayDate,\">=\"&DATE(YEAR(O$4),MONTH(O$4),1),PayDate,\"<\"&DATE(YEAR(O$4),MONTH(O$4)+1,1))","v":0}]
[{"$f":"IF(ROW($D18)-ROW($D$6)+1>DeptCount,\"-\",OFFSET(Setup!$A$89,ROW($D18)-ROW($D$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A18,DeptAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A18,DeptAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A18,DeptAll,COLUMN(Emp!$E$1),0))=TRUE,\"-\",VLOOKUP($A18,DeptAll,COLUMN(Emp!$E$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A18,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A18,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A18,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A18,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A18,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A18,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A18,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A18,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A18,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A18,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A18,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A18,PayDate,\">=\"&DATE(YEAR(O$4),MONTH(O$4),1),PayDate,\"<\"&DATE(YEAR(O$4),MONTH(O$4)+1,1))","v":0}]
[{"$f":"IF(ROW($D19)-ROW($D$6)+1>DeptCount,\"-\",OFFSET(Setup!$A$89,ROW($D19)-ROW($D$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A19,DeptAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A19,DeptAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A19,DeptAll,COLUMN(Emp!$E$1),0))=TRUE,\"-\",VLOOKUP($A19,DeptAll,COLUMN(Emp!$E$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A19,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A19,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A19,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A19,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A19,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A19,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A19,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A19,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A19,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A19,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A19,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A19,PayDate,\">=\"&DATE(YEAR(O$4),MONTH(O$4),1),PayDate,\"<\"&DATE(YEAR(O$4),MONTH(O$4)+1,1))","v":0}]
[{"$f":"IF(ROW($D20)-ROW($D$6)+1>DeptCount,\"-\",OFFSET(Setup!$A$89,ROW($D20)-ROW($D$5),0,1,1))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A20,DeptAll,COLUMN(Emp!$B$1),0))=TRUE,\"-\",VLOOKUP($A20,DeptAll,COLUMN(Emp!$B$1),0))","v":"-"},{"$f":"IF(ISNA(VLOOKUP($A20,DeptAll,COLUMN(Emp!$E$1),0))=TRUE,\"-\",VLOOKUP($A20,DeptAll,COLUMN(Emp!$E$1),0))","v":"-"},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A20,PayDate,\">=\"&DATE(YEAR(D$4),MONTH(D$4),1),PayDate,\"<\"&DATE(YEAR(D$4),MONTH(D$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A20,PayDate,\">=\"&DATE(YEAR(E$4),MONTH(E$4),1),PayDate,\"<\"&DATE(YEAR(E$4),MONTH(E$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A20,PayDate,\">=\"&DATE(YEAR(F$4),MONTH(F$4),1),PayDate,\"<\"&DATE(YEAR(F$4),MONTH(F$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A20,PayDate,\">=\"&DATE(YEAR(G$4),MONTH(G$4),1),PayDate,\"<\"&DATE(YEAR(G$4),MONTH(G$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A20,PayDate,\">=\"&DATE(YEAR(H$4),MONTH(H$4),1),PayDate,\"<\"&DATE(YEAR(H$4),MONTH(H$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A20,PayDate,\">=\"&DATE(YEAR(I$4),MONTH(I$4),1),PayDate,\"<\"&DATE(YEAR(I$4),MONTH(I$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A20,PayDate,\">=\"&DATE(YEAR(J$4),MONTH(J$4),1),PayDate,\"<\"&DATE(YEAR(J$4),MONTH(J$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A20,PayDate,\">=\"&DATE(YEAR(K$4),MONTH(K$4),1),PayDate,\"<\"&DATE(YEAR(K$4),MONTH(K$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A20,PayDate,\">=\"&DATE(YEAR(L$4),MONTH(L$4),1),PayDate,\"<\"&DATE(YEAR(L$4),MONTH(L$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A20,PayDate,\">=\"&DATE(YEAR(M$4),MONTH(M$4),1),PayDate,\"<\"&DATE(YEAR(M$4),MONTH(M$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A20,PayDate,\">=\"&DATE(YEAR(N$4),MONTH(N$4),1),PayDate,\"<\"&DATE(YEAR(N$4),MONTH(N$4)+1,1))","v":0},{"$f":"SUMIFS(OFFSET(Payroll!$A$6,1,$G$2-1,PayCount,1),PayDept,$A20,PayDate,\">=\"&DATE(YEAR(O$4),MONTH(O$4),1),PayDate,\"<\"&DATE(YEAR(O$4),MONTH(O$4)+1,1))","v":0}]